-
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/adapt existing tests #327
Conversation
Increases timeout to 50s for CI. Added `.performScrollTo` everywhere applicable. Cleared the text fields in EditProfile screen before inputting new values. Added inline comments and docs for clarity.
fix/misc/fix-e2e : Add tests to e2e branch
…c/fix-e2e-handle-push-perm-request # Conflicts: # app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndM1.kt # app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndM2.kt
…-perm-request test/misc/fix-e2e-handle-push-perm-request : Fix end-to-end to handle push notification permission request dialog
- RLS changed for users insertion. - Trouble deleting the account.
- Ensured activity is finished on tear down.
- Draft of e2e sign-up.
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 implementation of the end-to-end tests, they're complete and all pass, good job! LGTM!
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
These tests cleverly and effectively test the user flows.
Important (which includes)
Code Quality
[This includes readability, consistency]
Functionality
- Code is very clean and consistent
Documentation
- Good documentation, using
steps()
improves readability greatly.
Suggestions
- Respond or implement my nitpicks
Steps before PR approved
LGTM
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignUp.kt
Show resolved
Hide resolved
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignUp.kt
Show resolved
Hide resolved
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignUp.kt
Show resolved
Hide resolved
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignUp.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignIn.kt
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Adapt Existing End-to-End tests
Description
This PR introduces the setup and tear down in existing end-to-end authentication and profile tests. It closes issue #322.
Changes
In all
ProfileScreen
s, I don't test for contribution and no review card since we're going to clean up the UI on unimplemented features.Authentication
I separated the sign-in and sign-up tests since they should be independent.
Sign-In
Sign-Up
Tear down: There's no tear down. However, we do delete the account going through theSettingsScreen
and the delete button.Profile
Files
Added
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndProfile.kt
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignIn.kt
app/src/androidTest/java/com/android/periodpals/endtoend/EndToEndSignUp.kt
Dependencies Added
None.
Testing
Conducted end-to-end tests for sign-in, sign-up, and profile edit flows to ensure proper setup and tear down.