Skip to content

Commit

Permalink
chore(ci): set DISPLAY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Apr 14, 2024
1 parent 1283543 commit a97ee0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/puppeteer/puppeteer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { findpath } from 'nw';
import puppeteer from "puppeteer";
import { afterAll, beforeAll, describe, expect, it } from 'vitest';

describe('NW.js Puppeteer test suite', async () => {
describe('NW.js Puppeteer test suite', function () {

let browser = undefined;
let page = undefined;
Expand All @@ -17,6 +17,9 @@ describe('NW.js Puppeteer test suite', async () => {
headless: true,
ignoreDefaultArgs: true,
executablePath: findpath(),
env: {
DISPLAY: ':10',
},
/* Specify file path to NW.js app */
args: [`--nwapp=${path.resolve('js', 'puppeteer')}`],
});
Expand Down

0 comments on commit a97ee0b

Please sign in to comment.