Files
snippet-pastebin/playwright.config.ts
johndoe6345789 d3340a848c Add MD3 framework tests and utility functions for component accessibility and interaction
- Implemented tests for various MD3 components including buttons, text fields, dialogs, navigation, menus, progress indicators, and responsive design.
- Created utility functions to interact with MD3 components, check their states, and validate accessibility attributes.
- Added support for keyboard navigation testing and touch target size validation.
- Introduced schema-based component definitions to streamline test implementations.
2026-01-20 14:15:35 +00:00

41 lines
900 B
TypeScript

import { defineConfig, devices } from "@playwright/test"
export default defineConfig({
// Run both general e2e and MD3 conformance suites
testDir: "./tests",
timeout: 60_000,
globalSetup: "./tests/e2e/setup/global-setup.ts",
expect: {
timeout: 10_000,
},
fullyParallel: true,
retries: process.env.CI ? 2 : 0,
use: {
baseURL: "http://127.0.0.1:3002",
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
projects: [
{
name: "chromium-desktop",
use: {
...devices["Desktop Chrome"],
viewport: { width: 1400, height: 900 },
},
},
{
name: "chromium-mobile",
use: {
...devices["Pixel 5"],
},
},
],
webServer: {
command: "npm run dev -- -p 3002 -H 0.0.0.0",
port: 3002,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
})