Playwright tests for isomorphic SSR
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>
This commit is contained in:
15
tests/playwright/playwright.config.js
Normal file
15
tests/playwright/playwright.config.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// @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' } },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user