Skip to content

Commit ce7e0a4

Browse files
authored
workaround for the expo-flow test (#26)
1 parent 4c5e622 commit ce7e0a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/pit/its/expo-flow.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const { log, args, createPage, closePage, takeScreenshot, waitForServerReady } =
3131
await page.locator('vaadin-text-field input').fill('bar');
3232
await page.getByRole('button', { name: 'Say hello' }).click();
3333
await takeScreenshot(page, __filename, 'react-clicked');
34+
// workaround: redo the click to trigger the notification show
35+
// reason: on windows, takeScreenshot takes more time than linux
36+
await page.getByRole('button', { name: 'Say hello' }).click();
3437
await expect(page.locator('vaadin-notification-container')).toContainText('Hello bar');
3538
await takeScreenshot(page, __filename, 'react-result');
3639

0 commit comments

Comments
 (0)