test: fix mock-binary-response golden by using a different png

This commit is contained in:
Dmitry Gozman 2020-01-23 15:08:41 -08:00
parent ac2ba3cbd9
commit 47d1ef056f
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 316 B

View file

@ -472,7 +472,7 @@ module.exports.describe = function({testRunner, expect, defaultBrowserOptions, p
it('should allow mocking binary responses', async({page, server}) => { it('should allow mocking binary responses', async({page, server}) => {
await page.setRequestInterception(true); await page.setRequestInterception(true);
page.on('request', request => { page.on('request', request => {
const imageBuffer = fs.readFileSync(path.join(__dirname, 'assets', 'pptr.png')); const imageBuffer = fs.readFileSync(path.join(__dirname, 'assets', 'digits', '0.png'));
request.fulfill({ request.fulfill({
contentType: 'image/png', contentType: 'image/png',
body: imageBuffer body: imageBuffer