Hey all. I’ve got an issue with instrumented tests running on Github Actions, where the compose
assertIsDisplayed()
is failing. I’m wondering if it’s possible that there could be a problem with these compose assertions running against a headless emulator?
The tests seem to run fine on various emulators when I run them locally. Just not quite sure where to look to figure this one out..
Tim Malseed
12/29/2021, 3:57 AM
Copy code
com.myapp.android.ui.components.OnboardingUserFlowTest > introToLearnMoreNavigation[test(AVD) - 10] FAILED
java.lang.AssertionError: Failed to perform isDisplayed check.
Reason: Expected exactly '1' node but could not find any node that satisfies: (TestDescription = 'Learn More Screen' (ignoreCase: false))
Tim Malseed
12/29/2021, 4:12 AM
Well, I spun up a headless instance on my mac and the tests still succeed locally. Not sure what’s going on.
Tim Malseed
12/29/2021, 4:19 AM
Oh, it looks like it’s just one test that is failing. I mistakenly thought they were all failing. I’ll have to keep digging.