mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-03 07:51:12 +03:00
feat(firefox): roll Firefox to 1420 (#24205)
Fixes https://github.com/microsoft/playwright/issues/22753
This commit is contained in:
parent
7787988043
commit
615f5afb2b
@ -21,13 +21,13 @@
|
||||
},
|
||||
{
|
||||
"name": "firefox",
|
||||
"revision": "1419",
|
||||
"revision": "1420",
|
||||
"installByDefault": true,
|
||||
"browserVersion": "115.0"
|
||||
},
|
||||
{
|
||||
"name": "firefox-beta",
|
||||
"revision": "1419",
|
||||
"revision": "1420",
|
||||
"installByDefault": false,
|
||||
"browserVersion": "116.0b2"
|
||||
},
|
||||
|
@ -966,3 +966,20 @@ for (const method of ['fulfill', 'continue', 'fallback', 'abort'] as const) {
|
||||
expect(e.message).toContain('Route is already handled!');
|
||||
});
|
||||
}
|
||||
|
||||
it('should intercept when postData is more than 1MB', async ({ page, server }) => {
|
||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/22753' });
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
let interceptionCallback;
|
||||
const interceptionPromise = new Promise(x => interceptionCallback = x);
|
||||
const POST_BODY = '0'.repeat(2 * 1024 * 1024); // 2MB
|
||||
await page.route('**/404.html', async route => {
|
||||
await route.abort();
|
||||
interceptionCallback(route.request().postData());
|
||||
});
|
||||
await page.evaluate(POST_BODY => fetch('/404.html', {
|
||||
method: 'POST',
|
||||
body: POST_BODY,
|
||||
}).catch(e => {}), POST_BODY);
|
||||
expect(await interceptionPromise).toBe(POST_BODY);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user