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

This commit is contained in:
Dmitry Gozman 2022-09-02 15:45:01 -07:00 committed by GitHub
parent 10b22aca88
commit 1b59abb5e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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