mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-15 23:07:44 +02:00
31 lines
1,018 B
TypeScript
31 lines
1,018 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
// Tailwind's esm-cache loader guard lives in the shared harness
|
|
// (@alchemy.run/cloudflare-test-tools/e2e Playwright.ts imports TailwindNodeCompat.ts),
|
|
// which every worker process loads before vite touches tailwind.
|
|
|
|
export default defineConfig({
|
|
tsconfig: "../tsconfig.playwright.json",
|
|
testDir: "./test",
|
|
// Windows CI runs every fixture e2e concurrently; absorb runner flakiness.
|
|
retries: process.env.CI ? 2 : 0,
|
|
// A systemic failure (runner capacity, broken build) otherwise burns
|
|
// retries x timeout on every remaining spec — fail the suite fast.
|
|
maxFailures: process.env.CI ? 5 : 0,
|
|
timeout: 60_000,
|
|
expect: {
|
|
timeout: 10_000,
|
|
},
|
|
snapshotPathTemplate: "{testDir}/__snapshots__/{testFileName}/{arg}{ext}",
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: {
|
|
browserName: "chromium",
|
|
colorScheme: "light",
|
|
deviceScaleFactor: 1,
|
|
viewport: { width: 1280, height: 720 },
|
|
},
|
|
},
|
|
],
|
|
});
|