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

Snackbar can't be asserted on espresso version 3.5.0-alpha01 and above. #1752

Open
insearching opened this issue Mar 31, 2023 · 1 comment
Open

Comments

@insearching
Copy link

Description

I am trying to verify that my snackbar was shown with specific message but after updating Espresso version from 3.4.1 (which had issue with BottomSlidingPanel) to 3.5.1 I'm no longer able to verify the message that is shown in my snackbar.
I have done checks on multiple versions and can say that last version which snackbar assertions was working for me was 3.5.0-alpha01.

Steps to Reproduce

Here is how I'm verifying it:
onView(waitForVisibilityOf(withId(R.id.snackbar_text))).check(matches(withText(message)))
where message is a parameter that was passed from outside.

Expected Results

The test should pass on the updated version.

Actual Results

Test is failing.

AndroidX Test and Android OS Versions

Android SDK 30 and 32

@adazh
Copy link
Collaborator

adazh commented Apr 3, 2023

We are not aware of possible recent changes that can cause this problem.

Do you see any error messages (stack trace and/or errors in the Logcat logs) when the assertion failed? Also, can you make a sample project for repro purposes? Otherwise, it would be really hard for us to look into this.

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