From eafe43da96e06185a1d93a3e6ffaa8ae5642d7d5 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Mon, 18 Dec 2023 21:44:51 +0900 Subject: [PATCH] e2e: Try to fix flaky font-library test (#57092) --- test/e2e/specs/site-editor/font-library.spec.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/e2e/specs/site-editor/font-library.spec.js b/test/e2e/specs/site-editor/font-library.spec.js index 531398fb49590..8bc7cfb17ea62 100644 --- a/test/e2e/specs/site-editor/font-library.spec.js +++ b/test/e2e/specs/site-editor/font-library.spec.js @@ -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(); } ); @@ -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(); } );