diff --git a/playwright.config.ts b/playwright.config.ts index f7b5859..0779748 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,4 +1,4 @@ -import { defineConfig, devices } from '@playwright/test'; +import { defineConfig, devices } from "@playwright/test"; /** * Cross-browser + mobile viewport matrix for E2E quality gate. @@ -10,16 +10,16 @@ import { defineConfig, devices } from '@playwright/test'; */ // Lightweight spec for cross-browser/viewport validation. -// Only test 07 (landing pages) runs cross-browser — it uses the default { page } +// Only 07-landing-pages runs cross-browser — it uses the default { page } // fixture and does not create wallet contexts, so it works cleanly in all browsers. -const CROSS_BROWSER_SPECS = '07-*.spec.ts'; +const CROSS_BROWSER_SPECS = "07-landing-pages.spec.ts"; // Chromium-specific launch flags (not valid for Firefox/WebKit). -const CHROMIUM_ARGS = ['--disable-dev-shm-usage', '--no-sandbox']; +const CHROMIUM_ARGS = ["--disable-dev-shm-usage", "--no-sandbox"]; export default defineConfig({ - testDir: './tests/e2e', - testMatch: process.env.CI ? '[0-9]*.spec.ts' : '**/*.spec.ts', + testDir: "./tests/e2e", + testMatch: process.env.CI ? "[0-9]*.spec.ts" : "**/*.spec.ts", fullyParallel: false, timeout: 10 * 60 * 1000, expect: { @@ -34,51 +34,51 @@ export default defineConfig({ projects: [ /* ── Desktop browsers ─────────────────────────────────── */ { - name: 'chromium', + name: "chromium", use: { - ...devices['Desktop Chrome'], + ...devices["Desktop Chrome"], viewport: { width: 1280, height: 720 }, screen: { width: 1280, height: 720 }, launchOptions: { args: CHROMIUM_ARGS }, }, }, { - name: 'firefox', + name: "firefox", use: { - ...devices['Desktop Firefox'], + ...devices["Desktop Firefox"], viewport: { width: 1280, height: 720 }, screen: { width: 1280, height: 720 }, }, - dependencies: ['chromium'], + dependencies: ["chromium"], testMatch: CROSS_BROWSER_SPECS, }, { - name: 'webkit', + name: "webkit", use: { - ...devices['Desktop Safari'], + ...devices["Desktop Safari"], viewport: { width: 1280, height: 720 }, screen: { width: 1280, height: 720 }, }, - dependencies: ['chromium'], + dependencies: ["chromium"], testMatch: CROSS_BROWSER_SPECS, }, /* ── Mobile viewports ─────────────────────────────────── */ { - name: 'iphone', + name: "iphone", use: { - ...devices['iPhone 14'], + ...devices["iPhone 14"], }, - dependencies: ['chromium'], + dependencies: ["chromium"], testMatch: CROSS_BROWSER_SPECS, }, { - name: 'android', + name: "android", use: { - ...devices['Pixel 7'], + ...devices["Pixel 7"], launchOptions: { args: CHROMIUM_ARGS }, }, - dependencies: ['chromium'], + dependencies: ["chromium"], testMatch: CROSS_BROWSER_SPECS, }, ],