Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent UI test failure - openNewPrivateTabTest #1923

Open
Archaeopteryx opened this issue Jun 13, 2022 · 6 comments
Open

Intermittent UI test failure - openNewPrivateTabTest #1923

Archaeopteryx opened this issue Jun 13, 2022 · 6 comments
Labels
eng:disabled-test For any test that has been disabled eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests

Comments

@Archaeopteryx
Copy link

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:

c190eb2

@Archaeopteryx Archaeopteryx added the eng:ui-test UI Tests label Jun 13, 2022
@AaronMT
Copy link
Contributor

AaronMT commented Jun 13, 2022

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 🤷🏼

@AndiAJ
Copy link
Contributor

AndiAJ commented Dec 9, 2022

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
Copy link
Contributor

AndiAJ commented Dec 19, 2022

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
Copy link
Contributor

AndiAJ commented May 2, 2023

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
Copy link
Contributor

AndiAJ commented May 2, 2023

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
Copy link
Contributor

AndiAJ commented May 2, 2023

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 added a commit to AndiAJ/reference-browser that referenced this issue May 2, 2023
@AndiAJ AndiAJ added eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:disabled-test For any test that has been disabled labels May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eng:disabled-test For any test that has been disabled eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests
Projects
None yet
Development

No branches or pull requests

3 participants