From 97e55190eb43880022d8d9e87530b728379a3ffc Mon Sep 17 00:00:00 2001 From: ItsANameToo <35610748+ItsANameToo@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:58:48 +0200 Subject: [PATCH] fix: e2e tests port usage (#767) --- .github/workflows/e2e.yml | 14 +++++++------- package.json | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c9c07a50f8..72f534bfd8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -122,7 +122,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-transaction: - needs: build-and-upload + needs: e2e-vote runs-on: ubuntu-latest @@ -188,7 +188,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-contact: - needs: build-and-upload + needs: e2e-transaction runs-on: ubuntu-latest @@ -254,7 +254,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-dashboard: - needs: build-and-upload + needs: e2e-contact runs-on: ubuntu-latest @@ -320,7 +320,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-profile: - needs: build-and-upload + needs: e2e-dashboard runs-on: ubuntu-latest @@ -386,7 +386,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-message: - needs: build-and-upload + needs: e2e-profile runs-on: ubuntu-latest @@ -452,7 +452,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-wallet: - needs: build-and-upload + needs: e2e-message runs-on: ubuntu-latest @@ -518,7 +518,7 @@ jobs: path: ${{ github.workspace }}/screenshots/**/* e2e-settings: - needs: build-and-upload + needs: e2e-wallet runs-on: ubuntu-latest diff --git a/package.json b/package.json index e5b51b10fd..18f7c82368 100644 --- a/package.json +++ b/package.json @@ -31,14 +31,14 @@ "lint": "eslint '*/**/*.{js,ts,tsx}' --quiet --fix", "prettier": "prettier --write \"./*.{ts,tsx,js,json,md}\" \"./**/*.{ts,tsx,js,json,md}\"", "qa": "pnpm install && pnpm build && pnpm serve", - "serve": "vite preview --port 5000 --host=0.0.0.0", - "serve:https": "vite preview --port 5000 --https", + "serve": "vite preview --port 5001 --host=0.0.0.0", + "serve:https": "vite preview --port 5001 --https", "test": "LC_ALL=en_US.UTF-8 vitest --update", "test:coverage": "LC_ALL=en_US.UTF-8 vitest run --coverage", - "test:e2e": "E2E_HOST='http://localhost:5000' gherkin-testcafe chrome --config-file=.testcaferc.json", - "test:e2e:ci": "E2E_HOST='http://localhost:5000' gherkin-testcafe --config-file=.testcaferc.json chrome:headless -q attemptLimit=3,successThreshold=1", - "test:e2e:ci:firefox": "E2E_HOST='http://localhost:5000' gherkin-testcafe --config-file=.testcaferc.json firefox:headless -q attemptLimit=3,successThreshold=1", - "test:e2e:ci:edge": "E2E_HOST='http://localhost:5000' gherkin-testcafe --config-file=.testcaferc.json edge:headless -q attemptLimit=3,successThreshold=1", + "test:e2e": "E2E_HOST='http://localhost:5001' gherkin-testcafe chrome --config-file=.testcaferc.json", + "test:e2e:ci": "E2E_HOST='http://localhost:5001' gherkin-testcafe --config-file=.testcaferc.json chrome:headless -q attemptLimit=3,successThreshold=1", + "test:e2e:ci:firefox": "E2E_HOST='http://localhost:5001' gherkin-testcafe --config-file=.testcaferc.json firefox:headless -q attemptLimit=3,successThreshold=1", + "test:e2e:ci:edge": "E2E_HOST='http://localhost:5001' gherkin-testcafe --config-file=.testcaferc.json edge:headless -q attemptLimit=3,successThreshold=1", "sdk:install-local": "node scripts/install-local-sdk.js", "sdk:check-updates": "npx npm-check-updates \"/^@ardenthq.*$/\" -u" },