Skip to content

Commit ebf93f5

Browse files
authored
Attempt to fix flaky test (#931)
1 parent 0b0b9d7 commit ebf93f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mesop/components/input/e2e/input_test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ test('test textarea shortcuts', async ({page}) => {
5858

5959
await textbox.pressSequentially('hi');
6060
await page.keyboard.press('Enter');
61-
await expect(await page.getByText('Submitted: hi hi')).toBeVisible();
62-
61+
await expect(async () => {
62+
await expect(await page.getByText('Submitted: hi hi')).toBeVisible();
63+
}).toPass({timeout: 5000});
6364
await page.keyboard.down('Meta');
6465
await page.keyboard.press('s');
6566
await page.keyboard.up('Meta');

0 commit comments

Comments
 (0)