Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ViewPager2 in swipeViewPagerForward and swipeViewPagerBack #369

Closed
peterhav opened this issue Sep 27, 2020 · 1 comment
Closed

Comments

@peterhav
Copy link

Description what you'd like to happen:

ViewPager2 has been introduced recently (https://developer.android.com/jetpack/androidx/releases/viewpager2) and does not yet seem to be supported in Baristra. Without support for ViewPager2, the swipeViewPagerForward and swipeViewPagerBack actions do not work and fail with a:

androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (is displayed on the screen to the user and is assignable from class: class androidx.viewpager.widget.ViewPager)

The hierarchy contains:

ViewPager2{id=2131296878, res-name=pager, visibility=VISIBLE, width=1080, height=1536, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@5cca82b, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=144.0, child-count=1}

@alorma
Copy link
Member

alorma commented Sep 28, 2020

Related: #368

@alorma alorma closed this as completed Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants