mozilla-mobile / fenix

⚠️ Fenix (Firefox for Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
https://github.com/mozilla-mobile/firefox-android
Mozilla Public License 2.0
6.48k stars 1.27k forks source link

Intermittent UI test failure - < SmokeTest. shareTabsFromTabsTrayTest > #25469

Closed AndiAJ closed 2 years ago

AndiAJ commented 2 years ago

Firebase Test Run: Firebase link

Stacktrace:

androidx.test.espresso.AmbiguousViewMatcherException: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Test_Page_1"' matches multiple views in the hierarchy. Problem views are marked with 'MATCHES' below.

View Hierarchy: +>DecorView{id=-1, visibility=VISIBLE, width=1080, height=1920, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params={(0,0)(fillxfill) gr=CENTER sim={adjust=resize} ty=APPLICATION fmt=TRANSPARENT wanim=0x7f140008 fl=LAYOUT_IN_SCREEN LAYOUT_INSET_DECOR HARDWARE_ACCELERATED TRANSLUCENT_NAVIGATION DRAWS_SYSTEM_BAR_BACKGROUNDS pfl=FORCE_DRAW_STATUS_BAR_BACKGROUND FIT_INSETS_CONTROLLED fitSides=}, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=2} +->LinearLayout{id=-1, visibility=VISIBLE, width=1080, height=1920, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.FrameLayout$LayoutParams@272367c, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=2}
+-->ViewStub{id=16908719, res-name=action_mode_bar_stub, visibility=GONE, width=0, height=0, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=true, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@7232b05, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0} +-->FrameLayout{id=-1, visibility=VISIBLE, width=1080, height=1920, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@bf3075a, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1}
+--->FitWindowsLinearLayout{id=2131361876, res-name=action_bar_root, visibility=VISIBLE, width=1080, height=1920, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.FrameLayout$LayoutParams@a307281, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=2} +---->ViewStubCompat{id=2131361946, res-name=action_mode_bar_stub, visibility=GONE, width=0, height=0, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=true, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@f997a29, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0}
+---->ContentFrameLayout{id=16908290, res-name=content, visibility=VISIBLE, width=1080, height=1920, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.LinearLayout$LayoutParams@c47b1ae, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1} +----->ConstraintLayout{id=2131362949, res-name=shareWrapper, visibility=VISIBLE, width=1080, height=1920, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=true, is-enabled=true, is-focused=false, is-focusable=true, is-layout-requested=false, is-selected=false, layout-params=android.widget.FrameLayout$LayoutParams@d3ddb4f, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3}
+------>FrameLayout{id=2131362200, res-name=closeSharingScrim, visibility=VISIBLE, width=1080, height=1722, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@a42a2dc, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=66.0, child-count=0} +------>FrameLayout{id=2131362199, res-name=closeSharingContent, visibility=VISIBLE, width=1080, height=871, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@e268fe5, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=66.0, child-count=1}
+------->ConstraintLayout{id=-1, visibility=VISIBLE, width=1080, height=871, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.FrameLayout$LayoutParams@6613aba, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=3} +-------->AppCompatImageView{id=2131362198, res-name=closeButton, desc=Close, visibility=VISIBLE, width=132, height=132, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=true, is-enabled=true, is-focused=false, is-focusable=true, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@d26dd6b, tag=null, root-is-layout-requested=false, has-input-connection=false, x=28.0, y=44.0}
+-------->AppCompatTextView{id=2131363106, res-name=title, visibility=VISIBLE, width=157, height=136, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@cc510c8, tag=null, root-is-layout-requested=false, has-input-connection=false, x=160.0, y=44.0, text=Share, input-type=0, ime-target=false, has-links=false} +-------->RecyclerView{id=2131362956, res-name=shared_site_list, visibility=VISIBLE, width=1080, height=648, 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=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@db54561, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=180.0, child-count=4}
+--------->ConstraintLayout{id=-1, visibility=VISIBLE, width=1036, height=118, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.recyclerview.widget.RecyclerView$LayoutParams@b584886, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=22.0, child-count=3} +---------->AppCompatImageView{id=2131362953, res-name=share_tab_favicon, visibility=VISIBLE, width=110, height=110, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@853e547, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=4.0}
+---------->AppCompatTextView{id=2131362954, res-name=share_tab_title, visibility=VISIBLE, width=904, height=74, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@77e7174, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=0.0, text=Test_Page_1, input-type=0, ime-target=false, has-links=false} MATCHES +---------->AppCompatTextView{id=2131362955, res-name=share_tab_url, visibility=VISIBLE, width=904, height=44, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@b1fd69d, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=74.0, text=http://localhost:48283/pages/generic1.html, input-type=0, ime-target=false, has-links=false}
+--------->ConstraintLayout{id=-1, visibility=VISIBLE, width=1036, height=118, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.recyclerview.widget.RecyclerView$LayoutParams@a606712, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=184.0, child-count=3} +---------->AppCompatImageView{id=2131362953, res-name=share_tab_favicon, visibility=VISIBLE, width=110, height=110, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@45f8ee3, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=4.0}
+---------->AppCompatTextView{id=2131362954, res-name=share_tab_title, visibility=VISIBLE, width=904, height=74, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@cb30e0, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=0.0, text=Test_Page_1, input-type=0, ime-target=false, has-links=false} MATCHES +---------->AppCompatTextView{id=2131362955, res-name=share_tab_url, visibility=VISIBLE, width=904, height=44, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@ca83f99, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=74.0, text=http://localhost:43209/pages/generic1.html, input-type=0, ime-target=false, has-links=false}
+--------->ConstraintLayout{id=-1, visibility=VISIBLE, width=1036, height=118, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.recyclerview.widget.RecyclerView$LayoutParams@59e25e, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=346.0, child-count=3} +---------->AppCompatImageView{id=2131362953, res-name=share_tab_favicon, visibility=VISIBLE, width=110, height=110, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@bf2363f, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=4.0}
+---------->AppCompatTextView{id=2131362954, res-name=share_tab_title, visibility=VISIBLE, width=904, height=74, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@6627b0c, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=0.0, text=Test_Page_1, input-type=0, ime-target=false, has-links=false} MATCHES +---------->AppCompatTextView{id=2131362955, res-name=share_tab_url, visibility=VISIBLE, width=904, height=44, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@b43c55, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=74.0, text=http://localhost:43459/pages/generic1.html, input-type=0, ime-target=false, has-links=false}
+--------->ConstraintLayout{id=-1, visibility=VISIBLE, width=1036, height=118, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.recyclerview.widget.RecyclerView$LayoutParams@5ddc66a, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=508.0, child-count=3} +---------->AppCompatImageView{id=2131362953, res-name=share_tab_favicon, visibility=VISIBLE, width=110, height=110, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@1ddf75b, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=4.0}
+---------->AppCompatTextView{id=2131362954, res-name=share_tab_title, visibility=VISIBLE, width=904, height=74, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@8423bf8, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=0.0, text=Test_Page_2, input-type=0, ime-target=false, has-links=false} +---------->AppCompatTextView{id=2131362955, res-name=share_tab_url, visibility=VISIBLE, width=904, height=44, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@c4948d1, tag=null, root-is-layout-requested=false, has-input-connection=false, x=132.0, y=74.0, text=http://localhost:43459/pages/generic2.html, input-type=0, ime-target=false, has-links=false}
+------>ConstraintLayout{id=2131362957, res-name=sharingLayout, visibility=VISIBLE, width=1080, height=851, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@9faae37, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=937.0, child-count=4} +------->FrameLayout{id=2131362055, res-name=appsShareLayout, visibility=VISIBLE, width=1080, height=550, has-focus=false, has-focusable=true, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=androidx.constraintlayout.widget.ConstraintLayout$LayoutParams@65b1fa4, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=301.0, child-count=1}

+-------->HorizontalScrollView{id=-1, visibility=VISIBLE, width=1080, height=550, 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.FrameLayout$LayoutParams@548a10d, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, child-count=1} | +--------->ConstraintLayout{id=2131362056, r

Build: 5/31

┆Issue is synchronized with this Jira Task

sv-ohorvath commented 2 years ago

Flaky 1x on main 6/9: https://console.firebase.google.com/u/0/project/moz-fenix/testlab/histories/bh.66b7091e15d53d45/matrices/6696243506005561227/executions/bs.39b4ffffd0b7330c java.lang.RuntimeException: Error while connecting UiAutomation@f97a6c2[id=-1, flags=0] at android.app.UiAutomation.connect(UiAutomation.java:259) at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2176) at androidx.test.uiautomator.UiDevice.getUiAutomation(UiDevice.java:1129) at androidx.test.uiautomator.QueryController.<init>(QueryController.java:95) at androidx.test.uiautomator.UiDevice.<init>(UiDevice.java:109) at androidx.test.uiautomator.UiDevice.getInstance(UiDevice.java:261) at org.mozilla.fenix.ui.SmokeTest.<init>(SmokeTest.kt:64) Known issue: https://github.com/mozilla-mobile/fenix/issues/25132

AndiAJ commented 2 years ago

Closing, as it didn't fail for approx a month.