Skip to content

Commit

Permalink
Fix the flaky site editor list view tests (WordPress#51598)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and sethrubenstein committed Jul 13, 2023
1 parent 4a56811 commit 40d8d83
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,12 @@ test.describe( 'Block list view', () => {
await expect(
page.locator( 'role=region[name="List View"i]' )
).toBeVisible();

// The preferences cleanup.
await page.evaluate( () => {
window.wp.data
.dispatch( 'core/preferences' )
.set( 'core/edit-site', 'showListViewByDefault', false );
} );
} );
} );

0 comments on commit 40d8d83

Please sign in to comment.