Intermittent UI test failure - < HTTPSFirstModeTest. httpsFirstModeExplicitSchemeTest >
Categories
(Fenix :: UI Tests, defect, P3)
Tracking
(firefox135 unaffected, firefox136 unaffected, firefox137 affected)
Tracking | Status | |
---|---|---|
firefox135 | --- | unaffected |
firefox136 | --- | unaffected |
firefox137 | --- | affected |
People
(Reporter: ajoltan, Unassigned, NeedInfo)
References
(Regression)
Details
(Keywords: intermittent-failure, regression)
Firebase Test Run:
Failed 1x
Stacktrace:
androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "http://example.com/"' doesn't match the selected view.
Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "http://example.com/"
Got: view.getText() was "http://example.com" transformed text was "http://example.com"
View Details: TextView{id=2131297254, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=975, height=53, 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.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=47.0, text=http://example.com, input-type=0, ime-target=false, has-links=false}
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.NavigationToolbarRobot.verifyUrl(NavigationToolbarRobot.kt:74)
at org.mozilla.fenix.ui.HTTPSFirstModeTest$httpsFirstModeExplicitSchemeTest$3.invoke(HTTPSFirstModeTest.kt:38)
at org.mozilla.fenix.ui.HTTPSFirstModeTest$httpsFirstModeExplicitSchemeTest$3.invoke(HTTPSFirstModeTest.kt:37)
at org.mozilla.fenix.ui.robots.BrowserRobot$Transition.openNavigationToolbar(BrowserRobot.kt:1151)
at org.mozilla.fenix.ui.HTTPSFirstModeTest.httpsFirstModeExplicitSchemeTest(HTTPSFirstModeTest.kt:37)
... 52 trimmed
Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "http://example.com/"' doesn't match the selected view.
Expected: an instance of android.widget.TextView and view.getText() with or without transformation to match: is "http://example.com/"
Got: view.getText() was "http://example.com" transformed text was "http://example.com"
View Details: TextView{id=2131297254, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=975, height=53, 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.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=47.0, text=http://example.com, input-type=0, ime-target=false, has-links=false}
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/13 autoland
Updated•5 days ago
|
Comment 1•5 days ago
|
||
From what I can see in the matrice here, on the implicit test loading example.com does load the https version but the address-bar shows http://example.com/ and on the explicit test, visiting http://example.com/ the URL bar shows no / so http://example.com
Comment 2•5 days ago
|
||
I just see in httpsFirstModeExplicitSchemeTest with the expected instance of getText retrieving http://example.com versus the explicit check against the URL with a /
02-13 00:57:08.877 7883 8005 E TestRunner: View Details: TextView{id=2131297254, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=975, height=53, 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.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=47.0, text=http://example.com, input-type=0, ime-target=false, has-links=false}
The text value of of mozac_browser_toolbar_url_view is still assigned http://example.com
Comment 3•5 days ago
|
||
:maltejur, since you are the author of the regressor, bug 1901120, could you take a look?
For more information, please visit BugBot documentation.
Updated•5 days ago
|
Description
•