From a4ad7e044d6e1001b011ab1c1a25cc6bfd21e716 Mon Sep 17 00:00:00 2001 From: Siddharth Thevaril Date: Thu, 1 Feb 2024 00:37:34 +0530 Subject: [PATCH] fix e2e tests for trunk --- tests/cypress/e2e/insert-character-in-post.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cypress/e2e/insert-character-in-post.test.js b/tests/cypress/e2e/insert-character-in-post.test.js index 02bd965..38980b1 100644 --- a/tests/cypress/e2e/insert-character-in-post.test.js +++ b/tests/cypress/e2e/insert-character-in-post.test.js @@ -39,6 +39,8 @@ describe( 'Insert character in post', () => { cy.get( '.block-editor-block-navigation' ).click(); } else if ( $body.find( '.edit-post-header-toolbar__list-view-toggle' ).length > 0 ) { cy.get( '.edit-post-header-toolbar__list-view-toggle' ).click(); + } else if ( $body.find( 'button[aria-label="Document Overview"]' ).length > 0 ) { + cy.get( 'button[aria-label="Document Overview"]' ).click(); } else { // WP 6.2 cy.get( '.edit-post-header-toolbar__document-overview-toggle' ).click();