Skip to content

Commit a80a533

Browse files
committed
ov-components: Correctly write diff buffer as Uint8Array for screenshot comparison
1 parent ac1b747 commit a80a533

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • openvidu-components-angular/openvidu-demo-app/frontend/e2e

openvidu-components-angular/openvidu-demo-app/frontend/e2e/room.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ describe('Testing Room', () => {
237237
// includeAA: false,
238238
// diffColor: [255, 0, 0]
239239
});
240-
fs.writeFileSync('diff.png', PNG.sync.write(diff));
240+
const diffBuffer = PNG.sync.write(diff);
241+
fs.writeFileSync('diff.png', new Uint8Array(diffBuffer));
241242
expect(numDiffPixels).to.be.greaterThan(500, 'The virtual background was not applied correctly');
242243
});
243244
});

0 commit comments

Comments
 (0)