Skip to content

Commit

Permalink
fix e2e tests for trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 committed Jan 31, 2024
1 parent 5cf3a0f commit a4ad7e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cypress/e2e/insert-character-in-post.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a4ad7e0

Please sign in to comment.