chore: fix ESLint violation and lessen rule strictness (#6081)

This commit is contained in:
Jack Franklin
2020-06-23 12:55:42 +01:00
committed by GitHub
parent fdc6fda46e
commit 70a900e93b
37 changed files with 285 additions and 101 deletions

View File

@@ -65,14 +65,18 @@ describe('navigation', function () {
const response = await page.goto(server.PREFIX + '/historyapi.html');
expect(response.status()).toBe(200);
});
it('should work with subframes return 204', async () => {
itFailsFirefox('should work with subframes return 204', async () => {
const { page, server } = getTestState();
server.setRoute('/frames/frame.html', (req, res) => {
res.statusCode = 204;
res.end();
});
await page.goto(server.PREFIX + '/frames/one-frame.html');
let error = null;
await page
.goto(server.PREFIX + '/frames/one-frame.html')
.catch((error_) => (error = error_));
expect(error).toBe(null);
});
itFailsFirefox('should fail when server returns 204', async () => {
const { page, server, isChrome } = getTestState();