From 822daa6c7eb7bf7a7e7c447ee1e30825d592b8c1 Mon Sep 17 00:00:00 2001 From: Krupa Pammi Date: Fri, 6 Oct 2023 13:42:34 +0100 Subject: [PATCH] test: rename PW script name so it's unaffected with jest tests --- .github/workflows/main.yml | 2 +- .gitignore | 2 +- package.json | 6 +- playwright-report/index.html | 62 +++++++++++++++++++ .../components/atoms/checkbox.spec.js | 0 5 files changed, 67 insertions(+), 5 deletions(-) create mode 100644 playwright-report/index.html rename {playwright => playwright-tests}/components/atoms/checkbox.spec.js (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 88aee5c25..54ee5b85e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -156,7 +156,7 @@ jobs: run: yarn playwright install --with-deps chromium - name: Run end-to-end tests - run: yarn test:e2e:ci + run: yarn test:playwright:ci continue-on-error: false env: NODE_OPTIONS: --max_old_space_size=4096 diff --git a/.gitignore b/.gitignore index d895a9ac5..3b162cd0e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,4 @@ yarn-error.log* /tests_output /test-results/ /playwright-report/ -/playwright/.cache/ +/playwright-tests/.cache/ diff --git a/package.json b/package.json index 449e4b387..2743d9d46 100644 --- a/package.json +++ b/package.json @@ -56,9 +56,9 @@ "styleguide:build": "styleguidist build", "postinstall": "yarn run build", "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js", - "test:e2e": "playwright test --project=chromium", - "test:e2e:ci": "NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e", - "test:e2e:local": "export NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e", + "test:playwright": "playwright-tests test --project=chromium", + "test:playwright:ci": "NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e", + "test:playwright:local": "export NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e", "cy:run": "export NODE_ENV=development; cypress run --headless --browser chrome", "cy:open": "export NODE_ENV=development; cypress open", "feature-test": "run-p --race styleguide cy:run", diff --git a/playwright-report/index.html b/playwright-report/index.html new file mode 100644 index 000000000..1114c1222 --- /dev/null +++ b/playwright-report/index.html @@ -0,0 +1,62 @@ + + + + + + + + + Playwright Test Report + + + + +
+ + + + \ No newline at end of file diff --git a/playwright/components/atoms/checkbox.spec.js b/playwright-tests/components/atoms/checkbox.spec.js similarity index 100% rename from playwright/components/atoms/checkbox.spec.js rename to playwright-tests/components/atoms/checkbox.spec.js