Skip to content

Commit

Permalink
test(postData): add a failing firefox test (#3098)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Jul 23, 2020
1 parent 65002a0 commit e56e148
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/interception.jest.js
Expand Up @@ -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() {
Expand Down

0 comments on commit e56e148

Please sign in to comment.