Skip to content

Commit

Permalink
fix: Screenshots for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nickevansuk committed Aug 11, 2023
1 parent c79f8b2 commit 9f81592
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ const AUTHORIZE_SUCCESS_CLASS = 'openactive-test-callback-success';
* @param {Context} context
*/
async function addScreenshot(page, title, context) {
const image = await page.screenshot({
const imageBuffer = await page.screenshot({
encoding: 'base64',
});
const image = imageBuffer.toString();
const url = page.url();
context.screenshots.push({
title,
Expand Down

0 comments on commit 9f81592

Please sign in to comment.