Skip to content

Commit

Permalink
Fix the catching expression to prevent throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Feb 16, 2024
1 parent 233683c commit 33e4245
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -71,9 +71,10 @@ test.describe( `${ blockData.name } Block - with All products Block`, () => {
disabled: true,
} )
.waitFor( { timeout: 3000 } )
// Do not throw in case Playwright doesn't make it in time for the
// initial (pre-request) render.
.catch();
.catch( () => {
// Do not throw in case Playwright doesn't make it in time for the
// initial (pre-request) render.
} );

const maxPriceInput = page.getByRole( 'textbox', {
name: 'Filter products by maximum price',
Expand Down

0 comments on commit 33e4245

Please sign in to comment.