test: fix mock-binary-response golden by using a different png
This commit is contained in:
parent
ac2ba3cbd9
commit
47d1ef056f
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 |
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue