We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b2b28 commit b02c0bdCopy full SHA for b02c0bd
test/e2e/specs/editor/plugins/block-api.spec.js
@@ -15,14 +15,13 @@ test.describe( 'Using Block API', () => {
15
test( 'Inserts the filtered hello world block even when filter added after block registration', async ( {
16
admin,
17
editor,
18
+ page,
19
} ) => {
20
await admin.createNewPost();
21
22
await editor.insertBlock( { name: 'e2e-tests/hello-world' } );
23
- const block = editor.canvas.locator(
24
- '[data-type="e2e-tests/hello-world"]'
25
- );
26
- await expect( block ).toHaveText( 'Hello Editor!' );
+ const blockTitle = page.locator( '.block-editor-block-card__title' );
+ await expect( blockTitle ).toHaveText( 'Filtered Hello World' );
27
} );
28
0 commit comments