mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/4094 - Fix screenshots tests on API 21 devices (https://github.com/mozilla-mobile/fenix/pull/4108)" (https://github.com/mozilla-mobile/fenix/pull/4138)
This reverts commit d6850b82e31d414df97cb9462a9716ba43bb64f1.
This commit is contained in:
parent
23928ccf36
commit
ebd2e02a60
@ -14,6 +14,7 @@ import tools.fastlane.screengrab.Screengrab
|
||||
import tools.fastlane.screengrab.locale.LocaleTestRule
|
||||
|
||||
import androidx.test.espresso.Espresso.onView
|
||||
import androidx.test.espresso.action.ViewActions
|
||||
import androidx.test.espresso.action.ViewActions.click
|
||||
import androidx.test.espresso.action.ViewActions.swipeUp
|
||||
import androidx.test.espresso.matcher.ViewMatchers.withId
|
||||
@ -77,20 +78,49 @@ class ThreeDotMenuScreenShotTest : ScreenshotTest() {
|
||||
}.openThreeDotMenu {
|
||||
}
|
||||
settingsButton2()
|
||||
onView(withId(R.id.recycler_view)).perform(swipeUp())
|
||||
Screengrab.screenshot("settings-scroll-to-bottom")
|
||||
SystemClock.sleep(1000)
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
Screengrab.screenshot("settings-scroll")
|
||||
SystemClock.sleep(2000)
|
||||
|
||||
settingsRemoveData()
|
||||
Screengrab.screenshot("settings-delete-browsing-data")
|
||||
device.pressBack()
|
||||
|
||||
SystemClock.sleep(1000)
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
Screengrab.screenshot("settings-scroll")
|
||||
SystemClock.sleep(3000)
|
||||
|
||||
settingsTelemetry()
|
||||
Screengrab.screenshot("settings-telemetry")
|
||||
device.pressBack()
|
||||
}
|
||||
|
||||
@Test
|
||||
fun settingsScrollToBottomTest() {
|
||||
homeScreen {
|
||||
}.openThreeDotMenu {
|
||||
}
|
||||
settingsButton2()
|
||||
SystemClock.sleep(1000)
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
Screengrab.screenshot("settings-scroll2")
|
||||
SystemClock.sleep(1000)
|
||||
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
onView(withId(R.id.switch_widget)).perform(ViewActions.swipeUp())
|
||||
Screengrab.screenshot("settings-scroll3")
|
||||
SystemClock.sleep(1000)
|
||||
|
||||
onView(withId(R.id.recycler_view)).perform(swipeUp())
|
||||
Screengrab.screenshot("settings-scroll4")
|
||||
}
|
||||
|
||||
@Test
|
||||
fun libraryTest() {
|
||||
homeScreen {
|
||||
|
Loading…
Reference in New Issue
Block a user