Closed Bug 1949108 Opened 1 year ago Closed 1 year ago

Intermittent UI test failure - < MainMenuTestCompose. verifyTheAddToShortcutsSubMenuOptionTest >

Categories

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

All
Android
defect

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox135 --- unaffected
firefox136 --- unaffected
firefox137 --- fixed

People

(Reporter: ajoltan, Assigned: ajoltan)

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

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=2131297775, res-name=top_sites_list, visibility=VISIBLE, width=996, height=556, 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=6}

at dalvik.system.VMStack.getThreadStackTrace(Native Method)
at java.lang.Thread.getStackTrace(Thread.java:1841)
at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:35)
at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:26)
at androidx.test.espresso.base.DefaultFailureHandler$TypedFailureHandler.handle(DefaultFailureHandler.java:158)
at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:120)
at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:387)
at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:366)
at org.mozilla.fenix.ui.robots.HomeScreenRobot.verifyExistingTopSitesTabs(HomeScreenRobot.kt:380)
at org.mozilla.fenix.ui.MainMenuTestCompose$verifyTheAddToShortcutsSubMenuOptionTest$5.invoke(MainMenuTestCompose.kt:452)
at org.mozilla.fenix.ui.MainMenuTestCompose$verifyTheAddToShortcutsSubMenuOptionTest$5.invoke(MainMenuTestCompose.kt:451)
at org.mozilla.fenix.ui.robots.BrowserRobot$Transition.goToHomescreenWithRedesignedToolbar(BrowserRobot.kt:1260)
at org.mozilla.fenix.ui.MainMenuTestCompose.verifyTheAddToShortcutsSubMenuOptionTest(MainMenuTestCompose.kt:451)
... 56 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=2131297775, res-name=top_sites_list, visibility=VISIBLE, width=996, height=556, 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=6}

at androidx.test.espresso.matcher.ViewMatchers.assertThat(ViewMatchers.java:620)
at androidx.test.espresso.assertion.ViewAssertions$MatchesViewAssertion.check(ViewAssertions.java:97)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:488)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:346)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:319)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Build: 2/18 mozilla-central

► 2/19 autoland Firebase link

Assignee: nobody → ajoltan
Attachment #9467093 - Attachment description: WIP: Bug 1949108 - Fix verifyTheAddToShortcutsSubMenuOptionTest UI test → Bug 1949108 - Fix verifyTheAddToShortcutsSubMenuOptionTest UI test
Status: NEW → ASSIGNED
Pushed by ajoltan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/67bfb46cb4f2 Fix verifyTheAddToShortcutsSubMenuOptionTest UI test r=aaronmt
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: