From 960bdae25a7dbcffc78f7f3e8036183dc541bc1d Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:36:21 +0900 Subject: [PATCH] Update test/e2e/specs/editor/various/adding-patterns.spec.js Co-authored-by: Kai Hao --- test/e2e/specs/editor/various/adding-patterns.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/various/adding-patterns.spec.js b/test/e2e/specs/editor/various/adding-patterns.spec.js index bb8cd35d1077ad..35192dd364dc66 100644 --- a/test/e2e/specs/editor/various/adding-patterns.spec.js +++ b/test/e2e/specs/editor/various/adding-patterns.spec.js @@ -17,7 +17,7 @@ test.describe( 'adding patterns', () => { 'Standard' ); - await page.click( 'role=option[name="Standard"i]' ); + await page.getByRole( 'option', { name: 'Standard' } ).click(); await expect.poll( editor.getBlocks ).toMatchObject( [ { name: 'core/query',