Update playwright config and refactor billing error pages
An environment variable has been added to playwright config for running the server command. On billing error pages, an icon was added to the error message, and the duplicate billing error page was refactored to import from the existing page instead of maintaining separate code. Also, changes were made to the workflow to reflect new Playwright server command.
This commit is contained in:
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@@ -54,6 +54,7 @@ jobs:
|
||||
SUPABASE_DB_WEBHOOK_SECRET: ${{ secrets.SUPABASE_DB_WEBHOOK_SECRET }}
|
||||
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}
|
||||
STRIPE_WEBHOOK_SECRET: ${{ secrets.STRIPE_WEBHOOK_SECRET }}
|
||||
PLAYWRIGHT_SERVER_COMMAND: pnpm --filter web start:test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -109,9 +110,6 @@ jobs:
|
||||
- name: Production Build (test env)
|
||||
run: pnpm --filter web build:test
|
||||
|
||||
- name: Run App
|
||||
run: pnpm --filter web start:test &
|
||||
|
||||
- name: Run Playwright tests
|
||||
run: pnpm run test
|
||||
|
||||
|
||||
Reference in New Issue
Block a user