Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Intermittent UI test failure - SettingsBasicsTest.toggleShowVisitedSitesAndBookmarks #8714

Closed
rpappalax opened this issue Feb 25, 2020 · 5 comments
Assignees
Labels
eng:disabled-test For any test that has been disabled eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests Feature:Bookmarks

Comments

@rpappalax
Copy link
Contributor

rpappalax commented Feb 25, 2020

toggleShowVisitedSitesAndBookmarks(org.mozilla.fenix.ui.SettingsBasicsTest)
02-24 18:42:05.201: E/TestRunner(8114): ----- begin exception -----
02-24 18:42:05.202: E/TestRunner(8114): androidx.test.espresso.PerformException: Error performing 'replace text(http://localhost:44970/pages/generic2.html)' on view 'with id: org.mozilla.fenix.debug:id/mozac_browser_toolbar_edit_url_view'.

firebase log

┆Issue is synchronized with this Jira Task

@rpappalax rpappalax added 🐞 bug Crashes, Something isn't working, .. eng:automation Build automation, Continuous integration, .. labels Feb 25, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Feb 25, 2020
@AaronMT
Copy link
Contributor

AaronMT commented Feb 25, 2020

androidx.test.espresso.PerformException: Error performing 'replace text(http://localhost:44970/pages/generic2.html)' on view 'with id: org.mozilla.fenix.debug:id/mozac_browser_toolbar_edit_url_view'.

Caused by: java.lang.RuntimeException: Action will not be performed because the target view does not match one or more of the following constraints:
02-24 18:42:05.202: E/TestRunner(8114): (is displayed on the screen to the user and is assignable from class: class android.widget.EditText)

mozac_browser_toolbar_edit_url_view is an InlineAutocompleteEditText.

https://developer.android.com/reference/android/support/test/espresso/action/ViewActions#replacetext

replaceText has a few View conditions:

  • must be displayed on screen
  • must be assignable from EditText

I'm thinking that we need to wait for the search fragment to load.

@rpappalax rpappalax changed the title [Bug] Fix flaky UI test - toggleShowVisitedSitesAndBookmarks [Bug] Fix intermittent UI test failure - toggleShowVisitedSitesAndBookmarks Feb 26, 2020
@rpappalax rpappalax added the eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer label Feb 26, 2020
@ekager
Copy link
Contributor

ekager commented Feb 26, 2020

Ah sorry @AaronMT didn't realize you were looking at this, I actually just saw the trace on another test and took a guess with #8790

@AaronMT
Copy link
Contributor

AaronMT commented Feb 27, 2020

np, thanks for taking it on. Let's see if it fixes this in the next few days.

@rpappalax rpappalax removed the eng:automation Build automation, Continuous integration, .. label Jun 2, 2020
@ekager ekager removed the needs:triage Issue needs triage label Jun 2, 2020
@AaronMT AaronMT added eng:ui-test UI Tests and removed 🐞 bug Crashes, Something isn't working, .. labels Jun 3, 2020
@AaronMT
Copy link
Contributor

AaronMT commented Jun 5, 2020

See: #8749

@AaronMT AaronMT added the eng:disabled-test For any test that has been disabled label Jun 5, 2020
@rpappalax rpappalax changed the title [Bug] Fix intermittent UI test failure - toggleShowVisitedSitesAndBookmarks Intermittent UI test failure - SettingsBasicsTest.toggleShowVisitedSitesAndBookmarks Jul 2, 2020
@rpappalax
Copy link
Contributor Author

rpappalax commented Jul 2, 2020

@sv-ohorvath @AaronMT re-tested 50x successfully. shall we re-enable?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
eng:disabled-test For any test that has been disabled eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests Feature:Bookmarks
Projects
None yet
Development

No branches or pull requests

4 participants