For #7887 fix flaky verifyDownloadedFileOnStorageTest UI test ✅ successfully passed 100x. on Firebase
Summary:
For verifying that the downloaded file is actually saved on the device, we used similar code with what we have in AC to handle downloads.
Rarely, the test was flaky, failing to verify that the file is actually saved on the device storage (not sure why the returned download uri was null)
As an alternative, @Mugurell suggested to try using the implementation from this tutorial
I made the changes based on our interest, and it seems to be working properly.
Pull Request checklist
[ ] Tests: This PR includes thorough tests or an explanation of why it does not
[ ] Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
[ ] Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.
QA
[ ] QA Needed
To download an APK when reviewing a PR:
click on Show All Checks,
click Details next to build-focus-debug or build-klar-debug for changes targeting Klar,
click View task in Taskcluster,
click the Artifacts row,
click to download any of the apks listed here which use an appropriate name for each CPU architecture.
For #7887 fix flaky
verifyDownloadedFileOnStorageTest
UI test ✅ successfully passed 100x. on FirebaseSummary: For verifying that the downloaded file is actually saved on the device, we used similar code with what we have in AC to handle downloads.
Rarely, the test was flaky, failing to verify that the file is actually saved on the device storage (not sure why the returned download uri was null)
As an alternative, @Mugurell suggested to try using the implementation from this tutorial
I made the changes based on our interest, and it seems to be working properly.
Pull Request checklist
QA
To download an APK when reviewing a PR:
Show All Checks
,Details
next tobuild-focus-debug
orbuild-klar-debug
for changes targeting Klar,View task in Taskcluster
,Artifacts
row,GitHub Automation
Fixes #7887