Skip to content

Commit

Permalink
Update test after change to closeButtonLabel default.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 9, 2023
1 parent 04b9c37 commit 47a5430
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/modal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type ModalProps = {
/**
* Label on the close button.
*
* @default `__( 'Close dialog' )`
* @default `__( 'Close' )`
*/
closeButtonLabel?: string;
/**
Expand Down
4 changes: 3 additions & 1 deletion test/e2e/specs/editor/various/a11y.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ test.describe( 'a11y (@firefox, @webkit)', () => {
);
const preferencesModalContent =
preferencesModal.locator( 'role=document' );
const closeButton = page.locator( 'role=button[name="Close dialog"i]' );
const closeButton = preferencesModal.locator(
'role=button[name="Close"i]'
);
const generalTab = preferencesModal.locator(
'role=tab[name="General"i]'
);
Expand Down

0 comments on commit 47a5430

Please sign in to comment.