Skip to content

Commit

Permalink
Fix [Flaky Test] Entering zoomed out mode zooms the canvas (WordPress…
Browse files Browse the repository at this point in the history
…#66212)

* start each test directly on the template page

* remove pause

Co-authored-by: MaggieCabrera <[email protected]>
Co-authored-by: talldan <[email protected]>
  • Loading branch information
3 people authored Oct 17, 2024
1 parent 4c15400 commit 739805c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/e2e/specs/site-editor/zoom-out.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ test.describe( 'Zoom Out', () => {
await requestUtils.activateTheme( 'twentytwentyone' );
} );

test.beforeEach( async ( { admin, editor } ) => {
await admin.visitSiteEditor();
await editor.canvas.locator( 'body' ).click();
test.beforeEach( async ( { admin } ) => {
await admin.visitSiteEditor( {
postId: 'twentytwentyfour//index',
postType: 'wp_template',
canvas: 'edit',
} );
} );

test( 'Entering zoomed out mode zooms the canvas', async ( {
Expand Down

0 comments on commit 739805c

Please sign in to comment.