test: upstream test and expectation for Firefox sync to puppeteer v21… (#10898)

This commit is contained in:
Julian Descottes 2023-09-18 18:04:02 +02:00 committed by GitHub
parent 60582b7fbc
commit c49320ee87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 10 deletions

View File

@ -1235,6 +1235,12 @@
"parameters": ["webDriverBiDi"],
"expectations": ["PASS"]
},
{
"testIdPattern": "[proxy.spec] request proxy should respect proxy bypass list",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["webDriverBiDi", "firefox"],
"expectations": ["PASS", "FAIL"]
},
{
"testIdPattern": "[queryhandler.spec] Query handler tests P selectors should work ARIA selectors",
"platforms": ["darwin", "linux", "win32"],
@ -2348,20 +2354,14 @@
{
"testIdPattern": "[launcher.spec] Launcher specs Puppeteer Puppeteer.launch should launch Chrome properly with --no-startup-window and waitForInitialPage=false",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["firefox", "webDriverBiDi"],
"expectations": ["FAIL"]
},
{
"testIdPattern": "[launcher.spec] Launcher specs Puppeteer Puppeteer.launch should launch Chrome properly with --no-startup-window and waitForInitialPage=false",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["cdp", "firefox"],
"parameters": ["firefox"],
"expectations": ["SKIP"]
},
{
"testIdPattern": "[launcher.spec] Launcher specs Puppeteer Puppeteer.launch should work with no default arguments",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["firefox", "headless"],
"expectations": ["FAIL", "PASS"]
"expectations": ["SKIP"]
},
{
"testIdPattern": "[launcher.spec] Launcher specs Puppeteer Puppeteer.launch tmp profile should be cleaned up",
@ -2963,6 +2963,12 @@
"parameters": ["cdp", "firefox"],
"expectations": ["FAIL"]
},
{
"testIdPattern": "[network.spec] network Response.fromCache should work",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["webDriverBiDi", "firefox"],
"expectations": ["PASS", "FAIL"]
},
{
"testIdPattern": "[network.spec] network Response.fromServiceWorker Response.fromServiceWorker",
"platforms": ["darwin", "linux", "win32"],
@ -3875,6 +3881,12 @@
"parameters": ["cdp", "firefox"],
"expectations": ["SKIP"]
},
{
"testIdPattern": "[waittask.spec] waittask specs Frame.waitForFunction should work when resolved right before execution context disposal",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["webDriverBiDi", "firefox"],
"expectations": ["PASS", "FAIL"]
},
{
"testIdPattern": "[waittask.spec] waittask specs Frame.waitForFunction should work with strict CSP policy",
"platforms": ["darwin", "linux", "win32"],

View File

@ -423,11 +423,13 @@ describe('Evaluation specs', function () {
const {page, server} = await getTestState();
await page.goto(server.PREFIX + '/one-style.html');
const onRequest = server.waitForRequest('/empty.html');
const result = await page.evaluate(() => {
(window as any).location = '/empty.html';
return [42];
});
expect(result).toEqual([42]);
await onRequest;
});
it('should transfer 100Mb of data from page to node.js', async function () {
this.timeout(25_000);

View File

@ -1365,7 +1365,9 @@ describe('Page', function () {
const {page, server} = await getTestState();
const [error] = await Promise.all([
waitEvent<Error>(page, 'pageerror'),
waitEvent<Error>(page, 'pageerror', err => {
return err.message.includes('Fancy');
}),
page.goto(server.PREFIX + '/error.html'),
]);
expect(error.message).toContain('Fancy');

View File

@ -336,7 +336,7 @@ describe('Target', function () {
await browser
.waitForTarget(
target => {
return target.url() === server.EMPTY_PAGE;
return target.url() === server.PREFIX + '/does-not-exist.html';
},
{
timeout: 1,