From f68ce54696cb83611f28e357708a0c5cbadcb595 Mon Sep 17 00:00:00 2001
From: Fellan-91 <alexey.fellan@gmail.com>
Date: Thu, 26 Sep 2024 14:42:43 +0300
Subject: [PATCH] fixed e2e tests

---
 tests/e2e/specs/editor-block-component-inner-blocks.spec.js | 6 +++---
 tests/e2e/specs/editor-block-rendering.spec.js              | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/e2e/specs/editor-block-component-inner-blocks.spec.js b/tests/e2e/specs/editor-block-component-inner-blocks.spec.js
index 5961739d..1c5f0aa8 100644
--- a/tests/e2e/specs/editor-block-component-inner-blocks.spec.js
+++ b/tests/e2e/specs/editor-block-component-inner-blocks.spec.js
@@ -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();
diff --git a/tests/e2e/specs/editor-block-rendering.spec.js b/tests/e2e/specs/editor-block-rendering.spec.js
index 5e452c86..4a5197bf 100644
--- a/tests/e2e/specs/editor-block-rendering.spec.js
+++ b/tests/e2e/specs/editor-block-rendering.spec.js
@@ -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();