From c2f9b5e6aab46aaaa46d2050d0d03ed0c5b7aba8 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Mon, 27 Jan 2025 11:35:16 +0900 Subject: [PATCH] e2e:fix WP Editor Meta Boxes test --- test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js b/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js index c5eafdafe918db..86c08fe1cd43e3 100644 --- a/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js +++ b/test/e2e/specs/editor/plugins/wp-editor-meta-box.spec.js @@ -27,7 +27,7 @@ test.describe( 'WP Editor Meta Boxes', () => { // Switch tinymce to Text mode, first waiting for it to initialize // because otherwise it will flip back to Visual mode once initialized. await page.locator( '#test_tinymce_id_ifr' ).waitFor(); - await page.locator( 'role=button[name="Text"i]' ).click(); + await page.locator( 'role=button[name="Code"i]' ).click(); // Type something in the tinymce Text mode textarea. const metaBoxField = page.locator( '#test_tinymce_id' );