-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #610 Add a more robust e2e setup with Dockerized Postgres and Clerk integration. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/BHelpful/MomentMeal/issues/610?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
affaacd
commit bdb6e50
Showing
5 changed files
with
279 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { clerkSetup } from "@clerk/testing/playwright"; | ||
import { test as setup } from "@playwright/test"; | ||
|
||
setup("global setup", async ({}) => { | ||
await clerkSetup(); | ||
|
||
if ( | ||
!process.env.E2E_CLERK_USER_USERNAME || | ||
!process.env.E2E_CLERK_USER_PASSWORD | ||
) { | ||
throw new Error( | ||
"Please provide E2E_CLERK_USER_USERNAME and E2E_CLERK_USER_PASSWORD environment variables." | ||
); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters