Skip to content

Commit

Permalink
All in headless
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Apr 30, 2024
1 parent 3153c2b commit d132417
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions webapp/e2e/steps/basicButtons-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ defineFeature(feature, test => {
beforeAll(async () => {
console.log('Starting Puppeteer basicButton... githubactyions.env', process.env.GITHUB_ACTIONS);
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/dailyQuestionMode-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ defineFeature(feature, test => {
console.log('Starting Puppeteer dailyMode... githubactyions.env', process.env.GITHUB_ACTIONS);

browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/gameBasicMode-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ defineFeature(feature, test => {
console.log('Starting Puppeteer gameBasic... githubactyions.env', process.env.GITHUB_ACTIONS);

browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/login-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ defineFeature(feature, test => {
console.log('Starting Puppeteer login-form... githubactyions.env', process.env.GITHUB_ACTIONS);

browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 50 });
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 50 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })
Expand Down
6 changes: 3 additions & 3 deletions webapp/e2e/steps/multiplayerMode-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ defineFeature(feature, test => {
console.log('Starting Puppeteer... githubactyions.env', process.env.GITHUB_ACTIONS);

browserHost = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 20 });
pageHost = await browserHost.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })

browserUser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
: await puppeteer.launch({ headless: 'new', slowMo: 20 });
pageUser = await browserUser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })
Expand Down
4 changes: 2 additions & 2 deletions webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ defineFeature(feature, test => {
console.log('Starting Puppeteer... githubactyions.env', process.env.GITHUB_ACTIONS);

browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 20 });
? await puppeteer.launch({ headless: 'new'})
: await puppeteer.launch({ headless: 'new', slowMo: 20 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 180000 })
Expand Down

0 comments on commit d132417

Please sign in to comment.