Skip to content

Commit

Permalink
Test the fullscreen mode snackbar notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 25, 2025
1 parent 1f302da commit 0990af0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/e2e/specs/editor/various/fullscreen-mode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ test.describe( 'Fullscreen Mode', () => {
// Check the View Posts link is visible.
await expect( viewPostsLink ).toBeVisible();

await expect(
page
.getByRole( 'button', { name: 'Dismiss this notice' } )
.filter( { hasText: 'Fullscreen mode activated' } )
).toBeVisible();

// Emulates CTRL+Shift+Alt + F
await pageUtils.pressKeys( 'secondary+F' );

Expand All @@ -82,5 +88,11 @@ test.describe( 'Fullscreen Mode', () => {

// Check the View Posts link is not visible.
await expect( viewPostsLink ).toBeHidden();

await expect(
page
.getByRole( 'button', { name: 'Dismiss this notice' } )
.filter( { hasText: 'Fullscreen mode deactivated' } )
).toBeVisible();
} );
} );

0 comments on commit 0990af0

Please sign in to comment.