diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 3c134457d..370affa1b 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -255,10 +255,12 @@ jobs: - name: Install Playwright (browsers + deps) if: steps.playwright-cache.outputs.cache-hit != 'true' run: npx playwright install --with-deps chromium + timeout-minutes: 5 - name: Install Playwright (deps only) if: steps.playwright-cache.outputs.cache-hit == 'true' run: npx playwright install-deps chromium + timeout-minutes: 5 - name: Run tests run: npx playwright test diff --git a/package-lock.json b/package-lock.json index ab577de2e..c5627ac18 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,7 @@ "@eslint/eslintrc": "^3.3.5", "@eslint/js": "^9.39.4", "@jest/types": "^30.3.0", - "@playwright/test": "^1.59.1", + "@playwright/test": "^1.60.0", "@storybook/vue3": "^10.3.5", "@storybook/vue3-vite": "^10.3.5", "@types/body-parser": "^1.19.6", @@ -2771,13 +2771,13 @@ } }, "node_modules/@playwright/test": { - "version": "1.59.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.59.1.tgz", - "integrity": "sha512-PG6q63nQg5c9rIi4/Z5lR5IVF7yU5MqmKaPOe0HSc0O2cX1fPi96sUQu5j7eo4gKCkB2AnNGoWt7y4/Xx3Kcqg==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0.tgz", + "integrity": "sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright": "1.59.1" + "playwright": "1.60.0" }, "bin": { "playwright": "cli.js" @@ -9386,13 +9386,13 @@ } }, "node_modules/playwright": { - "version": "1.59.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.59.1.tgz", - "integrity": "sha512-C8oWjPR3F81yljW9o5OxcWzfh6avkVwDD2VYdwIGqTkl+OGFISgypqzfu7dOe4QNLL2aqcWBmI3PMtLIK233lw==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0.tgz", + "integrity": "sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA==", "dev": true, "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.59.1" + "playwright-core": "1.60.0" }, "bin": { "playwright": "cli.js" @@ -9405,9 +9405,9 @@ } }, "node_modules/playwright-core": { - "version": "1.59.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.59.1.tgz", - "integrity": "sha512-HBV/RJg81z5BiiZ9yPzIiClYV/QMsDCKUyogwH9p3MCP6IYjUFu/MActgYAvK0oWyV9NlwM3GLBjADyWgydVyg==", + "version": "1.60.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0.tgz", + "integrity": "sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA==", "dev": true, "license": "Apache-2.0", "bin": { diff --git a/package.json b/package.json index 9220cda59..b2a4a839a 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "@eslint/eslintrc": "^3.3.5", "@eslint/js": "^9.39.4", "@jest/types": "^30.3.0", - "@playwright/test": "^1.59.1", + "@playwright/test": "^1.60.0", "@storybook/vue3": "^10.3.5", "@storybook/vue3-vite": "^10.3.5", "@types/body-parser": "^1.19.6", diff --git a/tests/config-loadpoint.spec.ts b/tests/config-loadpoint.spec.ts index d376748a6..a6149cde6 100644 --- a/tests/config-loadpoint.spec.ts +++ b/tests/config-loadpoint.spec.ts @@ -103,6 +103,7 @@ test.describe("charging loadpoint", async () => { await chargerModal.getByLabel("Charge status").selectOption("A"); await chargerModal.getByRole("button", { name: "Save" }).click(); await expectModalHidden(chargerModal); + await expectModalVisible(lpModal); await lpModal.getByRole("button", { name: "Save" }).click(); await expectModalHidden(lpModal);