diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 88aee5c2..54ee5b85 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 d895a9ac..3b162cd0 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 449e4b38..2743d9d4 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 00000000..1114c122 --- /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