From c7022bc913d6377d93afae69bc32aad55b234487 Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Sat, 14 Oct 2023 01:07:09 +0200 Subject: [PATCH 1/5] Added new workflow for the new web package --- .github/workflows/visual-ci-new.yaml | 34 ++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/visual-ci-new.yaml diff --git a/.github/workflows/visual-ci-new.yaml b/.github/workflows/visual-ci-new.yaml new file mode 100644 index 000000000..a09d42583 --- /dev/null +++ b/.github/workflows/visual-ci-new.yaml @@ -0,0 +1,34 @@ +name: Visual Testing Pipeline + +on: + pull_request: + paths-ignore: + - "**.md" + - "**.png" + - "**.drawio" + - "**.xlsx" + +jobs: + setup-and-visual-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Use Node.js 16 + uses: actions/setup-node@v1 + with: + node-version: "16.x" + + - name: Use lerna + run: npm install -g lerna@6.6.2 + + - name: Bootstrap + run: lerna bootstrap --no-ci + + - name: Visual Test + run: | + cd ./packages/web-new + npm install + npm run test \ No newline at end of file From 963db0a4397f10437fc8077dc887fb97914a8380 Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Sat, 14 Oct 2023 01:14:22 +0200 Subject: [PATCH 2/5] Added test script --- packages/web-new/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web-new/package.json b/packages/web-new/package.json index 3a0af097b..bca535160 100644 --- a/packages/web-new/package.json +++ b/packages/web-new/package.json @@ -18,7 +18,8 @@ "build": "node external-scripts/generate-paths.js && webpack --mode production", "dev": "webpack serve --mode development", "serve": "node server/server.js", - "examples": "node external-scripts/generate-paths.js" + "examples": "node external-scripts/generate-paths.js", + "test": "npx playwright test" }, "devDependencies": { "@babel/core": "^7.22.9", From 03177784760a8a1144bf1d4b6d0076698fd31691 Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Sat, 14 Oct 2023 01:19:13 +0200 Subject: [PATCH 3/5] Installing supported browsers --- .github/workflows/visual-ci-new.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/visual-ci-new.yaml b/.github/workflows/visual-ci-new.yaml index a09d42583..aa54c43bb 100644 --- a/.github/workflows/visual-ci-new.yaml +++ b/.github/workflows/visual-ci-new.yaml @@ -27,8 +27,9 @@ jobs: - name: Bootstrap run: lerna bootstrap --no-ci - - name: Visual Test + - name: New Web Visual Test run: | cd ./packages/web-new npm install + npx playwright install npm run test \ No newline at end of file From b0aa4e7a5ca49b70055cb13aff3afd844f24e17d Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Wed, 15 Nov 2023 18:48:13 +0100 Subject: [PATCH 4/5] Fixed conflict with package.json --- packages/web-new/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web-new/package.json b/packages/web-new/package.json index bca535160..53bb4afb0 100644 --- a/packages/web-new/package.json +++ b/packages/web-new/package.json @@ -19,7 +19,8 @@ "dev": "webpack serve --mode development", "serve": "node server/server.js", "examples": "node external-scripts/generate-paths.js", - "test": "npx playwright test" + "test": "npx playwright test --project=chromium --project=firefox", + "test-full": "npx playwright test" }, "devDependencies": { "@babel/core": "^7.22.9", From b12e7ab5106a56d6fe1464995abf38306e937fb1 Mon Sep 17 00:00:00 2001 From: Sergio Eduardo Castro Ceballos <72516762+SergioCasCeb@users.noreply.github.com> Date: Mon, 20 Nov 2023 05:46:55 +0100 Subject: [PATCH 5/5] Updating to the newer version --- .github/workflows/visual-ci-new.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/visual-ci-new.yaml b/.github/workflows/visual-ci-new.yaml index aa54c43bb..625736bf6 100644 --- a/.github/workflows/visual-ci-new.yaml +++ b/.github/workflows/visual-ci-new.yaml @@ -14,10 +14,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js 16 - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: "16.x"