4 tests verifying server-client rendering parity: 1. SSR renders visible content without JavaScript (headings, islands, logo) 2. JS-rendered content matches SSR structure (same article text) 3. CSSX styling works without JS (violet class, rules in <head>) 4. SPA navigation preserves island state (colour + copyright path) Run: cd tests/playwright && npx playwright test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
329 B
JavaScript
16 lines
329 B
JavaScript
// @ts-check
|
|
const { defineConfig } = require('playwright/test');
|
|
|
|
module.exports = defineConfig({
|
|
testDir: '.',
|
|
timeout: 60000,
|
|
retries: 0,
|
|
use: {
|
|
baseURL: process.env.SX_TEST_URL || 'http://localhost:8013',
|
|
headless: true,
|
|
},
|
|
projects: [
|
|
{ name: 'chromium', use: { browserName: 'chromium' } },
|
|
],
|
|
});
|