question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tests Failing on Espresso in Landscape with small screen size or bug

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
FareesHussaincommented, Jan 19, 2021

Yup, so should I make a PR for AdminPinActivityTest?

@FareesHussain are you working on this? else you can assign to Abhay.

It’s fine then I’ll leave AdminPinActivity and make changes for all other activities

0reactions
anandwana001commented, Jan 21, 2021

Yes, Thanks for merging. Closing this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found