compass
compass copied to clipboard
Google OAuth: failure mode
Overview
Write Playwright e2e tests to simulate Google OAuth failures, such as the user not granting required permissions or cancelling the flow.
Implementation Details
- Use Playwright to automate scenarios where required permissions are not granted.
- Test cases:
- User does not check all required permission boxes.
- User cancels Google OAuth window.
- App handles errors and displays relevant messages.
- Use Playwright locators (docs), avoid
data-testidattributes. - Consider mocking or intercepting the OAuth flow for failure states if needed.
Acceptance Criteria
- [ ] Playwright tests for Google OAuth failure scenarios
- [ ] Proper error handling and messaging validated
- [ ] Documentation for running these tests
References
- Parent: #958
- Playwright Docs: Locators