compass icon indicating copy to clipboard operation
compass copied to clipboard

Google OAuth: failure mode

Open tyler-dane opened this issue 5 months ago • 0 comments

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-testid attributes.
  • 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

tyler-dane avatar Oct 04 '25 21:10 tyler-dane