Skip to content
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

Create new Playwright tests to validate sign in and registration #297

Open
evadecker opened this issue Dec 18, 2024 · 0 comments
Open

Create new Playwright tests to validate sign in and registration #297

evadecker opened this issue Dec 18, 2024 · 0 comments
Labels
good first issue Good for newcomers testing Unit and e2e tests
Milestone

Comments

@evadecker
Copy link
Member

Create a new test within tests/e2e to test the end-to-end flow for signup, registration, and password reset.

Test cases

Registration

  • Displays an error message displays when fields are invalid; form does not submit
  • Displays a success message when submitting a valid registration
  • Alerts the user if the email address for registration already exists (requires Write unit test for StatusSelect #294)

Password reset

  • Displays an error message if the account is not found
  • Displays the code entry success message and input if the code was sent
  • Allows entering the emailed code and resetting the password (will require mocking)

Sign in

Because we haven't written many Playwright tests for Namesake yet, when tackling this ticket it may be necessary to create additional test helpers or configuration in order to simplify the test writing process. If it seems likely that other Playwright tests will require similar mocks or helpers, consider abstracting them somewhere reusable.

@evadecker evadecker added good first issue Good for newcomers testing Unit and e2e tests labels Dec 18, 2024
@evadecker evadecker added this to the Namesake v1.0 milestone Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers testing Unit and e2e tests
Projects
None yet
Development

No branches or pull requests

1 participant