Closed Bug 1966762 Opened 3 months ago Closed 3 months ago

Fix verifyReaderModeControlsTest AmbiguousViewMatcherException

Categories

(Firefox for Android :: UI Tests, defect)

All
Android
defect

Tracking

()

RESOLVED DUPLICATE of bug 1966852
Tracking Status
firefox138 --- unaffected
firefox139 --- unaffected
firefox140 --- affected

People

(Reporter: aaronmt, Assigned: aaronmt)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 obsolete file)

androidx.test.espresso.AmbiguousViewMatcherException: 'view.getParent() view.getId() is <2131297257/org.mozilla.fenix.debug:id/mozac_browser_toolbar_page_actions>' matches 2 views in the hierarchy:
- [1] AppCompatImageButton{id=-1, desc=Reader view, 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.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0}
- [2] AppCompatImageButton{id=-1, desc=Share, 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.LinearLayout$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=126.0, y=0.0}

Likely from

private fun readerViewToggle() =
    onView(withParent(withId(R.id.mozac_browser_toolbar_page_actions)))

https://searchfox.org/mozilla-central/source/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/NavigationToolbarRobot.kt#654

Regressed by: 1966670
No longer regressed by: 966670

Set release status flags based on info from the regressing bug 1966670

Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1966852
Resolution: --- → DUPLICATE
Attachment #9488151 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: