Refactor test expectation status for recent Firefox Nightly builds (#9642)

This commit is contained in:
Henrik Skupin 2023-02-10 12:45:40 +01:00 committed by GitHub
parent b8ea891ab8
commit 404839d175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 246 additions and 1652 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -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');