diff --git a/test/e2e/specs/editor/various/footnotes.spec.js b/test/e2e/specs/editor/various/footnotes.spec.js index 01017b2d2ea2e6..e7fd3804706471 100644 --- a/test/e2e/specs/editor/various/footnotes.spec.js +++ b/test/e2e/specs/editor/various/footnotes.spec.js @@ -363,11 +363,15 @@ test.describe( 'Footnotes', () => { // Open revisions. await editor.openDocumentSettingsSidebar(); + const editorSettings = page.getByRole( 'region', { + name: 'Editor settings', + } ); + await editorSettings.getByRole( 'tab', { name: 'Post' } ).click(); + await editorSettings.getByRole( 'button', { name: 'Actions' } ).click(); await page - .getByRole( 'region', { name: 'Editor settings' } ) - .getByRole( 'tab', { name: 'Post' } ) + .getByRole( 'menu' ) + .getByRole( 'menuitem', { name: 'View revisions' } ) .click(); - await page.locator( 'a:text("Revisions (2)")' ).click(); await page.locator( '.revisions-controls .ui-slider-handle' ).focus(); await page.keyboard.press( 'ArrowLeft' ); await page.locator( 'input:text("Restore This Revision")' ).click();