Tests Failing on Espresso in Landscape with small screen size or bug
See original GitHub issueDescribe the bug
After the migration to TextInputLayout
, few test cases are failing on Espresso with small screen size.
Expected behavior All the test case should pass on multiple device screen size. Pixel, Pixel XL, Nexus 4, Tablet.
How to submit PR Add test result screenshot for Espresso and Robolectric on devices mentioned above.
Additional context
// possibly scrolling issue
(@FareesHussain )
fun testAddProfileActivity_inputPin_inputDifferentConfirmPin_clickCreate_changeConfiguration_checkErrorMessageDisplayed()
// possibly scrolling issue
(@FareesHussain )
fun testAddProfileActivity_inputNotUniqueName_clickCreate_changeConfiguration_checkErrorMessageDisplayed()
// here, the error message is not displayed after orientation change. Need to investigate why this is passing earlier and why this is failing now.
(@FareesHussain )
fun testProfileRenameActivity_inputOldName_clickSave_changeConfiguration_errorIsVisible()
// Also confirm, can we update this layout file with using Neste Scroll View?
(@prayutsu )
fun testAdminPinActivity_configurationChange_inputPin_inputWrongConfirmPin_clickImeActionButton_checkConfirmWrongError()
(@prayutsu )
fun testAdminPinActivity_inputPin_inputWrongConfirmPin_clickSubmit_configurationChange_checkConfirmWrongError()
(@prayutsu )
fun testAdminPinActivity_inputPin_inputWrongConfirmPin_clickImeActionButton_configurationChange_checkConfirmWrongError()
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Espresso Test fails if Screen Size too small · Issue #1482
Espresso Test fails if Screen Size too small #1482 ; effort:small Small effort - 2 days ; P1 High priority issue ; type:bug...
Read more >Espresso tests failing due to repainting the screen by ...
It means that Espresso tests are based on UI thread and waiting when the main thread is idle(). Perhaps the main thread has...
Read more >Configuring Your Espresso Tests
The screen orientation to use while executing this test suite on this virtual device. Valid values are portrait or landscape . orientation: ...
Read more >Support different screen sizes
Support for different screen sizes enables the greatest number of users and widest variety of devices to access your app.
Read more >Supercharging Your Android Testing — JUnit & Espresso
Testing almost always helps catching bugs and write better code, but it can be a huge pain without a proper framework and setup....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s fine then I’ll leave
AdminPinActivity
and make changes for all other activitiesYes, Thanks for merging. Closing this issue.