Skip to content

feat: add E2E tests for AuthProvider using Playwright#270

Merged
IzumiSy merged 5 commits into
mainfrom
feat/e2e-auth-provider-tests
May 19, 2026
Merged

feat: add E2E tests for AuthProvider using Playwright#270
IzumiSy merged 5 commits into
mainfrom
feat/e2e-auth-provider-tests

Conversation

@IzumiSy
Copy link
Copy Markdown
Contributor

@IzumiSy IzumiSy commented May 18, 2026

Summary

Add Playwright-based E2E tests that verify the AuthProvider OAuth authentication flow against a real Tailor Platform workspace.

Changes

  • e2e/ — new directory at monorepo root with:
    • app/ — Minimal Vite app using AuthProvider + guardComponent
    • backend/ — Tailor Platform config (tailor.config.ts) for E2E workspace (auth, IDP, user type)
    • tests/auth.spec.ts — Playwright test cases
    • playwright.config.ts — Playwright configuration
    • README.md — Setup instructions (deploy, user creation, env config, tailor-sdk commands)
  • pnpm-workspace.yaml — added e2e workspace

Test Scenarios

Test Description
Auth guard display Verifies unauthenticated users see the login UI
Login flow Full OAuth redirect → IDP login → callback → authenticated state
Logout Verifies logout returns to auth guard
Session persistence Confirms page reload maintains authentication

Setup

See e2e/README.md for full instructions. Requires:

  1. Deploy backend to a Tailor Platform workspace
  2. Create IDP user + TailorDB user profile
  3. Configure .env with app URL, client ID, and test credentials

IzumiSy added 5 commits May 18, 2026 17:37
- Add e2e/ directory with Playwright test infrastructure
- Minimal Vite app exercising AuthProvider + guardComponent
- Backend config (tailor.config.ts) for Tailor Platform E2E workspace
- Test cases: auth guard display, login flow, logout, session persistence
- README with setup instructions (deploy, user creation, env config)
@IzumiSy IzumiSy requested a review from erickteowarang May 18, 2026 09:02
Copy link
Copy Markdown
Contributor

@erickteowarang erickteowarang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'll update this when my other PR is merged

@IzumiSy IzumiSy merged commit 70fb128 into main May 19, 2026
2 checks passed
@IzumiSy IzumiSy deleted the feat/e2e-auth-provider-tests branch May 19, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants