Revert "test: unflake "should support boolean attribute with options" (#17024)"

This reverts commit 1dc05bd4c6.
This commit is contained in:
Andrey Lushnikov 2022-09-19 13:55:11 -04:00
parent 81c50d8d1c
commit 0c21331e34

View file

@ -239,10 +239,10 @@ test.describe('toHaveAttribute', () => {
test('should support boolean attribute with options', async ({ page }) => { test('should support boolean attribute with options', async ({ page }) => {
await page.setContent('<div checked id=node>Text content</div>'); await page.setContent('<div checked id=node>Text content</div>');
const locator = page.locator('#node'); const locator = page.locator('#node');
await expect(locator).toHaveAttribute('id', { timeout: 5000 }); await expect(locator).toHaveAttribute('id', { timeout: 100 });
await expect(locator).toHaveAttribute('checked', { timeout: 5000 }); await expect(locator).toHaveAttribute('checked', { timeout: 100 });
await expect(locator).not.toHaveAttribute('open', { timeout: 5000 }); await expect(locator).not.toHaveAttribute('open', { timeout: 100 });
await expect(locator).toHaveAttribute('id', 'node', { timeout: 5000 }); await expect(locator).toHaveAttribute('id', 'node', { timeout: 100 });
}); });
}); });