Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Nov 27, 2023
1 parent e1c2bb9 commit fee46cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions test/e2e/specs/editor/various/a11y.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,6 @@ test.describe( 'a11y (@firefox, @webkit)', () => {
const blocksTab = preferencesModal.locator(
'role=tab[name="Blocks"i]'
);
const panelsTab = preferencesModal.locator(
'role=tab[name="Panels"i]'
);

// Check initial focus is on the modal dialog container.
await expect( preferencesModal ).toBeFocused();
Expand Down Expand Up @@ -204,13 +201,5 @@ test.describe( 'a11y (@firefox, @webkit)', () => {
await expect( closeButton ).toBeFocused();
await pageUtils.pressKeys( 'Shift+Tab' );
await expect( preferencesModalContent ).not.toBeFocused();

// The Panels tab panel content is short and not scrollable.
// Check it's not focusable.
await clickAndFocusTab( panelsTab );
await pageUtils.pressKeys( 'Shift+Tab' );
await expect( closeButton ).toBeFocused();
await pageUtils.pressKeys( 'Shift+Tab' );
await expect( preferencesModalContent ).not.toBeFocused();
} );
} );
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/preview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ class PreviewUtils {
);
await this.page.click( 'role=menuitem[name="Preferences"i]' );

// Navigate to panels section.
// Navigate to general section.
await this.page.click(
'role=dialog[name="Preferences"i] >> role=tab[name="Panels"i]'
'role=dialog[name="Preferences"i] >> role=tab[name="General"i]'
);

// Find custom fields checkbox.
Expand Down

0 comments on commit fee46cf

Please sign in to comment.