Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Intermittent UI test failure - < SmokeTest. redirectToAppPermissionsSystemSettingsTest > #25034

Closed
AndiAJ opened this issue Apr 29, 2022 · 2 comments
Labels
eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests

Comments

@AndiAJ
Copy link
Collaborator

AndiAJ commented Apr 29, 2022

Firebase Test Run:

Firebase link
Firebase link

Stacktrace:

androidx.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: 'view has effective visibility ' doesn't match the selected view.
Expected: view has effective visibility
Got: ancestor <android.widget.LinearLayout{c581529 G.E..V... ......I. 0,0-0,0 #7f0a03ea app:id/permissions_blocked_container}>'s getVisibility() was
View Details: AppCompatTextView{id=-1, visibility=VISIBLE, 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@ea9b0ae, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, text=Blocked by Android, 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.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:12)
at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:7)
at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:5)
at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:12)
at org.mozilla.fenix.ui.robots.SettingsSubMenuSitePermissionsCommonRobotKt.assertBlockedByAndroid(SettingsSubMenuSitePermissionsCommonRobot.kt:167)
at org.mozilla.fenix.ui.robots.SettingsSubMenuSitePermissionsCommonRobotKt.access$assertBlockedByAndroid(SettingsSubMenuSitePermissionsCommonRobot.kt:1)
at org.mozilla.fenix.ui.robots.SettingsSubMenuSitePermissionsCommonRobot.verifyBlockedByAndroid(SettingsSubMenuSitePermissionsCommonRobot.kt:46)
at org.mozilla.fenix.ui.SmokeTest$redirectToAppPermissionsSystemSettingsTest$5.invoke(SmokeTest.kt:545)
at org.mozilla.fenix.ui.SmokeTest$redirectToAppPermissionsSystemSettingsTest$5.invoke(SmokeTest.kt:544)
at org.mozilla.fenix.ui.robots.SettingsSubMenuSitePermissionsRobot$Transition.openCamera(SettingsSubMenuSitePermissionsRobot.kt:69)
at org.mozilla.fenix.ui.SmokeTest.redirectToAppPermissionsSystemSettingsTest(SmokeTest.kt:544)
... 45 trimmed

Caused by: junit.framework.AssertionFailedError: 'view has effective visibility ' doesn't match the selected view.
Expected: view has effective visibility
Got: ancestor <android.widget.LinearLayout{c581529 G.E..V... ......I. 0,0-0,0 #7f0a03ea app:id/permissions_blocked_container}>'s getVisibility() was
View Details: AppCompatTextView{id=-1, visibility=VISIBLE, 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@ea9b0ae, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, text=Blocked by Android, 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:11)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:2)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:12)
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/29 Main

┆Issue is synchronized with this Jira Task

@AndiAJ AndiAJ added eng:intermittent-test Evil test failures that only happen now-and-then and are a productivity killer eng:ui-test UI Tests labels Apr 29, 2022
@github-actions github-actions bot added the needs:triage Issue needs triage label Apr 29, 2022
@AndiAJ
Copy link
Collaborator Author

AndiAJ commented Apr 29, 2022

Disabled in #25035

@AndiAJ AndiAJ added the eng:disabled-test For any test that has been disabled label Apr 29, 2022
@sv-ohorvath sv-ohorvath removed the needs:triage Issue needs triage label May 30, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jun 30, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 1, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 1, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 1, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 4, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 5, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 5, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 5, 2022
AndiAJ added a commit to AndiAJ/fenix that referenced this issue Jul 6, 2022
@AndiAJ
Copy link
Collaborator Author

AndiAJ commented Jul 7, 2022

Fixed with #25803

@AndiAJ AndiAJ closed this as completed Jul 7, 2022
@AndiAJ AndiAJ removed the eng:disabled-test For any test that has been disabled label Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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

2 participants