test(postData): add a failing firefox test (#3098)

This commit is contained in:
Pavel Feldman 2020-07-22 17:27:05 -07:00 committed by GitHub
parent 65002a0ac2
commit e56e148597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,6 +534,17 @@ describe('Request.continue', function() {
]);
expect(await serverRequest.postBody).toBe('doggo');
});
it.fail(FFOX)('should amend longer post data', async({page, server}) => {
await page.goto(server.EMPTY_PAGE);
await page.route('**/*', route => {
route.continue({ postData: 'doggo-is-longer-than-birdy' });
});
const [serverRequest] = await Promise.all([
server.waitForRequest('/sleep.zzz'),
page.evaluate(() => fetch('/sleep.zzz', { method: 'POST', body: 'birdy' }))
]);
expect(await serverRequest.postBody).toBe('doggo-is-longer-than-birdy');
});
});
describe('Request.fulfill', function() {