mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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');
|
||||
});
|
||||
// @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();
|
||||
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
|
@ -184,13 +184,17 @@ describe('Page', function () {
|
||||
|
||||
describe('Page.Events.error', function () {
|
||||
it('should throw when page crashes', async () => {
|
||||
const {page} = getTestState();
|
||||
const {page, isChrome} = getTestState();
|
||||
|
||||
let error!: Error;
|
||||
page.on('error', err => {
|
||||
return (error = err);
|
||||
});
|
||||
if (isChrome) {
|
||||
page.goto('chrome://crash').catch(() => {});
|
||||
} else {
|
||||
page.goto('about:crashcontent').catch(() => {});
|
||||
}
|
||||
await waitEvent(page, 'error');
|
||||
expect(error.message).toBe('Page crashed!');
|
||||
});
|
||||
@ -1804,7 +1808,7 @@ describe('Page', function () {
|
||||
});
|
||||
|
||||
// @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();
|
||||
|
||||
await page.goto(server.PREFIX + '/csp.html');
|
||||
|
Loading…
Reference in New Issue
Block a user