diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index c81dc8b5..dc9e5acf 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -21,9 +21,9 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - name: Install Playwright Browsers - run: yarn playwright install --with-deps + run: yarn playwright install - name: Run Playwright tests - run: cd apps/web && yarn playwright test + run: yarn e2e - uses: actions/upload-artifact@v3 if: always() with: diff --git a/apps/web/package.json b/apps/web/package.json index 46990cea..8282ba88 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -15,6 +15,7 @@ "test-storybook": "cross-env FORCE_COLOR=1 test-storybook", "build-storybook": "cross-env FORCE_COLOR=1 storybook build", "test": "cross-env FORCE_COLOR=1 jest --passWithNoTests", + "e2e": "playwright test", "e2e:headless": "playwright test", "e2e:ui": "playwright test --ui", "format": "prettier --write \"**/*.{ts,tsx,md}\"", diff --git a/apps/web/playwright-report/index.html b/apps/web/playwright-report/index.html index f758dd25..8f9a8e3c 100644 --- a/apps/web/playwright-report/index.html +++ b/apps/web/playwright-report/index.html @@ -59,4 +59,4 @@ \ No newline at end of file +window.playwrightReportBase64 = "data:application/zip;base64,UEsDBBQAAAgIAGQDmFdPjMQ69AIAAFYUAAAZAAAAYTMwYTZlYmE2MzEyZjZiODdlYTUuanNvbs2XTXObMBCG/0qGUzvjUH3zcWt7SS+dHnxqxwcZREyNkUeIxpmM/3sFYSaxgrFMcMYnaxB6d9e72od98rK8ED9SL/Y4BpyJJWcYoowtw0Bw6s3a/Z98I8wbYsc320L41VYkvq7MphaV+Y3/PLWrozK3S8AAwxwLBnHASArCLGyO57pohFe8unlez7ytkn9FojuTyUrJTV5vzEYhE65zWXrxU+tUr0NFXpoNPPMSWdQb8y7dz7y0Vt1JwujM42UpdfugcX0x82StE9lFaJS0SBs/uF49bytR1UUXpiVVaa70PG/PIoDwLUS3CM8RjlEQA+pDCn57jYJWj14MmgNi2/1hXezfRCaVuLmTct0EcFoRNY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4jyKUeIwxkyuMkSIno/XxQyJ8p0tn+VGLUP7DRTivZ5ncKEbs4FYivyCTMw/vbrzV1mH3Y7Wmzo7jHn3rtyTEOzFSn/vLeF+PXaOHE4ifQ/BhG/AnUEsBAj8DFAAACAgAZAOYV0+MxDr0AgAAVhQAABkAAAAAAAAAAAAAALSBAAAAAGEzMGE2ZWJhNjMxMmY2Yjg3ZWE1Lmpzb25QSwECPwMUAAAICABkA5hXtms8inoBAACUBAAACwAAAAAAAAAAAAAAtIErAwAAcmVwb3J0Lmpzb25QSwUGAAAAAAIAAgCAAAAAzgQAAAAA"; \ No newline at end of file diff --git a/report-bundle-size.js b/apps/web/report-bundle-size.js similarity index 100% rename from report-bundle-size.js rename to apps/web/report-bundle-size.js diff --git a/apps/web/test-results/example-has-title-chromium/trace.zip b/apps/web/test-results/example-has-title-chromium/trace.zip deleted file mode 100644 index cc1162ff..00000000 Binary files a/apps/web/test-results/example-has-title-chromium/trace.zip and /dev/null differ diff --git a/package.json b/package.json index bcd2265f..d74791c1 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dev": "turbo run dev", "lint": "turbo run lint", "test": "turbo run test", + "e2e": "turbo run e2e", "format": "prettier --write \"**/*.{ts,tsx,md}\"", "commitlint": "commitlint --edit" }, diff --git a/turbo.json b/turbo.json index 74b49034..f88133f4 100644 --- a/turbo.json +++ b/turbo.json @@ -10,7 +10,11 @@ }, "test": { "dependsOn": ["build"], - "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] + "inputs": ["src/**/*.tsx", "**/*.ts", "test/**/*.ts", "test/**/*.tsx"] + }, + "e2e": { + "dependsOn": ["build"], + "inputs": ["src/**/*.tsx", "**/*.ts", "**/*.spec.ts", "test/**/*.tsx"] }, "lint": {}, "dev": {