Closed Bug 1928136 Opened 1 year ago Closed 1 year ago

Perma [Tier 2] org.mozilla.fenix.ui.DownloadTest#saveAsPdfFunctionalityTest | androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: Wanted to match 1 intents. Actually matched 2 intents.

Categories

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

All
Android
defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox132 --- unaffected
firefox133 --- unaffected
firefox134 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: ajoltan)

References

(Regression)

Details

(Keywords: intermittent-failure, regression, Whiteboard: [fxdroid][group4])

Attachments

(1 file)

Filed by: smolnar [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=480448593&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/KiEEHejJS0SzXuyk4Z2vBg/runs/0/artifacts/public/logs/live_backing.log


 at org.mozilla.fenix.ui.DownloadTest.saveAsPdfFunctionalityTest(DownloadTest.kt:354)
[task 2024-10-30T16:50:57.445Z]  ... 56 trimmed
[task 2024-10-30T16:50:57.445Z] Caused by: junit.framework.AssertionFailedError: Wanted to match 1 intents. Actually matched 2 intents.
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z] IntentMatcher: (has action: is "android.intent.action.VIEW" and has type: is "application/pdf")
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z] Matched intents:
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x10000001 pkg=org.mozilla.fenix.debug } handling packages:[[org.mozilla.fenix.debug]])
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x1 pkg=org.mozilla.fenix.debug cmp=org.mozilla.fenix.debug/org.mozilla.fenix.HomeActivity (has extras) } handling packages:[[org.mozilla.fenix.debug]], extras:[Bundle[{activity_referrer_package=org.mozilla.fenix.debug, activity_referrer_category=-1, open_to_browser=true, private_browsing_mode=false}]])
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z] Recorded intents:
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x10000001 pkg=org.mozilla.fenix.debug } handling packages:[[org.mozilla.fenix.debug]])
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x1 pkg=org.mozilla.fenix.debug cmp=org.mozilla.fenix.debug/org.mozilla.fenix.HomeActivity (has extras) } handling packages:[[org.mozilla.fenix.debug]], extras:[Bundle[{activity_referrer_package=org.mozilla.fenix.debug, activity_referrer_category=-1, open_to_browser=true, private_browsing_mode=false}]])
[task 2024-10-30T16:50:57.445Z]  at junit.framework.Assert.fail(Assert.java:50)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.intent.VerificationModes$Times.verify(VerificationModes.java:80)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.intent.Intents.internalIntended(Intents.java:341)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.intent.Intents$2.check(Intents.java:190)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:488)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:346)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:319)
[task 2024-10-30T16:50:57.445Z]  at java.util.concurrent.FutureTask.run(FutureTask.java:264)
[task 2024-10-30T16:50:57.445Z]  at android.os.Handler.handleCallback(Handler.java:958)
[task 2024-10-30T16:50:57.445Z]  at android.os.Handler.dispatchMessage(Handler.java:99)
[task 2024-10-30T16:50:57.445Z]  at android.os.Looper.loopOnce(Looper.java:205)
[task 2024-10-30T16:50:57.445Z]  at android.os.Looper.loop(Looper.java:294)
[task 2024-10-30T16:50:57.445Z]  at android.app.ActivityThread.main(ActivityThread.java:8177)
[task 2024-10-30T16:50:57.445Z]  at java.lang.reflect.Method.invoke(Native Method)
[task 2024-10-30T16:50:57.445Z]  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
[task 2024-10-30T16:50:57.445Z]  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z]     
[task 2024-10-30T16:50:57.445Z] TEST-UNEXPECTED-FAIL | org.mozilla.fenix.ui.PDFViewerTest#verifyPDFViewerDownloadButtonTest | androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: Wanted to match 1 intents. Actually matched 2 intents.
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z] IntentMatcher: (has action: is "android.intent.action.VIEW" and has type: is "application/pdf")
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z] Matched intents:
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x10000001 pkg=org.mozilla.fenix.debug } handling packages:[[org.mozilla.fenix.debug]])
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x1 pkg=org.mozilla.fenix.debug cmp=org.mozilla.fenix.debug/org.mozilla.fenix.HomeActivity (has extras) } handling packages:[[org.mozilla.fenix.debug]], extras:[Bundle[{activity_referrer_package=org.mozilla.fenix.debug, activity_referrer_category=-1, open_to_browser=true, private_browsing_mode=false}]])
[task 2024-10-30T16:50:57.445Z] 
[task 2024-10-30T16:50:57.445Z] Recorded intents:
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x10000001 pkg=org.mozilla.fenix.debug } handling packages:[[org.mozilla.fenix.debug]])
[task 2024-10-30T16:50:57.445Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x1 pkg=org.mozilla.fenix.debug cmp=org.mozilla.fenix.debug/org.mozilla.fenix.HomeActivity (has extras) } handling packages:[[org.mozilla.fenix.debug]], extras:[Bundle[{activity_referrer_package=org.mozilla.fenix.debug, activity_referrer_category=-1, open_to_browser=true, private_browsing_mode=false}]])
[task 2024-10-30T16:50:57.445Z]  at dalvik.system.VMStack.getThreadStackTrace(Native Method)
[task 2024-10-30T16:50:57.445Z]  at java.lang.Thread.getStackTrace(Thread.java:1841)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:35)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:26)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.base.DefaultFailureHandler$TypedFailureHandler.handle(DefaultFailureHandler.java:158)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:120)
[task 2024-10-30T16:50:57.445Z]  at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:387)
[task 2024-10-30T16:50:57.446Z]  at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:366)
[task 2024-10-30T16:50:57.446Z]  at androidx.test.espresso.intent.Intents.intended(Intents.java:186)
[task 2024-10-30T16:50:57.446Z]  at androidx.test.espresso.intent.Intents.intended(Intents.java:164)
[task 2024-10-30T16:50:57.446Z]  at org.mozilla.fenix.ui.robots.DownloadRobot$Transition.clickOpen(DownloadRobot.kt:230)
[task 2024-10-30T16:50:57.446Z]  at org.mozilla.fenix.ui.PDFViewerTest.verifyPDFViewerDownloadButtonTest(PDFViewerTest.kt:60)
[task 2024-10-30T16:50:57.446Z]  ... 35 trimmed
[task 2024-10-30T16:50:57.446Z] Caused by: junit.framework.AssertionFailedError: Wanted to match 1 intents. Actually matched 2 intents.
IntentMatcher: (has action: is "android.intent.action.VIEW" and has type: is "application/pdf")
[task 2024-10-30T16:50:57.446Z] 
[task 2024-10-30T16:50:57.446Z] Matched intents:
[task 2024-10-30T16:50:57.446Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x10000001 pkg=org.mozilla.fenix.debug } handling packages:[[org.mozilla.fenix.debug]])
[task 2024-10-30T16:50:57.485Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x1 pkg=org.mozilla.fenix.debug cmp=org.mozilla.fenix.debug/org.mozilla.fenix.HomeActivity (has extras) } handling packages:[[org.mozilla.fenix.debug]], extras:[Bundle[{activity_referrer_package=org.mozilla.fenix.debug, activity_referrer_category=-1, open_to_browser=true, private_browsing_mode=false}]])
[task 2024-10-30T16:50:57.485Z] 
[task 2024-10-30T16:50:57.485Z] Recorded intents:
[task 2024-10-30T16:50:57.485Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x10000001 pkg=org.mozilla.fenix.debug } handling packages:[[org.mozilla.fenix.debug]])
[task 2024-10-30T16:50:57.486Z] -Intent { act=android.intent.action.VIEW dat=content://media/... typ=application/pdf flg=0x1 pkg=org.mozilla.fenix.debug cmp=org.mozilla.fenix.debug/org.mozilla.fenix.HomeActivity (has extras) } handling packages:[[org.mozilla.fenix.debug]], extras:[Bundle[{activity_referrer_package=org.mozilla.fenix.debug, activity_referrer_category=-1, open_to_browser=true, private_browsing_mode=false}]])
[task 2024-10-30T16:50:57.486Z]  at junit.framework.Assert.fail(Assert.java:50)
[task 2024-10-30T16:50:57.486Z]  at androidx.test.espresso.intent.VerificationModes$Times.verify(VerificationModes.java:80)
[task 2024-10-30T16:50:57.486Z]  at androidx.test.espresso.intent.Intents.internalIntended(Intents.java:341)
[task 2024-10-30T16:50:57.486Z]  at androidx.test.espresso.intent.Intents$2.check(Intents.java:190)
[task 2024-10-30T16:50:57.486Z]  at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:488)
[task 2024-10-30T16:50:57.486Z]  at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:346)
[task 2024-10-30T16:50:57.486Z]  at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:319)
[task 2024-10-30T16:50:57.486Z]  at java.util.concurrent.FutureTask.run(FutureTask.java:264)
[task 2024-10-30T16:50:57.486Z]  at android.os.Handler.handleCallback(Handler.java:958)
[task 2024-10-30T16:50:57.486Z]  at android.os.Handler.dispatchMessage(Handler.java:99)
[task 2024-10-30T16:50:57.486Z]  at android.os.Looper.loopOnce(Looper.java:205)
[task 2024-10-30T16:50:57.486Z]  at android.os.Looper.loop(Looper.java:294)
[task 2024-10-30T16:50:57.486Z]  at android.app.ActivityThread.main(ActivityThread.java:8177)
[task 2024-10-30T16:50:57.486Z]  at java.lang.reflect.Method.invoke(Native Method)
[task 2024-10-30T16:50:57.486Z]  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
[task 2024-10-30T16:50:57.486Z]  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
[task 2024-10-30T16:50:57.486Z] 
[task 2024-10-30T16:50:57.486Z]     
[task 2024-10-30T16:50:57.486Z] TEST-UNEXPECTED-FAIL | org.mozilla.fenix.ui.RedesignedNavigationToolbarSmokeTest#saveAsPdfFunctionalityTest | java.lang.SecurityException: UID 10203 does not have permission to content://media/external_primary/downloads/1000000018 [user 0]
[task 2024-10-30T16:50:57.486Z]  at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
[task 2024-10-30T16:50:57.486Z]  at android.os.Parcel.createException(Parcel.java:3041)
<...>

The Bugbug bot thinks this bug should belong to the 'Fenix::UI Tests' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → UI Tests

:npoon, since you are the author of the regressor, bug 1920092, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(npoon)
Assignee: nobody → npoon
Status: NEW → ASSIGNED
Flags: needinfo?(npoon)
Whiteboard: [fxdroid][group4]

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

Assignee: npoon → ajoltan
Attachment #9434522 - Attachment description: WIP: Bug 1928136 - Fix disabled PDF download related UI tests → Bug 1928136 - Fix disabled PDF download related UI tests
Pushed by ajoltan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d853ba6e87e Fix disabled PDF download related UI tests r=ohorvath
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: