Skip to content

Commit

Permalink
Fix flaky 'Meta boxes' e2e tests (#56083)
Browse files Browse the repository at this point in the history
* Fix flaky 'Meta boxes' e2e tests
* Just swap the expected text order
  • Loading branch information
Mamaduka authored Nov 14, 2023
1 parent f927f2d commit d27ffba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/plugins/meta-boxes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ test.describe( 'Meta boxes', () => {
await page.goto( `/?p=${ postId }` );

await expect(
page.locator( '.wp-block-latest-posts > li' )
).toContainText( [ 'A published post', 'Dynamic block test' ] );
page.locator( '.entry-content .wp-block-latest-posts__post-title' )
).toContainText( [ 'Dynamic block test', 'A published post' ] );
} );

test( 'Should render the excerpt in meta based on post content if no explicit excerpt exists', async ( {
Expand Down

0 comments on commit d27ffba

Please sign in to comment.