Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
fix(visual-grid-client): render script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielschwartz85 committed Sep 10, 2019
1 parent 57dbf42 commit aaa6828
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/visual-grid-client/example/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const puppeteer = require('puppeteer');
const {makeVisualGridClient} = require('../src/visual-grid-client');
const {getProcessPageAndSerialize} = require('@applitools/dom-snapshot');
const {Logger} = require('@applitools/eyes-common');
const {delay: _delay} = require('@applitools/functional-commons');
const debug = require('debug')('eyes:render');

Expand All @@ -18,7 +19,7 @@ const debug = require('debug')('eyes:render');

const {openEyes} = makeVisualGridClient({
apiKey: process.env.APPLITOOLS_API_KEY,
showLogs: !!process.env.APPLITOOLS_SHOW_LOGS,
logger: new Logger(!!process.env.APPLITOOLS_SHOW_LOGS, 'eyes:vgc'),
proxy: process.env.APPLITOOLS_PROXY,
});

Expand All @@ -31,7 +32,7 @@ const debug = require('debug')('eyes:render');

debug('open done');

const browser = await puppeteer.launch({headless: false});
const browser = await puppeteer.launch({headless: true});
const page = await browser.newPage();
const processPageAndSerialize = `(${await getProcessPageAndSerialize()})()`;

Expand Down

0 comments on commit aaa6828

Please sign in to comment.