Refactor test expectation status for recent Firefox Nightly builds (#9642)
This commit is contained in:
parent
b8ea891ab8
commit
404839d175
File diff suppressed because it is too large
Load Diff
@ -419,7 +419,7 @@ describe('Page.click', function () {
|
|||||||
).toBe('Clicked');
|
).toBe('Clicked');
|
||||||
});
|
});
|
||||||
// @see https://github.com/puppeteer/puppeteer/issues/4110
|
// @see https://github.com/puppeteer/puppeteer/issues/4110
|
||||||
it.skip('should click the button with fixed position inside an iframe', async () => {
|
it('should click the button with fixed position inside an iframe', async () => {
|
||||||
const {page, server} = getTestState();
|
const {page, server} = getTestState();
|
||||||
|
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
|
@ -184,13 +184,17 @@ describe('Page', function () {
|
|||||||
|
|
||||||
describe('Page.Events.error', function () {
|
describe('Page.Events.error', function () {
|
||||||
it('should throw when page crashes', async () => {
|
it('should throw when page crashes', async () => {
|
||||||
const {page} = getTestState();
|
const {page, isChrome} = getTestState();
|
||||||
|
|
||||||
let error!: Error;
|
let error!: Error;
|
||||||
page.on('error', err => {
|
page.on('error', err => {
|
||||||
return (error = err);
|
return (error = err);
|
||||||
});
|
});
|
||||||
page.goto('chrome://crash').catch(() => {});
|
if (isChrome) {
|
||||||
|
page.goto('chrome://crash').catch(() => {});
|
||||||
|
} else {
|
||||||
|
page.goto('about:crashcontent').catch(() => {});
|
||||||
|
}
|
||||||
await waitEvent(page, 'error');
|
await waitEvent(page, 'error');
|
||||||
expect(error.message).toBe('Page crashed!');
|
expect(error.message).toBe('Page crashed!');
|
||||||
});
|
});
|
||||||
@ -1804,7 +1808,7 @@ describe('Page', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// @see https://github.com/puppeteer/puppeteer/issues/4840
|
// @see https://github.com/puppeteer/puppeteer/issues/4840
|
||||||
it.skip('should throw when added with content to the CSP page', async () => {
|
it('should throw when added with content to the CSP page', async () => {
|
||||||
const {page, server} = getTestState();
|
const {page, server} = getTestState();
|
||||||
|
|
||||||
await page.goto(server.PREFIX + '/csp.html');
|
await page.goto(server.PREFIX + '/csp.html');
|
||||||
|
Loading…
Reference in New Issue
Block a user