Skip to content

Commit

Permalink
chore: fix jest puppeteer config file
Browse files Browse the repository at this point in the history
  • Loading branch information
vinit717 committed Oct 14, 2024
1 parent 389698d commit 0899949
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion __tests__/users/applyFilterPagination.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('Apply Filter and Pagination Functionality', () => {

beforeAll(async () => {
browser = await puppeteer.launch({
headless: true,
ignoreHTTPSErrors: true,
args: ['--incognito', '--disable-web-security'],
});
Expand Down
1 change: 1 addition & 0 deletions __tests__/users/onboarding31days.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const puppeteer = require('puppeteer');
const { superUserDetails } = require('../../mock-data/users/mockdata');
const setTimeout = require('node:timers/promises').setTimeout;

describe('Tests the "Onboarding > 31 Days" Filter', () => {
let browser;
Expand Down
13 changes: 9 additions & 4 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ const ciPipelineOptions = {
executablePath: '/usr/bin/google-chrome-stable',
headless: 'new',
args: [
'--ignore-certificate-errors',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-gpu',
...(ci
? [
'--ignore-certificate-errors',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
'--disable-gpu',
]
: ['--enable-gpu']),
],
},
server: baseOptions.server,
Expand Down

0 comments on commit 0899949

Please sign in to comment.