fix: separated e2e tests in mode of local testing and CI testing

This commit is contained in:
Stepan Vladovskiy 2024-07-03 23:46:46 +00:00
parent b36983b583
commit f7294c96d1
2 changed files with 2 additions and 1 deletions

View File

@ -41,5 +41,5 @@ jobs:
# run: npm run e2e:tests # run: npm run e2e:tests
- name: Run e2e tests - name: Run e2e tests
run: npm run e2e:tests -- --baseUrl http://localhost:8080 run: npm run e2e:tests:ci
# Ensure your e2e tests can accept a baseUrl parameter # Ensure your e2e tests can accept a baseUrl parameter

View File

@ -10,6 +10,7 @@
"start": "vinxi start", "start": "vinxi start",
"codegen": "graphql-codegen", "codegen": "graphql-codegen",
"e2e:tests": "npx playwright test --project=webkit", "e2e:tests": "npx playwright test --project=webkit",
"e2e:tests:ci": "BASE_URL=http://staging.example.com npx playwright test --project=webkit",
"e2e:install": "npx playwright install webkit && npx playwright install-deps ", "e2e:install": "npx playwright install webkit && npx playwright install-deps ",
"fix": "npx @biomejs/biome check . --fix && stylelint **/*.{scss,css} --fix", "fix": "npx @biomejs/biome check . --fix && stylelint **/*.{scss,css} --fix",
"format": "npx @biomejs/biome format src/. --write", "format": "npx @biomejs/biome format src/. --write",