reference-browser icon indicating copy to clipboard operation
reference-browser copied to clipboard

Intermittent UI test failure - openNewPrivateTabTest

Open Archaeopteryx opened this issue 3 years ago • 6 comments

Firebase Test Run:

https://treeherder.mozilla.org/logviewer?job_id=381041516&repo=reference-browser

Stacktrace:

java.lang.RuntimeException: item: WorkspaceItemInfo(id=9 type=APP container=5 targetComponent=ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity} screen=0 cell(0,1) span(1,1) minSpan(1,1) rank=3 user=UserHandle{0} title=Maps)modelItem: WorkspaceItemInfo(id=9 type=APP container=5 targetComponent=ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity} screen=0 cell(0,1) span(1,1) minSpan(1,1) rank=3 user=UserHandle{0} title=Maps)Error: ItemInfo passed to checkItemInfo doesn't match original

       FATAL EXCEPTION: launcher-loader
Process: com.android.launcher3, PID: 1974
java.lang.RuntimeException: item: WorkspaceItemInfo(id=9 type=APP container=5 targetComponent=ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity} screen=0 cell(0,1) span(1,1) minSpan(1,1) rank=3 user=UserHandle{0} title=Maps)modelItem: WorkspaceItemInfo(id=9 type=APP container=5 targetComponent=ComponentInfo{com.google.android.apps.maps/com.google.android.maps.MapsActivity} screen=0 cell(0,1) span(1,1) minSpan(1,1) rank=3 user=UserHandle{0} title=Maps)Error: ItemInfo passed to checkItemInfo doesn't match original
	at com.android.launcher3.model.ModelWriter$UpdateItemBaseRunnable.<init>(ModelWriter.java:419)
	at com.android.launcher3.model.ModelWriter$UpdateItemsRunnable.<init>(ModelWriter.java:388)
	at com.android.launcher3.model.ModelWriter.moveItemsInDatabase(ModelWriter.java:187)
	at com.android.launcher3.folder.Folder.updateItemLocationsInDatabaseBatch(Folder.java:1000)
	at com.android.launcher3.folder.Folder.bind(Folder.java:422)
	at com.android.launcher3.folder.FolderIcon.inflateFolderAndIcon(FolderIcon.java:174)
	at com.android.launcher3.Launcher.bindItems(Launcher.java:2100)
	at com.android.launcher3.model.BaseLoaderResults$WorkspaceBinder.lambda$bindWorkspaceItems$5(BaseLoaderResults.java:241)
	at com.android.launcher3.model.-$$Lambda$BaseLoaderResults$WorkspaceBinder$u3fVFEA_dzybIfdOdmLuq72EG4o.execute(Unknown Source:6)
	at com.android.launcher3.model.BaseLoaderResults$WorkspaceBinder.lambda$executeCallbacksTask$8$BaseLoaderResults$WorkspaceBinder(BaseLoaderResults.java:267)
	at com.android.launcher3.model.-$$Lambda$BaseLoaderResults$WorkspaceBinder$DoJdszY9e4_DUwoU7ASsVyUHvxU.run(Unknown Source:4)
	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:

https://github.com/mozilla-mobile/reference-browser/commit/c190eb23794b31c4c1f9cad04c5adf5a8357cbb5

Archaeopteryx avatar Jun 13 '22 09:06 Archaeopteryx

More accurate stack

java.util.ConcurrentModificationException
       FATAL EXCEPTION: main
Process: com.google.android.googlequicksearchbox:search, PID: 13100
java.util.ConcurrentModificationException
	at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:966)
	at java.util.LinkedList$ListItr.next(LinkedList.java:888)
	at com.google.android.apps.gsa.shared.util.debug.a.g.a(SourceFile:30)
	at com.google.android.apps.gsa.shared.util.debug.a.g.a(SourceFile:135)
	at com.google.android.apps.gsa.contentprovider.initializer.c.dump(SourceFile:6)
	at android.app.ActivityThread.handleDumpProvider(ActivityThread.java:4307)
	at android.app.ActivityThread.access$2400(ActivityThread.java:237)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2013)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	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)

