Files
metabuilder/pastebin/playwright.config.ts
johndoe6345789 73c8e3d4dc feat: Add snippet-pastebin application
Full-featured pastebin application with:
- Next.js frontend with TypeScript
- Express backend with SQLite/PostgreSQL
- Syntax highlighting for 100+ languages
- Code quality validation system
- Comprehensive accessibility (WCAG compliance)
- Docker deployment configuration
- Playwright E2E tests
- Jest unit tests

This provides a standalone web application that can be
integrated as a capability module in the Universal Platform.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 16:54:54 +00:00

42 lines
929 B
TypeScript

import { defineConfig, devices } from "@playwright/test"
export default defineConfig({
// Run both general e2e and MD3 conformance suites
testDir: "./tests",
testMatch: "**/*.spec.ts",
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,
},
})