diff --git a/e2e/tests.ts b/e2e/tests.ts new file mode 100644 index 000000000..23a49d896 --- /dev/null +++ b/e2e/tests.ts @@ -0,0 +1,16 @@ +/** + * Playwright Tests - Auto-discover and execute JSON test definitions + * + * This file loads all JSON test definitions from packages/*/playwright/tests.json + * and registers them as Playwright tests at runtime. + * + * Usage: npm run test:e2e + */ + +import { test } from '@playwright/test' +import { loadAllPackageTests } from './json-runner/playwright-json-runner' +import { resolve } from 'path' + +// Discover and register all JSON tests from packages +const packagesDir = resolve(__dirname, '../packages') +void loadAllPackageTests(packagesDir, test)