test('Comparing images at runtime', async({page}, testInfo)=>{ await testInfo.attach('Expected image', {body: originalImage, contentType: 'image/png'}) await testInfo.attach('Actual image', {body: newImage, contentType: 'image/png'}) }