Add pause after resize to fix inconsistent dropdown/dropup direction behaviour

This commit is contained in:
Matt Triff 2021-12-30 20:25:33 -05:00
parent 0903934848
commit c7976b7acd
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ async function test() {
waitUntil: 'networkidle2',
});
await page.setViewport({ width: 640, height: 1000 });
await page.waitForTimeout(500); // Wait for resize to complete
await page.click('label[for="choices-single-custom-templates"]');
await page.keyboard.press('ArrowDown');
await page.keyboard.press('ArrowDown');