test: inspect CHRNX editor block state

This commit is contained in:
chrnx committed 2026-08-13 01:54:03 -05:00
1 parent 9b94eb17c5
commit 03aca3beff
2 files changed
+95 -62

No files matched your search

+11
View File
@@ -507,6 +507,17 @@ test( 'Music and Podcast patterns own one ordered three-layer landing compositio
);
} );
test( 'editor pattern validity is derived only from the live block-editor store', () => {
const editorValidity = read( 'tests/e2e/pattern-editor-validity.spec.mjs' );
assert.doesNotMatch( editorValidity, /resolvePatternReferences|shouldResolvePatterns/ );
assert.doesNotMatch(
editorValidity,
/editorSnapshot[\s\S]*?wp\.apiFetch\(\s*\{\s*path:\s*'\/wp\/v2\/block-patterns\/patterns'/,
);
assert.match( editorValidity, /const roots = store\.getBlocks\(\)/ );
} );
test( 'character stages define the shared mockup effect and responsive geometry', () => {
const components = read( 'assets/css/components.css' );
const visualStates = read( 'tests/e2e/visual-states.spec.mjs' );