Skip to content

Commit 1e60054

Browse files
committed
chore: update screenshots
1 parent 17eef62 commit 1e60054

File tree

115 files changed

+37
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+37
-6
lines changed

composeApp/src/androidInstrumentedTest/kotlin/org/ooni/probe/screenshots/AutomateScreenshotsTest.kt

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import kotlinx.coroutines.test.runTest
1010
import ooniprobe.composeapp.generated.resources.Common_Back
1111
import ooniprobe.composeapp.generated.resources.Dashboard_Overview_ChooseWebsites
1212
import ooniprobe.composeapp.generated.resources.Dashboard_Progress_UpdateLink_Label
13+
import ooniprobe.composeapp.generated.resources.Dashboard_Running_Running
14+
import ooniprobe.composeapp.generated.resources.Dashboard_Tab_Label
1315
import ooniprobe.composeapp.generated.resources.Modal_EnableNotifications_Title
16+
import ooniprobe.composeapp.generated.resources.Notification_StopTest
1417
import ooniprobe.composeapp.generated.resources.OONIRun_Run
1518
import ooniprobe.composeapp.generated.resources.Onboarding_AutomatedTesting_Title
1619
import ooniprobe.composeapp.generated.resources.Onboarding_Crash_Title
@@ -151,9 +154,6 @@ class AutomateScreenshotsTest {
151154
wait { onNodeWithText(Res.string.Onboarding_DefaultSettings_Title).isDisplayed() }
152155
Screengrab.screenshot("05-default-settings")
153156
clickOnText(Res.string.Onboarding_DefaultSettings_Button_Go)
154-
155-
wait { onNodeWithContentDescription(Res.string.app_name).isDisplayed() }
156-
Screengrab.screenshot("1_" + locale())
157157
}
158158
}
159159

@@ -171,7 +171,36 @@ class AutomateScreenshotsTest {
171171
.isNotDisplayed()
172172
}
173173

174-
Screengrab.screenshot("06-dashboard")
174+
if (onNodeWithText(Res.string.Dashboard_Running_Running).isDisplayed()) {
175+
Screengrab.screenshot("06-dashboard-running")
176+
177+
clickOnText(Res.string.Dashboard_Running_Running)
178+
wait(timeout = 30.seconds) {
179+
onNodeWithText(Res.string.Notification_StopTest)
180+
.isDisplayed()
181+
}
182+
183+
Screengrab.screenshot("06-running-running")
184+
185+
clickOnText(Res.string.Notification_StopTest)
186+
187+
wait(timeout = 30.seconds) {
188+
onNodeWithText(Res.string.Dashboard_Tab_Label)
189+
.isDisplayed()
190+
}
191+
192+
clickOnText(Res.string.Dashboard_Tab_Label)
193+
194+
Thread.sleep(300)
195+
196+
Screengrab.screenshot("1_" + locale())
197+
198+
Screengrab.screenshot("06-dashboard")
199+
} else {
200+
Screengrab.screenshot("1_" + locale())
201+
202+
Screengrab.screenshot("06-dashboard")
203+
}
175204

176205
wait(timeout = 30.seconds) {
177206
onNodeWithText(Res.string.OONIRun_Run)
@@ -284,6 +313,7 @@ class AutomateScreenshotsTest {
284313
wait { onNodeWithText(Res.string.Test_Websites_Fullname).isDisplayed() }
285314

286315
Screengrab.screenshot("17-results")
316+
Thread.sleep(3000)
287317
Screengrab.screenshot("2_" + locale())
288318

289319
clickOnText(Res.string.Test_Websites_Fullname)
@@ -312,6 +342,7 @@ class AutomateScreenshotsTest {
312342
checkTextAnywhereInsideWebView("2160p (4k)")
313343

314344
Screengrab.screenshot("20-dash-measurement")
345+
Thread.sleep(3000)
315346
Screengrab.screenshot("4_" + locale())
316347
}
317348
}

fastlane/Screengrabfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locales(['en-US'])
2-
app_apk_path "composeApp/build/outputs/apk/full/debug/composeApp-full-debug.apk"
2+
app_apk_path "composeApp/build/outputs/apk/full/debug/composeApp-full-universal-debug.apk"
33
tests_apk_path "composeApp/build/outputs/apk/androidTest/full/debug/composeApp-full-debug-androidTest.apk"
4-
reinstall_app false
4+
reinstall_app true
55
exit_on_test_failure false
66
clear_previous_screenshots true # ensures the selected screenshots for the store are not deleted.
77
use_tests_in_packages(['org.ooni.probe.screenshots'])
-1.27 KB
1.88 KB
-246 Bytes
-3.15 KB
-3.17 KB
-468 Bytes
-206 Bytes
-722 Bytes

0 commit comments

Comments
 (0)