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

[TBCCT-69] e2e auth #31

Merged
merged 8 commits into from
Oct 10, 2024
Merged

[TBCCT-69] e2e auth #31

merged 8 commits into from
Oct 10, 2024

Conversation

agnlez
Copy link
Member

@agnlez agnlez commented Oct 8, 2024

This pull request introduces a comprehensive setup for end-to-end (e2e) testing using Playwright, along with various configuration and dependency updates. The changes include creating a new workflow for e2e tests, adding necessary configurations, and updating dependencies in several package files.

End-to-End Testing Setup:

  • .github/workflows/e2e-tests.yml: Added a new GitHub Actions workflow for running e2e tests on specific paths and conditions. This includes setting up services, caching dependencies, and running tests.
  • e2e/package.json: Created a new package.json for the e2e tests with dependencies like @playwright/test and scripts for running tests.
  • e2e/playwright.config.ts: Added Playwright configuration file to set up the local dev server, test directory, and browser settings.
  • e2e/tests/auth/auth.spec.ts: Added an e2e test for user authentication to verify the sign-in functionality.
  • e2e/tsconfig.json: Added a TypeScript configuration file for the e2e tests.

Configuration and Dependency Updates:

  • client/.env.test: Added environment variables for testing, including NEXTAUTH_URL and NEXT_PUBLIC_API_URL.
  • client/package.json: Updated dependencies and removed an incorrect entry for zod. [1] [2]
  • pnpm-lock.yaml: Updated to include new dependencies and configurations for e2e testing, including @playwright/test, typescript, and zod. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]

Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 9:55am

@alexeh alexeh force-pushed the TBCCT-69-fe-e-2-e-auth branch from 0017371 to 74d67e2 Compare October 10, 2024 09:54
@alexeh alexeh merged commit 85d1e21 into dev Oct 10, 2024
4 checks passed
@alexeh alexeh deleted the TBCCT-69-fe-e-2-e-auth branch October 10, 2024 10:00
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