test: inspect CHRNX editor block state
This commit is contained in:
2 files changed
+95
-62
No files matched your search
@@ -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' );
|
||||
|
||||
Reference in new issue
Block a user