Skip to content

Commit

Permalink
e2e: Try to fix flaky font-library test
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 18, 2023
1 parent db617ee commit 7e9731f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/e2e/specs/site-editor/font-library.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ test.describe( 'Font Library', () => {
} );

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

Expand All @@ -35,10 +32,7 @@ test.describe( 'Font Library', () => {
} );

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

Expand Down

0 comments on commit 7e9731f

Please sign in to comment.