Closed Bug 1826317 Opened 2 years ago Closed 4 months ago

Intermittent UI test failure - < SettingsHTTPSOnlyModeTest.httpsOnlyModeEnabledInNormalBrowsingTest >

Categories

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

Firefox 113
All
Android
defect

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox113 --- wontfix
firefox117 --- unaffected
firefox118 --- unaffected
firefox119 --- wontfix
firefox122 --- unaffected
firefox123 --- unaffected
firefox124 --- wontfix
firefox134 --- unaffected
firefox135 --- unaffected
firefox136 --- wontfix
firefox137 --- wontfix
firefox141 --- wontfix
firefox142 --- wontfix
firefox143 --- wontfix

People

(Reporter: ajoltan, Unassigned)

Details

(Keywords: intermittent-failure)

Firebase Test Run: Firebase link

Stacktrace:

androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "https://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 "https://example.com/"
Got: view.getText() was "http://example.com/" transformed text was "http://example.com/"
View Details: TextView{id=2131297187, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=933, height=105, 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=0.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: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.fenix.ui.robots.NavigationToolbarRobot.verifyUrl(NavigationToolbarRobot.kt:48)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest$httpsOnlyModeEnabledInNormalBrowsingTest$8.invoke(SettingsHTTPSOnlyModeTest.kt:79)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest$httpsOnlyModeEnabledInNormalBrowsingTest$8.invoke(SettingsHTTPSOnlyModeTest.kt:78)
at org.mozilla.fenix.ui.robots.BrowserRobot$Transition.openNavigationToolbar(BrowserRobot.kt:1081)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest.httpsOnlyModeEnabledInNormalBrowsingTest(SettingsHTTPSOnlyModeTest.kt:78)
... 32 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "https://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 "https://example.com/"
Got: view.getText() was "http://example.com/" transformed text was "http://example.com/"
View Details: TextView{id=2131297187, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=933, height=105, 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=0.0, text=http://example.com/, 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)

Build: 4/3 Main

Flaky 1x on 4/27 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 "https://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 "https://example.com/"
Got: view.getText() was "http://example.com/" transformed text was "http://example.com/"
View Details: TextView{id=2131297190, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=933, height=105, 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=0.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: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.fenix.ui.robots.NavigationToolbarRobot.verifyUrl(NavigationToolbarRobot.kt:48)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest$httpsOnlyModeEnabledInNormalBrowsingTest$8.invoke(SettingsHTTPSOnlyModeTest.kt:81)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest$httpsOnlyModeEnabledInNormalBrowsingTest$8.invoke(SettingsHTTPSOnlyModeTest.kt:80)
at org.mozilla.fenix.ui.robots.BrowserRobot$Transition.openNavigationToolbar(BrowserRobot.kt:833)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest.httpsOnlyModeEnabledInNormalBrowsingTest(SettingsHTTPSOnlyModeTest.kt:80)
... 32 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "https://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 "https://example.com/"
Got: view.getText() was "http://example.com/" transformed text was "http://example.com/"
View Details: TextView{id=2131297190, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=933, height=105, 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=0.0, text=http://example.com/, 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)

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 "https://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 "https://example.com/"
Got: view.getText() was "http://example.com/" transformed text was "http://example.com/"
View Details: TextView{id=2131297190, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=933, height=105, 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=0.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: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.fenix.ui.robots.NavigationToolbarRobot.verifyUrl(NavigationToolbarRobot.kt:48)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest$httpsOnlyModeEnabledInNormalBrowsingTest$8.invoke(SettingsHTTPSOnlyModeTest.kt:82)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest$httpsOnlyModeEnabledInNormalBrowsingTest$8.invoke(SettingsHTTPSOnlyModeTest.kt:81)
at org.mozilla.fenix.ui.robots.BrowserRobot$Transition.openNavigationToolbar(BrowserRobot.kt:833)
at org.mozilla.fenix.ui.SettingsHTTPSOnlyModeTest.httpsOnlyModeEnabledInNormalBrowsingTest(SettingsHTTPSOnlyModeTest.kt:81)
... 32 trimmed

Caused by: junit.framework.AssertionFailedError: 'an instance of android.widget.TextView and view.getText() with or without transformation to match: is "https://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 "https://example.com/"
Got: view.getText() was "http://example.com/" transformed text was "http://example.com/"
View Details: TextView{id=2131297190, res-name=mozac_browser_toolbar_url_view, visibility=VISIBLE, width=933, height=105, 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=0.0, text=http://example.com/, 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)
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE

► 9/3 Firebase link

java.lang.AssertionError: Page didn't load or doesn't contain the expected text at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.assertTrue(Assert.java:42) at org.mozilla.fenix.ui.robots.BrowserRobot.verifyPageContent(BrowserRobot.kt:115)

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → INCOMPLETE

► 2/15 Firebase link

java.lang.AssertionError: UiSelector[CONTAINS_TEXT=Example Domain] does not exist at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.assertTrue(Assert.java:42) at org.mozilla.fenix.helpers.MatcherHelper.assertUIObjectExists(MatcherHelper.kt:99) at org.mozilla.fenix.helpers.MatcherHelper.assertUIObjectExists$default(MatcherHelper.kt:92) at org.mozilla.fenix.ui.robots.BrowserRobot.verifyPageContent(BrowserRobot.kt:117)

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago1 year ago
Resolution: --- → INCOMPLETE

► 1/28 autoland Firebase link

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

► 2/3 autoland Firebase link

Status: REOPENED → RESOLVED
Closed: 1 year ago11 months ago
Resolution: --- → INCOMPLETE

► 2/27 autoland Firebase link

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 11 months ago10 months ago
Resolution: --- → INCOMPLETE

► 7/18 mozilla-release
httpsOnlyModeEnabledInNormalBrowsingTest Firebase link

► 7/18 mozilla-release failure
httpsOnlyModeEnabledInNormalBrowsingTest Firebase link

► 7/18 autoland Firebase link

Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

► 7/22 mozilla-release
Firebase link

► 8/11 autoland Firebase link

► 8/11 autoland Firebase link

► 9/02 mozilla-beta Firebase link

► 9/02 mozilla-beta Firebase link

► 9/04 autoland Firebase link

Status: REOPENED → RESOLVED
Closed: 10 months ago4 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.