mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix ESLint violation and lessen rule strictness (#6081)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user