Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix: flaky tests related to setMaxPrice (#6856)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu authored Aug 5, 2022
1 parent 4ad7edb commit ec33f8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/e2e/specs/shopper/filter-products-by-price.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ const goToShopPage = () =>
const setMaxPrice = async () => {
await page.waitForSelector( selectors.frontend.priceMaxAmount );
await page.focus( selectors.frontend.priceMaxAmount );
await page.$eval(
selectors.frontend.priceMaxAmount,
( el ) => ( ( el as HTMLInputElement ).value = '' )
);
await page.keyboard.down( 'Shift' );
await page.keyboard.press( 'Home' );
await page.keyboard.up( 'Shift' );
await page.keyboard.press( 'Backspace' );
await page.keyboard.type( '1.99' );
await page.keyboard.press( 'Tab' );
};
Expand Down

0 comments on commit ec33f8f

Please sign in to comment.