-
Notifications
You must be signed in to change notification settings - Fork 7
Screenshots for test results #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...droidInstrumentedTest/kotlin/org/ooni/probe/uitesting/screenshots/AutomateScreenshotsTest.kt
Outdated
Show resolved
Hide resolved
...droidInstrumentedTest/kotlin/org/ooni/probe/uitesting/screenshots/AutomateScreenshotsTest.kt
Outdated
Show resolved
Hide resolved
|
|
||
| clickOnText("Websites") | ||
|
|
||
| wait(10.seconds) { onNodeWithText("https://z-lib.org/").isDisplayed() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use a composite statement here and check if multiple UI elements are displayed. This would help avoid the need to do Thread.sleep()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the screenshot that was coming up blank. Only the sleep fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let me run again and check.
aanorbel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still having multiple errors running locally and missing imports
| import ooniprobe.composeapp.generated.resources.Dashboard_Progress_UpdateLink_Label | ||
| import ooniprobe.composeapp.generated.resources.Modal_EnableNotifications_Title | ||
| import ooniprobe.composeapp.generated.resources.OONIRun_Run | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_AutomatedTesting_Title | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_Crash_Title | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_DefaultSettings_Button_Go | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_DefaultSettings_Title | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_PopQuiz_True | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_ThingsToKnow_Button | ||
| import ooniprobe.composeapp.generated.resources.Onboarding_ThingsToKnow_Title |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing imports.
...droidInstrumentedTest/kotlin/org/ooni/probe/uitesting/screenshots/AutomateScreenshotsTest.kt
Outdated
Show resolved
Hide resolved
aanorbel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Generate screenshots for Test Results
Closes #449