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

Fix: flaky tests related to setMaxPrice #6856

Merged
merged 2 commits into from
Aug 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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