Skip to content

Conversation

@sdsantos
Copy link
Contributor

@sdsantos sdsantos commented Feb 10, 2025

Generate screenshots for Test Results

Closes #449

image

Screenshot 2025-02-11 at 12 12 11

@sdsantos sdsantos requested a review from aanorbel February 10, 2025 17:01

clickOnText("Websites")

wait(10.seconds) { onNodeWithText("https://z-lib.org/").isDisplayed() }
Copy link
Member

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()

Copy link
Contributor Author

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.

Copy link
Member

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.

@sdsantos sdsantos requested a review from aanorbel February 11, 2025 12:25
Copy link
Member

@aanorbel aanorbel left a 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

Comment on lines -9 to -18
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing imports.

Copy link
Member

@aanorbel aanorbel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sdsantos sdsantos merged commit 73099ab into main Feb 12, 2025
3 checks passed
@sdsantos sdsantos deleted the results-screenshots branch February 12, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Capture screenshots with Results

3 participants