feat: complete CHRNX responsive content states

This commit is contained in:
chrnx committed 2026-08-12 08:42:20 -05:00
1 parent 9385c1b9fb
commit 5073178492
60 files changed
+1699 -22

No files matched your search

+5 -3
View File
@@ -2,13 +2,15 @@ import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import test from 'node:test';
test( 'Playwright seeds editorial prerequisites once outside browser workers', async () => {
test( 'Playwright seeds deterministic local fixtures once outside browser workers', async () => {
const config = await readFile( 'playwright.config.mjs', 'utf8' );
const setup = await readFile( 'tests/e2e/global-setup.mjs', 'utf8' );
const seed = await readFile( 'scripts/seed-test-content.php', 'utf8' );
const spec = await readFile( 'tests/e2e/editorial-editor.spec.mjs', 'utf8' );
assert.match( config, /globalSetup:\s*['"]\.\/tests\/e2e\/global-setup\.mjs['"]/ );
assert.match( setup, /wp-env.*chrnx_seed_editorial_terms\(\);/s );
assert.equal( setup.match( /chrnx_seed_editorial_terms/g )?.length, 1 );
assert.match( setup, /execFileSync\(\s*['"]\.\/scripts\/seed-test-content\.sh['"]/s );
assert.equal( setup.match( /seed-test-content\.sh/g )?.length, 1 );
assert.equal( seed.match( /chrnx_seed_editorial_terms\(\);/g )?.length, 1 );
assert.doesNotMatch( spec, /wp-env|execFileSync|beforeAll/ );
} );