and even so, it's not even our code 🤷🏼

AaronMT avatar Jun 13 '22 15:06 AaronMT

Flaky 1x on 12/8 Main [Firebase link](androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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.reference.browser.ui.robots.NavigationToolbarRobot.checkNumberOfTabsTabCounter(NavigationToolbarRobot.kt:34)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:193)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:191)
at org.mozilla.reference.browser.ui.robots.TabTrayMenuRobot$Transition.openNewTab(TabTrayMenuRobot.kt:71)
at org.mozilla.reference.browser.ui.TabTrayMenuTest.openNewPrivateTabTest(TabTrayMenuTest.kt:191)
... 35 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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

AndiAJ avatar Dec 09 '22 11:12 AndiAJ

Failed 1x on 12/17 Main Firebase link Firebase link

androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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.reference.browser.ui.robots.NavigationToolbarRobot.checkNumberOfTabsTabCounter(NavigationToolbarRobot.kt:34)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:193)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:191)
at org.mozilla.reference.browser.ui.robots.TabTrayMenuRobot$Transition.openNewTab(TabTrayMenuRobot.kt:71)
at org.mozilla.reference.browser.ui.TabTrayMenuTest.openNewPrivateTabTest(TabTrayMenuTest.kt:191)
... 35 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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)

AndiAJ avatar Dec 19 '22 12:12 AndiAJ

Failed 1x on 4/29 Main Firebase link Firebase link

androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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.reference.browser.ui.robots.NavigationToolbarRobot.checkNumberOfTabsTabCounter(NavigationToolbarRobot.kt:34)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:193)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:191)
at org.mozilla.reference.browser.ui.robots.TabTrayMenuRobot$Transition.openNewTab(TabTrayMenuRobot.kt:71)
at org.mozilla.reference.browser.ui.TabTrayMenuTest.openNewPrivateTabTest(TabTrayMenuTest.kt:191)
... 35 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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)

AndiAJ avatar May 02 '23 14:05 AndiAJ

Failed 1x on 5/1 Main Firebase link Firebase link

androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "5" transformed text was "5" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=5, input-type=0, ime-target=false, has-links=false}

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.reference.browser.ui.robots.NavigationToolbarRobot.checkNumberOfTabsTabCounter(NavigationToolbarRobot.kt:34)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:193)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:191)
at org.mozilla.reference.browser.ui.robots.TabTrayMenuRobot$Transition.openNewTab(TabTrayMenuRobot.kt:71)
at org.mozilla.reference.browser.ui.TabTrayMenuTest.openNewPrivateTabTest(TabTrayMenuTest.kt:191)
... 35 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "5" transformed text was "5" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=5, input-type=0, ime-target=false, has-links=false}

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)

AndiAJ avatar May 02 '23 14:05 AndiAJ

Flaky 1x on 5/2 Main Firebase link

androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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.reference.browser.ui.robots.NavigationToolbarRobot.checkNumberOfTabsTabCounter(NavigationToolbarRobot.kt:34)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:193)
at org.mozilla.reference.browser.ui.TabTrayMenuTest$openNewPrivateTabTest$3.invoke(TabTrayMenuTest.kt:191)
at org.mozilla.reference.browser.ui.robots.TabTrayMenuRobot$Transition.openNewTab(TabTrayMenuRobot.kt:71)
at org.mozilla.reference.browser.ui.TabTrayMenuTest.openNewPrivateTabTest(TabTrayMenuTest.kt:191)
... 35 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1"' doesn't match the selected view. Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "1" Got: view.getText() was "4" transformed text was "4" View Details: AppCompatTextView{id=2131296448, res-name=counter_text, visibility=VISIBLE, width=18, height=43, 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=android.widget.FrameLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=22.0, y=9.0, text=4, input-type=0, ime-target=false, has-links=false}

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)

AndiAJ avatar May 02 '23 14:05 AndiAJ