Skip to content

Commit

Permalink
Solving warnings in the actions due to old headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Apr 12, 2024
1 parent b2b576b commit 774f159
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion webapp/e2e/steps/answerQuestion.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineFeature(feature, test => {

beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 10 });
page = await browser.newPage();
setDefaultOptions({ timeout: 120000 })
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/endGame.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineFeature(feature, test => {

beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 10 });
page = await browser.newPage();
await page.setViewport({ width: 1920, height: 1080 });
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/game-enter.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineFeature(feature, test => {

beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 10 });
page = await browser.newPage();
setDefaultOptions({ timeout: 120000 })
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/gameMenu.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineFeature(feature, test => {

beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new',slowMo:50 });
page = await browser.newPage();
setDefaultOptions({ timeout: 120000 })
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/login-correct.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineFeature(feature, test => {

beforeEach(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 10 });
page = await browser.newPage();
setDefaultOptions({ timeout: 120000 })
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineFeature(feature, test => {

beforeEach(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new',slowMo:10 });
page = await browser.newPage();
setDefaultOptions({ timeout: 120000 })
Expand Down

0 comments on commit 774f159

Please sign in to comment.