Connect, collaborate, and grow with a community of TypeScript developers
1369 mdwiltfong a11y reporting (#1375)
Michael Wiltfonge55ccf3fc920
diff --git a/LOCAL.md b/LOCAL.mdindex e29f84c8..df5502ed 100644--- a/LOCAL.md+++ b/LOCAL.md@@ -178,6 +178,12 @@ Terminal 2:pnpm test:e2e```+### Running Tests in UI Mode++In the event you need to troubleshoot the end-to-end tests, you can run Playwright in [UI mode](https://playwright.dev/docs/test-ui-mode). You can do this by running `pnpm test:e2e:ui`. This will spin up a playwright server on localhost:8080, which will provide a playwright app that you can use to view a series of snapshots.++In addition you can use [Playwright Inspector](https://playwright.dev/docs/debug#playwright-inspector) to debug tests, which is a debugger that Playwright maintains. It automatically stops at each test suite, as well as each test case within them. As a result, you can debug a specific test suite by running `pnpm test:e2e:inspector -- {testName}`+## FAQ<details>diff --git a/apps/web/package.json b/apps/web/package.jsonindex 457462c2..b68f4dd8 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -14,6 +14,7 @@"start": "dotenv -e ../../.env next start","test:e2e": "playwright test","test:e2e:ui": "playwright test --ui --ui-port=8080",+ "test:e2e:inspector": "playwright test $1 --debug","typecheck": "tsc --noEmit"},"dependencies": {diff --git a/apps/web/playwright.config.ts b/apps/web/playwright.config.tsindex 2976e639..d287ab7c 100644--- a/apps/web/playwright.config.ts+++ b/apps/web/playwright.config.ts@@ -16,6 +16,8 @@ export default defineConfig({trace: process.env.CI ? 'on-first-retry' : 'retain-on-failure',},projects: [+ { name: 'authenticated', testMatch: /.*\.authenticated\.ts/ },+ { name: 'unauthenticated', testMatch: /.*\.unauthenticated\.ts/ },{ name: 'setup', testMatch: /.*\.setup\.ts/ },{name: 'chromium',diff --git a/package.json b/package.jsonindex 2f8a5dab..cee54295 100644--- a/package.json+++ b/package.json@@ -26,6 +26,8 @@"refresh": "turbo db:reset db:seed --concurrency=1","test:e2e": "turbo test:e2e","test:e2e:install": "playwright install",+ "test:e2e:ui": "turbo test:e2e:ui",+ "test:e2e:inspector": "turbo test:e2e:inspector","tunnel": "cloudflared tunnel --url http://localhost:3000","typecheck": "turbo typecheck --continue"},diff --git a/turbo.json b/turbo.jsonindex 1fe92023..b2da379a 100644--- a/turbo.json+++ b/turbo.json@@ -90,6 +90,12 @@},"test:e2e": {"outputs": ["playwright-report/**"]+ },+ "test:e2e:ui": {+ "outputs": ["playwright-report/**"]+ },+ "test:e2e:inspector": {+ "outputs": ["playwright-report/**"]}}}