Skip to content

Commit

Permalink
Added --no-sandbox args to puppeteer launch
Browse files Browse the repository at this point in the history
  • Loading branch information
tasoskakour committed Jan 12, 2025
1 parent 44ed0d0 commit 0a8a4d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/login-authorization-code-flow-with-queryfn.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ afterAll((done) => {
});

test('Login with authorization code flow and exchangeCodeForQueryFn works as expected', async () => {
browser = await puppeteer.launch();
browser = await puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox'] });
const page = await browser.newPage();

await page.goto(URL);
Expand Down
2 changes: 1 addition & 1 deletion e2e/login-authorization-code-flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ afterAll((done) => {
});

test('Login with authorization code flow works as expected', async () => {
browser = await puppeteer.launch();
browser = await puppeteer.launch({ args: ['--no-sandbox', '--disable-setuid-sandbox'] });
const page = await browser.newPage();

await page.goto(URL);
Expand Down
4 changes: 3 additions & 1 deletion e2e/login-implicit-grant-flow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ afterAll((done) => {
});

test('Login with implicit grant flow works as expected', async () => {
browser = await puppeteer.launch();
browser = await puppeteer.launch({
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
const page = await browser.newPage();

await page.goto(URL);
Expand Down

0 comments on commit 0a8a4d7

Please sign in to comment.