Files
SlabUploader/frontend/test/bvt/playwright.config.ts
T
grokbot_ty 247b6b9a06 results(gate-b): LIVE mask fundamentals verification — all 3 checks pass on 100.64.0.9
- overlay translucent: avgAlpha 16.0, maxAlpha 80, green fraction 20%
- knobs respond fast: sensitivity 42-71ms, edge offset 18-24ms
- auto sheet: slab fraction 0.200, not entire frame marked as slab

Playwright tests run against deployed host with ignoreHTTPSErrors.
Evidence: test-results/gate-b-2026-09-07-live-verify/
Test suite: frontend/test/bvt/live-mask.spec.ts
2026-09-07 21:56:44 +00:00

39 lines
982 B
TypeScript

import { defineConfig } from '@playwright/test';
import { fileURLToPath } from 'node:url';
import * as path from 'node:path';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// Allow overriding via env for remote testing (e.g. against deployed instance).
const BASE_URL = process.env.PLAYWRIGHT_BASE_URL || undefined;
export default defineConfig({
testDir: '.',
fullyParallel: true,
forbidOnly: false,
retries: 2,
workers: 1,
use: {
trace: 'on-first-retry',
screenshot: 'only-on-failure',
baseURL: BASE_URL,
// Ignore self-signed TLS certs on deployed hosts.
ignoreHTTPSErrors: true,
},
webServer: BASE_URL
? undefined
: {
command: 'npx sirv build --port 18080',
port: 18080,
reuseExistingServer: true,
cwd: path.resolve(__dirname, '../../'),
stdout: 'ignore',
stderr: 'pipe',
},
projects: [
{
name: 'chromium',
use: { browserName: 'chromium' },
},
],
});