From 2229386ea99deaca856f0b9855237e6d6aa056d3 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 1 Sep 2022 14:39:32 -0700 Subject: [PATCH] test: unflake "should support boolean attribute with options" Timeout 100ms is too small. --- tests/page/expect-misc.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/page/expect-misc.spec.ts b/tests/page/expect-misc.spec.ts index c32d971f3f616..67848bd41998f 100644 --- a/tests/page/expect-misc.spec.ts +++ b/tests/page/expect-misc.spec.ts @@ -239,10 +239,10 @@ test.describe('toHaveAttribute', () => { test('should support boolean attribute with options', async ({ page }) => { await page.setContent('
Text content
'); const locator = page.locator('#node'); - await expect(locator).toHaveAttribute('id', { timeout: 100 }); - await expect(locator).toHaveAttribute('checked', { timeout: 100 }); - await expect(locator).not.toHaveAttribute('open', { timeout: 100 }); - await expect(locator).toHaveAttribute('id', 'node', { timeout: 100 }); + await expect(locator).toHaveAttribute('id', { timeout: 5000 }); + await expect(locator).toHaveAttribute('checked', { timeout: 5000 }); + await expect(locator).not.toHaveAttribute('open', { timeout: 5000 }); + await expect(locator).toHaveAttribute('id', 'node', { timeout: 5000 }); }); });