From c680b7e9a632d6c80b98695841533af24c7fcf15 Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Thu, 25 Apr 2024 19:37:33 +0200 Subject: [PATCH] Fixed --- webapp/e2e/steps/add-friend.steps.js | 2 +- webapp/e2e/steps/create-group.steps.js | 2 +- webapp/e2e/steps/login-form.steps.js | 2 +- webapp/e2e/steps/logout.steps.js | 2 +- webapp/e2e/steps/play-battery.steps.js | 2 +- webapp/e2e/steps/play-calculator.steps.js | 2 +- webapp/e2e/steps/play-classic.steps.js | 2 +- webapp/e2e/steps/register-form.steps.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/webapp/e2e/steps/add-friend.steps.js b/webapp/e2e/steps/add-friend.steps.js index a9d20935..8175654c 100644 --- a/webapp/e2e/steps/add-friend.steps.js +++ b/webapp/e2e/steps/add-friend.steps.js @@ -11,7 +11,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); setDefaultOptions({ timeout: 10000 }); diff --git a/webapp/e2e/steps/create-group.steps.js b/webapp/e2e/steps/create-group.steps.js index 36d0e1e6..f401cb18 100644 --- a/webapp/e2e/steps/create-group.steps.js +++ b/webapp/e2e/steps/create-group.steps.js @@ -11,7 +11,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); setDefaultOptions({ timeout: 10000 }); diff --git a/webapp/e2e/steps/login-form.steps.js b/webapp/e2e/steps/login-form.steps.js index eebcabf5..fb556324 100644 --- a/webapp/e2e/steps/login-form.steps.js +++ b/webapp/e2e/steps/login-form.steps.js @@ -10,7 +10,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); //Way of setting up the timeout diff --git a/webapp/e2e/steps/logout.steps.js b/webapp/e2e/steps/logout.steps.js index 0ddcd683..da41b353 100644 --- a/webapp/e2e/steps/logout.steps.js +++ b/webapp/e2e/steps/logout.steps.js @@ -10,7 +10,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); //Way of setting up the timeout diff --git a/webapp/e2e/steps/play-battery.steps.js b/webapp/e2e/steps/play-battery.steps.js index 99625401..e1645087 100644 --- a/webapp/e2e/steps/play-battery.steps.js +++ b/webapp/e2e/steps/play-battery.steps.js @@ -11,7 +11,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); setDefaultOptions({ timeout: 10000 }); diff --git a/webapp/e2e/steps/play-calculator.steps.js b/webapp/e2e/steps/play-calculator.steps.js index 7c53eb30..6b6bb2c7 100644 --- a/webapp/e2e/steps/play-calculator.steps.js +++ b/webapp/e2e/steps/play-calculator.steps.js @@ -11,7 +11,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); setDefaultOptions({ timeout: 10000 }); diff --git a/webapp/e2e/steps/play-classic.steps.js b/webapp/e2e/steps/play-classic.steps.js index b02704e4..e73a61dd 100644 --- a/webapp/e2e/steps/play-classic.steps.js +++ b/webapp/e2e/steps/play-classic.steps.js @@ -11,7 +11,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 10 }); page = await browser.newPage(); setDefaultOptions({ timeout: 10000 }); diff --git a/webapp/e2e/steps/register-form.steps.js b/webapp/e2e/steps/register-form.steps.js index e49e1948..ba2d80c0 100644 --- a/webapp/e2e/steps/register-form.steps.js +++ b/webapp/e2e/steps/register-form.steps.js @@ -10,7 +10,7 @@ let browser; defineFeature(feature, (test) => { beforeAll(async () => { browser = process.env.GITHUB_ACTIONS - ? await puppeteer.launch() + ? await puppeteer.launch({ headless: 'new', slowMo: 100 }) : await puppeteer.launch({ headless: 'new', slowMo: 100 }); page = await browser.newPage(); //Way of setting up the timeout