test: exercise CHRNX editor workflows
This commit is contained in:
3 files changed
+204
-61
No files matched your search
@@ -516,6 +516,29 @@ test( 'editor pattern validity is derived only from the live block-editor store'
|
||||
/editorSnapshot[\s\S]*?wp\.apiFetch\(\s*\{\s*path:\s*'\/wp\/v2\/block-patterns\/patterns'/,
|
||||
);
|
||||
assert.match( editorValidity, /const roots = store\.getBlocks\(\)/ );
|
||||
assert.doesNotMatch( editorValidity, /__experimentalGetParsedPattern/ );
|
||||
assert.doesNotMatch( editorValidity, /\.resetBlocks\s*\(/ );
|
||||
assert.doesNotMatch( editorValidity, /\.insertBlocks\s*\(/ );
|
||||
assert.match( editorValidity, /getByRole\( 'button', \{ name: 'Block Inserter' \} \)/ );
|
||||
assert.match( editorValidity, /getByRole\( 'tab', \{ name: 'Blocks'/ );
|
||||
assert.match(
|
||||
editorValidity,
|
||||
/getByRole\( 'option', \{[\s\S]*?name: pattern\.patternTitle/,
|
||||
);
|
||||
assert.match( editorValidity, /\[ 'POST', 'PUT', 'PATCH', 'DELETE' \]/ );
|
||||
assert.match( editorValidity, /expect\( templateAfter \)\.toEqual\( templateBefore \)/ );
|
||||
} );
|
||||
|
||||
test( 'Music and Podcast visual states decode every relevant image before measuring', () => {
|
||||
const visualStates = read( 'tests/e2e/visual-states.spec.mjs' );
|
||||
|
||||
assert.match( visualStates, /async function waitForDecodedLandingImages/ );
|
||||
assert.match( visualStates, /image\.complete/ );
|
||||
assert.match( visualStates, /image\.naturalWidth > 0/ );
|
||||
assert.match( visualStates, /image\.naturalHeight > 0/ );
|
||||
assert.match( visualStates, /typeof image\.decode === 'function'/ );
|
||||
assert.match( visualStates, /awaitDecode: false/ );
|
||||
assert.match( visualStates, /latestMedia/ );
|
||||
} );
|
||||
|
||||
test( 'character stages define the shared mockup effect and responsive geometry', () => {
|
||||
|
||||
Reference in new issue
Block a user