Skip to content

Commit

Permalink
fixed e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Sep 26, 2024
1 parent 9cbaa04 commit f68ce54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/specs/editor-block-component-inner-blocks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ test.describe('editor block component <InnerBlocks />', () => {
await expect($innerAppender).toBeHidden();

// Select the inner block.
await editor.canvas.click(
'.wp-block-lazyblock-test .wp-block-lazyblock-test'
);
await editor.canvas
.locator('.wp-block-lazyblock-test .wp-block-lazyblock-test')
.click();

// Once inner block focused, our block should show the InnerBlocks appender.
await expect($innerAppender).toBeVisible();
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/editor-block-rendering.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ test.describe('editor block rendering', () => {

await page.getByPlaceholder('My pattern').fill('Test pattern');

await page.getByRole('button', { name: 'Create' }).click();
await page.getByRole('button', { name: 'Add' }).click();

await expect(page.getByLabel('Test pattern')).toBeVisible();

Expand Down

0 comments on commit f68ce54

Please sign in to comment.