Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Child Block Test to Playwright #55199

Merged
16 changes: 6 additions & 10 deletions test/e2e/specs/editor/plugins/child-blocks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ test.describe( 'Child Blocks', () => {
name: 'test/child-blocks-unrestricted-parent',
} );

await page
.getByRole( 'document', {
name: 'Block: Child Blocks Unrestricted Parent',
} )
.click();
await page.click(
'[data-type="test/child-blocks-unrestricted-parent"] .block-editor-default-block-appender'
);
Mamaduka marked this conversation as resolved.
Show resolved Hide resolved
const blockInserter = page
.getByRole( 'toolbar', { name: 'Document tools' } )
.getByRole( 'button', { name: 'Toggle block inserter' } );
Expand All @@ -63,11 +61,9 @@ test.describe( 'Child Blocks', () => {
name: 'test/child-blocks-restricted-parent',
} );

await page
.getByRole( 'document', {
name: 'Block: Child Blocks Restricted Parent',
} )
.click();
await page.click(
'[data-type="test/child-blocks-restricted-parent"] .block-editor-default-block-appender'
);
Mamaduka marked this conversation as resolved.
Show resolved Hide resolved

const blockInserter = page
.getByRole( 'toolbar', { name: 'Document tools' } )
Expand Down
Loading