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:
giancarlo
2024-04-15 13:16:04 +08:00
parent 63c818cc88
commit bb19d6d207
4 changed files with 17 additions and 51 deletions

View File

@@ -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