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

How to verify Toast is displayed by Espresso from Android 11 #1559

Closed
testfacefanpage opened this issue Oct 21, 2022 · 2 comments
Closed

How to verify Toast is displayed by Espresso from Android 11 #1559

testfacefanpage opened this issue Oct 21, 2022 · 2 comments

Comments

@testfacefanpage
Copy link

Hello everyone, does anyone have idea how to verify Toast is displayed by Espresso from Android 11. For Android lower 11, we often write something like this and it works fine.

Espresso.onView(withText("Toast message here"))
.inRoot(withDecorView(not(decorView)))
.check(matches(isDisplayed()))

Thank you all for your idea about that.

@ralf-at-android
Copy link
Collaborator

Hi, I haven't tried on Android 11. For the sake of completeness, what is the issue you experience? Please indicate how it fails.

@ralf-at-android
Copy link
Collaborator

Duplicate of #803

@ralf-at-android ralf-at-android marked this as a duplicate of #803 Oct 21, 2022
@ralf-at-android ralf-at-android closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
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