This commit is contained in:
Tung Du 2022-08-05 16:37:44 +07:00 committed by GitHub
parent c252e7a907
commit fcedd5174f
1 changed files with 4 additions and 4 deletions

View File

@ -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' );
};