diff --git a/.github/workflows/TASKLIST_CARBONISATION.yml b/.github/workflows/TASKLIST_CARBONISATION.yml index 56df772f8..722f499d4 100644 --- a/.github/workflows/TASKLIST_CARBONISATION.yml +++ b/.github/workflows/TASKLIST_CARBONISATION.yml @@ -11,7 +11,7 @@ jobs: name: Run visual regression runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.40.1 + image: mcr.microsoft.com/playwright:v1.43.0 options: --user 1001:1000 steps: - name: Checkout form-js @@ -36,7 +36,7 @@ jobs: with: node-version: "20" cache: "yarn" - cache-dependency-path: ./tasklist/client/yarn.lock + cache-dependency-path: ./tasklist/tasklist/client/yarn.lock - name: Install form-js deps run: npm ci working-directory: ./form-js @@ -48,28 +48,28 @@ jobs: working-directory: ./form-js/packages/form-js-viewer - name: Link form-js-viewer run: yarn link "@bpmn-io/form-js-viewer" - working-directory: ./tasklist/client + working-directory: ./tasklist/tasklist/client - name: Create form-js-carbon-styles link run: yarn link working-directory: ./form-js/packages/form-js-carbon-styles - name: Link form-js-carbon-styles run: yarn link "@bpmn-io/form-js-carbon-styles" - working-directory: ./tasklist/client + working-directory: ./tasklist/tasklist/client - name: Install Tasklist deps run: yarn - working-directory: ./tasklist/client + working-directory: ./tasklist/tasklist/client - name: Build Tasklist run: yarn build:visual-regression - working-directory: ./tasklist/client + working-directory: ./tasklist/tasklist/client - name: Start server - working-directory: ./tasklist/client + working-directory: ./tasklist/tasklist/client run: yarn start:visual-regression & - name: Run Playwright tests - working-directory: ./tasklist/client + working-directory: ./tasklist/tasklist/client run: yarn playwright form-js-integration - uses: actions/upload-artifact@ef09cdac3e2d3e60d8ccadda691f4f1cec5035cb if: always() with: name: playwright-report - path: ./tasklist/client/playwright-report/ + path: ./tasklist/tasklist/client/playwright-report/ retention-days: 30 diff --git a/.github/workflows/UPDATE_VISUAL_SNAPSHOTS.yml b/.github/workflows/UPDATE_VISUAL_SNAPSHOTS.yml index 39a5a8431..6597114be 100644 --- a/.github/workflows/UPDATE_VISUAL_SNAPSHOTS.yml +++ b/.github/workflows/UPDATE_VISUAL_SNAPSHOTS.yml @@ -9,28 +9,28 @@ jobs: if: github.event.pull_request.state != 'closed' && (github.event.label.name == 'update-snapshots' || contains( github.event.pull_request.labels.*.name, 'update-snapshots')) runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.40.1 + image: mcr.microsoft.com/playwright:v1.43.0 options: --user 1001:1000 steps: - - name: Check out repository code - uses: actions/checkout@v4 - - name: Setup NPM cache - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "npm" - - name: Install node dependencies - run: npm ci - - name: Build frontend - run: npm run build - - name: Build mock website - run: npm run build:e2e - - name: Start server - run: npm run start:visual-preview - - name: Run Playwright tests - run: npm run test:visual -- --update-snapshots - - name: Commit screenshots - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: "chore: updated snapshots" + - name: Check out repository code + uses: actions/checkout@v4 + - name: Setup NPM cache + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + - name: Install node dependencies + run: npm ci + - name: Build frontend + run: npm run build + - name: Build mock website + run: npm run build:e2e + - name: Start server + run: npm run start:visual-preview + - name: Run Playwright tests + run: npm run test:visual -- --update-snapshots + - name: Commit screenshots + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: updated snapshots" diff --git a/.github/workflows/VISUAL_REGRESSION.yml b/.github/workflows/VISUAL_REGRESSION.yml index 4f3ac489a..4f6d28196 100644 --- a/.github/workflows/VISUAL_REGRESSION.yml +++ b/.github/workflows/VISUAL_REGRESSION.yml @@ -5,7 +5,7 @@ jobs: test: runs-on: ubuntu-latest container: - image: mcr.microsoft.com/playwright:v1.40.1 + image: mcr.microsoft.com/playwright:v1.43.0 options: --user 1001:1000 steps: - name: Check out repository code diff --git a/e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-chromium-linux.png b/e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-chromium-linux.png index 2a1ae0c78..888c7626c 100644 Binary files a/e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-chromium-linux.png and b/e2e/visual/empty-ui.spec.js-snapshots/empty-playground-1-chromium-linux.png differ diff --git a/e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-chromium-linux.png b/e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-chromium-linux.png index 5296b2d99..f690dcec4 100644 Binary files a/e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-chromium-linux.png and b/e2e/visual/groups-ui.spec.js-snapshots/groups-playground-1-chromium-linux.png differ diff --git a/package-lock.json b/package-lock.json index 270c77834..0c05d99b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@bpmn-io/properties-panel": "^3.18.2", "@carbon/react": "^1.42.1", "@carbon/styles": "^1.42.1", - "@playwright/test": "^1.40.1", + "@playwright/test": "^1.43.0", "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^25.0.0", @@ -5647,12 +5647,12 @@ } }, "node_modules/@playwright/test": { - "version": "1.40.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.1.tgz", - "integrity": "sha512-EaaawMTOeEItCRvfmkI9v6rBkF1svM8wjl/YPRrg2N2Wmp+4qJYkWtJsbew1szfKKDm6fPLy4YAanBhIlf9dWw==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.43.0.tgz", + "integrity": "sha512-Ebw0+MCqoYflop7wVKj711ccbNlrwTBCtjY5rlbiY9kHL2bCYxq+qltK6uPsVBGGAOb033H2VO0YobcQVxoW7Q==", "dev": true, "dependencies": { - "playwright": "1.40.1" + "playwright": "1.43.0" }, "bin": { "playwright": "cli.js" @@ -18026,12 +18026,12 @@ } }, "node_modules/playwright": { - "version": "1.40.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.1.tgz", - "integrity": "sha512-2eHI7IioIpQ0bS1Ovg/HszsN/XKNwEG1kbzSDDmADpclKc7CyqkHw7Mg2JCz/bbCxg25QUPcjksoMW7JcIFQmw==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.43.0.tgz", + "integrity": "sha512-SiOKHbVjTSf6wHuGCbqrEyzlm6qvXcv7mENP+OZon1I07brfZLGdfWV0l/efAzVx7TF3Z45ov1gPEkku9q25YQ==", "dev": true, "dependencies": { - "playwright-core": "1.40.1" + "playwright-core": "1.43.0" }, "bin": { "playwright": "cli.js" @@ -18044,9 +18044,9 @@ } }, "node_modules/playwright-core": { - "version": "1.40.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.40.1.tgz", - "integrity": "sha512-+hkOycxPiV534c4HhpfX6yrlawqVUzITRKwHAmYfmsVreltEl6fAZJ3DPfLMOODw0H3s1Itd6MDCWmP1fl/QvQ==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.43.0.tgz", + "integrity": "sha512-iWFjyBUH97+pUFiyTqSLd8cDMMOS0r2ZYz2qEsPjH8/bX++sbIJT35MSwKnp1r/OQBAqC5XO99xFbJ9XClhf4w==", "dev": true, "bin": { "playwright-core": "cli.js" @@ -26126,12 +26126,12 @@ "optional": true }, "@playwright/test": { - "version": "1.40.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.40.1.tgz", - "integrity": "sha512-EaaawMTOeEItCRvfmkI9v6rBkF1svM8wjl/YPRrg2N2Wmp+4qJYkWtJsbew1szfKKDm6fPLy4YAanBhIlf9dWw==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.43.0.tgz", + "integrity": "sha512-Ebw0+MCqoYflop7wVKj711ccbNlrwTBCtjY5rlbiY9kHL2bCYxq+qltK6uPsVBGGAOb033H2VO0YobcQVxoW7Q==", "dev": true, "requires": { - "playwright": "1.40.1" + "playwright": "1.43.0" } }, "@puppeteer/browsers": { @@ -34675,19 +34675,19 @@ } }, "playwright": { - "version": "1.40.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.40.1.tgz", - "integrity": "sha512-2eHI7IioIpQ0bS1Ovg/HszsN/XKNwEG1kbzSDDmADpclKc7CyqkHw7Mg2JCz/bbCxg25QUPcjksoMW7JcIFQmw==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.43.0.tgz", + "integrity": "sha512-SiOKHbVjTSf6wHuGCbqrEyzlm6qvXcv7mENP+OZon1I07brfZLGdfWV0l/efAzVx7TF3Z45ov1gPEkku9q25YQ==", "dev": true, "requires": { "fsevents": "2.3.2", - "playwright-core": "1.40.1" + "playwright-core": "1.43.0" } }, "playwright-core": { - "version": "1.40.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.40.1.tgz", - "integrity": "sha512-+hkOycxPiV534c4HhpfX6yrlawqVUzITRKwHAmYfmsVreltEl6fAZJ3DPfLMOODw0H3s1Itd6MDCWmP1fl/QvQ==", + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.43.0.tgz", + "integrity": "sha512-iWFjyBUH97+pUFiyTqSLd8cDMMOS0r2ZYz2qEsPjH8/bX++sbIJT35MSwKnp1r/OQBAqC5XO99xFbJ9XClhf4w==", "dev": true }, "postcss": { diff --git a/package.json b/package.json index 816c0221d..8121ea235 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "test:visual": "playwright test visual", "build:e2e": "vite build", "start:visual-preview": "vite preview --port 8080 --logLevel silent &", - "start:container": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.40.1 /bin/bash" + "start:container": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.43.0 /bin/bash" }, "repository": { "type": "git", @@ -66,7 +66,7 @@ "@bpmn-io/properties-panel": "^3.18.2", "@carbon/react": "^1.42.1", "@carbon/styles": "^1.42.1", - "@playwright/test": "^1.40.1", + "@playwright/test": "^1.43.0", "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-babel": "^6.0.0", "@rollup/plugin-commonjs": "^25.0.0",