Closed
Bug 1868858
Opened 1 year ago
Closed 1 year ago
Fix test failure SettingsAddonsTest.noCrashWithAddonInstalledTest
Categories
(Firefox for Android :: UI Tests, defect)
Tracking
()
RESOLVED
FIXED
122 Branch
People
(Reporter: jajohnson, Assigned: jajohnson)
Details
Attachments
(2 files, 1 obsolete file)
Device: Pixel 2 (Arm), Virtual, API Level 30
Video of Firebase test run can be found here:
view in firebase
Test Stack Trace:
androidx.test.espresso.PerformException: Error performing 'single click' on view '(view.getContentDescription() to match resource id <2131952442>[mozac_feature_addons_install_addon_content_description] with value "Install Add-on" and is descendant of a view matching view.getId() is <2131296499/org.mozilla.fenix.debug:id/add_on_item> and (view.getParent() is an instance of android.view.ViewGroup and has a sibling matching (view is an instance of android.view.ViewGroup and has descendant matching an instance of android.widget.TextView and view.getText() with or without transformation to match: is "Tampermonkey")))'.
at androidx.test.espresso.PerformException$Builder.build(PerformException.java:1)
at androidx.test.espresso.base.PerformExceptionHandler.handleSafely(PerformExceptionHandler.java:8)
at androidx.test.espresso.base.PerformExceptionHandler.handleSafely(PerformExceptionHandler.java:9)
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:8)
at androidx.test.espresso.ViewInteraction.desugaredPerform(ViewInteraction.java:11)
at androidx.test.espresso.ViewInteraction.perform(ViewInteraction.java:8)
at org.mozilla.fenix.helpers.ViewInteractionKt.click(ViewInteraction.kt:18)
at org.mozilla.fenix.ui.robots.SettingsSubMenuAddonsManagerRobot.clickInstallAddon(SettingsSubMenuAddonsManagerRobot.kt:94)
at org.mozilla.fenix.ui.robots.SettingsSubMenuAddonsManagerRobot$installAddon$3.invoke(SettingsSubMenuAddonsManagerRobot.kt:164)
at org.mozilla.fenix.ui.robots.SettingsSubMenuAddonsManagerRobot$installAddon$3.invoke(SettingsSubMenuAddonsManagerRobot.kt:163)
at org.mozilla.fenix.ui.robots.ThreeDotMenuMainRobot$Transition.openAddonsManagerMenu(ThreeDotMenuMainRobot.kt:450)
at org.mozilla.fenix.ui.robots.SettingsSubMenuAddonsManagerRobot.installAddon(SettingsSubMenuAddonsManagerRobot.kt:163)
at org.mozilla.fenix.ui.SettingsAddonsTest$noCrashWithAddonInstalledTest$1.invoke(SettingsAddonsTest.kt:133)
at org.mozilla.fenix.ui.SettingsAddonsTest$noCrashWithAddonInstalledTest$1.invoke(SettingsAddonsTest.kt:130)
at org.mozilla.fenix.ui.robots.SettingsSubMenuAddonsManagerRobotKt.addonsMenu(SettingsSubMenuAddonsManagerRobot.kt:292)
at org.mozilla.fenix.ui.SettingsAddonsTest.noCrashWithAddonInstalledTest(SettingsAddonsTest.kt:130)
... 34 trimmed
Caused by: java.lang.RuntimeException: Action will not be performed because the target view does not match one or more of the following constraints:
(view has effective visibility <VISIBLE> and view.getGlobalVisibleRect() covers at least <90> percent of the view's area)
Target view: "AppCompatImageView{id=2131296484, res-name=add_button, desc=Install Add-on, visibility=VISIBLE, width=126, height=126, 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.RelativeLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=938.0, y=86.0}"
at androidx.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:20)
at androidx.test.espresso.ViewInteraction.-$$Nest$mdoPerform(Unknown Source:0)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:7)
at androidx.test.espresso.ViewInteraction$1.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)
Updating the Addon being installed as a temporary workaround and update the addon install helper to dynamically install addon in the list instead of using hard-coded names.
Updated•1 year ago
|
Summary: Fix noCrashWithAddonInstalledTest → Fix test failure SettingsAddonsTest.noCrashWithAddonInstalledTest
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Severity: -- → N/A
Comment 2•1 year ago
|
||
Authored by https://github.com/jjSDET
https://github.com/mozilla-mobile/firefox-android/commit/ffd6bca179e96a598f3ecbd27d36ca303c13a6ed
[main] Bug 1868858 - Fix test failure SettingsAddonsTest.noCrashWithAddonInstalledTest
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox122:
--- → fixed
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Comment 3•1 year ago
|
||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Attachment #9367561 -
Attachment is obsolete: true
Comment 5•1 year ago
|
||
Authored by https://github.com/jjSDET
https://github.com/mozilla-mobile/firefox-android/commit/e60ddbb8f6ece67488a7dcddfc350e562d157f3a
[releases_v121] Bug 1868858 - Fix test failure SettingsAddonsTest.noCrashWithAddonInstalledTest
status-firefox121:
--- → fixed
Updated•1 year ago
|
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•