You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #608 we need to have a database ready to use for the e2e tests. And integration for that matter, but that's another story.
This means in order to do more real e2e we need to add a dockerized postgres database (preferably using the docker-compose.yml file in the root). Or if what we already have is usable for CI setup have that startup as part of the e2e github action, so it's ready for use when the e2e starts running. We should also add tooling to seed and reset the database as needed in the tests; however for this issue it would be fine to have a simpler setup, just to get started.
import{clerkSetup}from"@clerk/testing/playwright";import{testassetup}from"@playwright/test";setup("global setup",async({})=>{awaitclerkSetup();if(!process.env.E2E_CLERK_USER_USERNAME||!process.env.E2E_CLERK_USER_PASSWORD){thrownewError("Please provide E2E_CLERK_USER_USERNAME and E2E_CLERK_USER_PASSWORD environment variables.");}});
As mentioned in #608 we need to have a database ready to use for the e2e tests. And integration for that matter, but that's another story.
This means in order to do more real e2e we need to add a dockerized postgres database (preferably using the docker-compose.yml file in the root). Or if what we already have is usable for CI setup have that startup as part of the e2e github action, so it's ready for use when the e2e starts running. We should also add tooling to seed and reset the database as needed in the tests; however for this issue it would be fine to have a simpler setup, just to get started.
We also need to setup clerk so we can use it when running the test suite (https://clerk.com/docs/testing/playwright). Here are some example files for how to make use of clerk with playwright (https://github.com/clerk/clerk-playwright-nextjs/tree/main):
https://github.com/clerk/clerk-playwright-nextjs/blob/main/e2e/global.setup.ts
https://github.com/clerk/clerk-playwright-nextjs/blob/main/e2e/app.spec.ts
The text was updated successfully, but these errors were encountered: