Skip to content

Commit

Permalink
udpate e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed May 27, 2024
1 parent 52ebae2 commit a895c42
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/e2e/specs/editor/various/footnotes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a895c42

Please sign in to comment.