Skip to content

Commit

Permalink
Update puppeteer config param (#2561)
Browse files Browse the repository at this point in the history
* refactor(inputs): update puppeteer config params

* refactor(inputs): update puppeteer global config headless param

* chore: changeset added
  • Loading branch information
CarlosCortizasCT authored Jul 13, 2023
1 parent e5744bb commit 4a78bb2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/nine-cooks-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@commercetools-uikit/localized-rich-text-input': minor
'@commercetools-uikit/rich-text-input': minor
---

Update `puppeteer` configuration in the visual regression tests.
1 change: 1 addition & 0 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
launch: {
args: ['--no-sandbox', '--disable-setuid-sandbox'],
executablePath: process.env.PUPPETEER_EXECUTABLE_PATH,
headless: 'new',
},
server: {
command: 'yarn visual-testing-app:preview',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jest.setTimeout(20000);

beforeEach(async () => {
browser = await puppeteer.launch({
headless: 'new',
slowMo: 10, // Launching the browser in slow motion is necessary due to race conditions. Otherwise browser closes prematurely and tests fail.
});
page = await browser.newPage();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jest.setTimeout(20000);

beforeEach(async () => {
browser = await puppeteer.launch({
headless: 'new',
slowMo: 10, // Launching the browser in slow motion is necessary due to race conditions. Otherwise browser closes prematurely and tests fail.
});
page = await browser.newPage();
Expand Down

1 comment on commit 4a78bb2

@vercel
Copy link

@vercel vercel bot commented on 4a78bb2 Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.