Intermittent UI test failure - < TopSitesTest.addAWebsiteAsATopSiteTest >
Categories
(Firefox for Android :: UI Tests, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | unaffected |
| firefox126 | --- | unaffected |
| firefox127 | --- | wontfix |
| firefox128 | --- | wontfix |
| firefox129 | --- | wontfix |
| firefox145 | --- | unaffected |
| firefox146 | --- | affected |
| firefox147 | --- | affected |
People
(Reporter: ajoltan, Unassigned)
Details
(Keywords: intermittent-failure)
Firebase Test Run: Firebase link
Stacktrace:
androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: '(view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1")' doesn't match the selected view.
Expected: (view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1")
Got: no descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1" was found
View Details: RecyclerView{id=2131297769, res-name=top_sites_list, visibility=VISIBLE, width=996, height=296, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=true, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3}
at dalvik.system.VMStack.getThreadStackTrace(Native Method)
at java.lang.Thread.getStackTrace(Thread.java:1736)
at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:3)
at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:1)
at androidx.test.espresso.base.DefaultFailureHandler$TypedFailureHandler.handle(DefaultFailureHandler.java:4)
at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:5)
at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:5)
at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:12)
at org.mozilla.fenix.ui.robots.HomeScreenRobot.verifyExistingTopSitesTabs(HomeScreenRobot.kt:375)
at org.mozilla.fenix.ui.TopSitesTest$addAWebsiteAsATopSiteTest$6.invoke(TopSitesTest.kt:57)
at org.mozilla.fenix.ui.TopSitesTest$addAWebsiteAsATopSiteTest$6.invoke(TopSitesTest.kt:55)
at org.mozilla.fenix.ui.robots.BrowserRobot$Transition.goToHomescreen(BrowserRobot.kt:1111)
at org.mozilla.fenix.ui.TopSitesTest.addAWebsiteAsATopSiteTest(TopSitesTest.kt:55)
... 34 trimmed
Caused by: junit.framework.AssertionFailedError: '(view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1")' doesn't match the selected view.
Expected: (view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1")
Got: no descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1" was found
View Details: RecyclerView{id=2131297769, res-name=top_sites_list, visibility=VISIBLE, width=996, height=296, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=true, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3}
at androidx.test.espresso.matcher.ViewMatchers.assertThat(ViewMatchers.java:16)
at androidx.test.espresso.assertion.ViewAssertions$MatchesViewAssertion.check(ViewAssertions.java:7)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:2)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:14)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7656)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Build: 5/6 Main
| Reporter | ||
Comment 1•1 year ago
|
||
► 5/13 Firebase link
Comment 2•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
| Reporter | ||
Comment 3•1 year ago
|
||
► 6/24 Firebase link
java.lang.AssertionError: UiSelector[CONTAINS_TEXT=Added to shortcuts!] does not exist at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.assertTrue(Assert.java:42) at org.mozilla.fenix.helpers.MatcherHelper.assertUIObjectExists(MatcherHelper.kt:100) at org.mozilla.fenix.helpers.MatcherHelper.assertUIObjectExists$default(MatcherHelper.kt:92) at org.mozilla.fenix.helpers.TestHelper.verifySnackBarText(TestHelper.kt:146) at org.mozilla.fenix.ui.ComposeTopSitesTest$addAWebsiteAsATopSiteTest$5.invoke(ComposeTopSitesTest.kt:60) at org.mozilla.fenix.ui.ComposeTopSitesTest$addAWebsiteAsATopSiteTest$5.invoke(ComposeTopSitesTest.kt:59) at org.mozilla.fenix.ui.robots.ThreeDotMenuMainRobot$Transition.addToFirefoxHome(ThreeDotMenuMainRobot.kt:549) at org.mozilla.fenix.ui.ComposeTopSitesTest.addAWebsiteAsATopSiteTest(ComposeTopSitesTest.kt:59)
Comment 4•1 year ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit BugBot documentation.
Comment 5•5 days ago
|
||
► 11/10 mozilla-beta Firebase link
Comment 6•4 days ago
|
||
► 11/11 autoland Firebase link
Description
•