Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: skip `should handle timeout properly 2` on tracing bots (#36399)

Dmitry Gozman06a065de7cb9
diff --git a/tests/page/page-set-content.spec.ts b/tests/page/page-set-content.spec.ts
index 38f5f111cc..33e04c8604 100644
--- a/tests/page/page-set-content.spec.ts
+++ b/tests/page/page-set-content.spec.ts
@@ -148,7 +148,9 @@ it('should handle timeout properly', async ({ page, toImpl, browserName }) => {
await expect(page.locator('div')).toHaveText('world');
});
-it('should handle timeout properly 2', async ({ page, toImpl }) => {
+it('should handle timeout properly 2', async ({ page, toImpl, trace }) => {
+ it.skip(trace === 'on');
+
await toImpl(page).mainFrame().evaluateExpression(String(() => {
document.close = () => {
while (true) {}