Open Bug 1895447 Opened 1 year ago Updated 4 days ago

Intermittent UI test failure - < TopSitesTest.addAWebsiteAsATopSiteTest >

Categories

(Firefox for Android :: UI Tests, defect, P3)

Firefox 127
All
Android
defect

Tracking

()

REOPENED
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

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE

► 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)

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → INCOMPLETE

► 11/10 mozilla-beta Firebase link

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
You need to log in before you can comment on or make changes to this bug.