// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0 // Gate J-auth in a browser (joint contract ยง14): headless Chromium against a production build of // this app signing in with Better Auth on a disposable self-hosted Convex backend (stack.ts). // pnpm run build && pnpm exec playwright test -c e2e/better-auth/playwright.config.ts import { defineConfig } from "@playwright/test" const port = Number(process.env.JAUTH_WEB_PORT ?? 3150) export default defineConfig({ testDir: ".", testMatch: "*.e2e.ts", globalSetup: "./global-setup.ts", workers: 1, fullyParallel: false, timeout: 120_000, expect: { timeout: 20_000 }, reporter: [["list"]], use: { baseURL: `http://localhost:${port}`, browserName: "chromium", headless: true, trace: "retain-on-failure", }, })