From d1324171e005259ce6fad916fd6f5a1ae82c0413 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 30 Apr 2024 22:19:45 +0200 Subject: [PATCH] All in headless --- webapp/e2e/steps/basicButtons-form.steps.js | 4 ++-- webapp/e2e/steps/dailyQuestionMode-form.steps.js | 4 ++-- webapp/e2e/steps/gameBasicMode-form.steps.js | 4 ++-- webapp/e2e/steps/login-form.steps.js | 4 ++-- webapp/e2e/steps/multiplayerMode-form.steps.js | 6 +++--- webapp/e2e/steps/register-form.steps.js | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/webapp/e2e/steps/basicButtons-form.steps.js b/webapp/e2e/steps/basicButtons-form.steps.js index e691eb2..c3aab3c 100644 --- a/webapp/e2e/steps/basicButtons-form.steps.js +++ b/webapp/e2e/steps/basicButtons-form.steps.js @@ -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 }) diff --git a/webapp/e2e/steps/dailyQuestionMode-form.steps.js b/webapp/e2e/steps/dailyQuestionMode-form.steps.js index ae959d5..b0aae8a 100644 --- a/webapp/e2e/steps/dailyQuestionMode-form.steps.js +++ b/webapp/e2e/steps/dailyQuestionMode-form.steps.js @@ -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 }) diff --git a/webapp/e2e/steps/gameBasicMode-form.steps.js b/webapp/e2e/steps/gameBasicMode-form.steps.js index 7690f2f..9991fd9 100644 --- a/webapp/e2e/steps/gameBasicMode-form.steps.js +++ b/webapp/e2e/steps/gameBasicMode-form.steps.js @@ -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 }) diff --git a/webapp/e2e/steps/login-form.steps.js b/webapp/e2e/steps/login-form.steps.js index 7bb5590..9ed3b56 100644 --- a/webapp/e2e/steps/login-form.steps.js +++ b/webapp/e2e/steps/login-form.steps.js @@ -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 }) diff --git a/webapp/e2e/steps/multiplayerMode-form.steps.js b/webapp/e2e/steps/multiplayerMode-form.steps.js index 23a5a97..e3256f5 100644 --- a/webapp/e2e/steps/multiplayerMode-form.steps.js +++ b/webapp/e2e/steps/multiplayerMode-form.steps.js @@ -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 }) diff --git a/webapp/e2e/steps/register-form.steps.js b/webapp/e2e/steps/register-form.steps.js index 3c27b28..c74aea0 100644 --- a/webapp/e2e/steps/register-form.steps.js +++ b/webapp/e2e/steps/register-form.steps.js @@ -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 })