-
Notifications
You must be signed in to change notification settings - Fork 2
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
Test/e2e/timer #362
Test/e2e/timer #362
Conversation
Quality Gate passedIssues Measures |
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.
As always, good job on the end-to-ends! LGTM!
@@ -64,8 +65,7 @@ class EndToEndSignUp : TestCase() { | |||
* logged in and log them out if they are. Create a new account and its profile for the test. | |||
*/ | |||
@Before | |||
fun setUp() { | |||
|
|||
fun setUp() = runBlocking { |
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.
Thanks for the fix!
.performScrollTo() | ||
.assertIsDisplayed() | ||
.performClick() | ||
SystemClock.setCurrentTimeMillis(System.currentTimeMillis() + 6L * HOUR + 30L * MINUTE) |
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.
Good thinking setting the system clock
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.
Summary
Good job on your work. It was not easy to make it work, but you did it
Important
Code Quality
- The code is understandable and the tests are described at every steps.
Testing
- testing is complete. Good job.
Steps before PR approved
- LGTM
Add End-to-End Test for Timer
Description
This PR introduces a comprehensive end-to-end test for the timer functionality in the
PeriodPals
Android application. The test navigates through the sign-up, profile creation, and timer actions to ensure the entire flow works as expected.It closes issue #301.
Changes
New End-to-End Test
EndToEndTimer
class inEndToEndTimer.kt
to test the complete user flow from sign-in to using the timer.composeAndroidTestRule
for setting up the test environment and interacting with UI components.Files
Added
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndTimer.kt
Testing