Skip to content

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

chore: fix lint in page-goto.spec (#17052)

Dmitry Gozman1b59abb5e1f5
diff --git a/tests/page/page-goto.spec.ts b/tests/page/page-goto.spec.ts
index b94559a22d..3f6587ae85 100644
--- a/tests/page/page-goto.spec.ts
+++ b/tests/page/page-goto.spec.ts
@@ -638,7 +638,7 @@ it('should not resolve goto upon window.stop()', async ({ browserName, page, ser
response = res;
});
let done = false;
- const promise = page.goto(server.PREFIX + '/window-stop.html').then(() => done = true).catch(() => {});
+ page.goto(server.PREFIX + '/window-stop.html').then(() => done = true).catch(() => {});
await server.waitForRequest('/module.js');
expect(done).toBe(false);
await page.waitForTimeout(1000); // give it some time to erroneously resolve