From f7294c96d12993cafcfd8d34b2a78a187fc8194b Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Wed, 3 Jul 2024 23:46:46 +0000 Subject: [PATCH] fix: separated e2e tests in mode of local testing and CI testing --- .github/workflows/node-ci.yml | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 345698ce..34dfd5d3 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -41,5 +41,5 @@ jobs: # run: npm 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 diff --git a/package.json b/package.json index 7fbda3cc..3819eea1 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "start": "vinxi start", "codegen": "graphql-codegen", "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 ", "fix": "npx @biomejs/biome check . --fix && stylelint **/*.{scss,css} --fix", "format": "npx @biomejs/biome format src/. --write",