Add in Device Level Screenshot Testing for GeckoView Junit Tests
Categories
(GeckoView :: General, enhancement, P1)
Tracking
(firefox110 wontfix, firefox111 wontfix, firefox112 fixed)
People
(Reporter: olivia, Assigned: olivia)
References
Details
(Whiteboard: [android-print][geckoview:m112])
Attachments
(1 file)
Device level screenshots (that would capture the full device screen) could be beneficial when testing with GeckoView junit.
In bug 1804467, I tried adding a test in PrintDelegateTest#printPreviewRendered
to test that the device print dialog opened by taking a screenshot. However, using UIAutomation to takeScreenshot
seemed to cause test harness side-effects that showed up as TextInputDelegateTest
timeouts. (UIAutomation was possibly interfering with the test harness' AccessibilityService
?) Reproducible when running TextInputDelegateTest
after PrintDelegateTest
in the same test harness with UIAutomation access.
Had similar issues trying to take a screenshot using:
- InstrumentationRegistry.getInstrumentation().uiAutomation.takeScreenshot()
- Screenshot.capture()
import androidx.test.runner.screenshot.Screenshot
- UIDevice.takeScreenshot()
import androidx.test.uiautomator.UiDevice
Dependency:androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
Goal of this bug is to find a side-effect free way to take screenshots of the entire device screen for Android junit tests and reenable/reconfigure the screenshot test in PrintDelegateTest
.
Assignee | ||
Comment 1•2 years ago
|
||
This bug is impacting this test, printPreviewRendered, and will also impact other new printing tests that use screenshots for bug 1659818. (Bug will prevent the tests from running on CI.)
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Reducing the number of characters in the TextInputDelegateTest content
large test prevents timeouts from occurring when using UIAutomator.
UIAutomator tests will be reactivated in bug 1659818.
Assignee | ||
Updated•2 years ago
|
Comment 4•2 years ago
|
||
bugherder |
Comment 5•2 years ago
|
||
No need to uplift this test fix to 111.
Updated•1 year ago
|
Description
•