Files
the-nexus/tests/playwright.config.js
Timmy Time b64699d625
Some checks failed
Deploy Nexus / deploy (push) Failing after 5s
feat: headless smoke tests for Nexus — zero LLM, pure Playwright (#504)
2026-03-25 13:24:20 +00:00

31 lines
681 B
JavaScript

// @ts-check
const { defineConfig } = require('@playwright/test');
module.exports = defineConfig({
testDir: '.',
timeout: 30000,
retries: 1,
use: {
headless: true,
viewport: { width: 1280, height: 720 },
// WebGL needs a real GPU context — use chromium with GPU
launchOptions: {
args: [
'--use-gl=angle',
'--use-angle=swiftshader', // Software WebGL for CI
'--enable-webgl',
],
},
},
projects: [
{ name: 'chromium', use: { browserName: 'chromium' } },
],
// Local server
webServer: {
command: 'python3 -m http.server 8888',
port: 8888,
cwd: '..',
reuseExistingServer: true,
},
});