From b08ec80084546349c93a11ab02655b01e69fae3a Mon Sep 17 00:00:00 2001 From: Manuel Zedel Date: Wed, 9 Aug 2023 18:04:55 +0200 Subject: [PATCH] chore(e2e-tests): extended visual mode selection for e2e tests + moved to autodetected config Signed-off-by: Manuel Zedel --- tests/e2e_tests/docker-compose.e2e-tests.yml | 2 +- tests/e2e_tests/package.json | 7 ++++--- tests/e2e_tests/{config.ts => playwright.config.ts} | 0 3 files changed, 5 insertions(+), 4 deletions(-) rename tests/e2e_tests/{config.ts => playwright.config.ts} (100%) diff --git a/tests/e2e_tests/docker-compose.e2e-tests.yml b/tests/e2e_tests/docker-compose.e2e-tests.yml index b1137c0298..64fb1afb48 100644 --- a/tests/e2e_tests/docker-compose.e2e-tests.yml +++ b/tests/e2e_tests/docker-compose.e2e-tests.yml @@ -28,11 +28,11 @@ services: - ${GUI_REPOSITORY}/junit:/e2e/junit - ${GUI_REPOSITORY}/logs:/root/.npm/_logs - ${GUI_REPOSITORY}/screenshots:/e2e/test-results - - ${GUI_REPOSITORY}/tests/e2e_tests/config.ts:/e2e/config.ts - ${GUI_REPOSITORY}/tests/e2e_tests/dockerClient:/e2e/dockerClient - ${GUI_REPOSITORY}/tests/e2e_tests/fixtures:/e2e/fixtures - ${GUI_REPOSITORY}/tests/e2e_tests/integration:/e2e/integration - ${GUI_REPOSITORY}/tests/e2e_tests/package.json:/e2e/package.json + - ${GUI_REPOSITORY}/tests/e2e_tests/playwright.config.ts:/e2e/playwright.config.ts - ${GUI_REPOSITORY}/tests/e2e_tests/utils:/e2e/utils - ${GUI_REPOSITORY}/videos:/e2e/videos diff --git a/tests/e2e_tests/package.json b/tests/e2e_tests/package.json index 698d3dbf59..1e14c16a69 100644 --- a/tests/e2e_tests/package.json +++ b/tests/e2e_tests/package.json @@ -7,9 +7,10 @@ "url": "git+https://github.com/mendersoftware/integration.git" }, "scripts": { - "test": "npx playwright test --workers 1 --config=config.ts", - "test-ci": "mv mender-demo-artifact.mender fixtures/ && npx playwright test --workers 1 --config=config.ts", - "test-visual": "npx playwright test --ui --workers 1 --config=config.ts" + "test": "npx playwright test --workers 1", + "test-ci": "mv mender-demo-artifact.mender fixtures/ && npx playwright test --workers 1", + "test-visual": "PWDEBUG=1 npx playwright test --workers 1", + "test-visual-new": "npx playwright test --ui --workers 1" }, "author": "Northern.tech AS", "license": "Apache-2.0", diff --git a/tests/e2e_tests/config.ts b/tests/e2e_tests/playwright.config.ts similarity index 100% rename from tests/e2e_tests/config.ts rename to tests/e2e_tests/playwright.config.ts