Skip to content

Commit

Permalink
remove headless from puppeteer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed May 6, 2024
1 parent 2008452 commit 17e8c6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapp/e2e/steps/register-form.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defineFeature(feature, test => {
beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 100 });
: await puppeteer.launch({ slowMo: 100 });
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 10000 })
Expand All @@ -38,7 +38,8 @@ defineFeature(feature, test => {
when('I fill the data in the form and press submit', async () => {
await page.type('input[name="username"]', username);
await page.type('input[name="password"]', password);
await page.click('button', { text: 'Add User' })
await page.waitForSelector('button')
await page.click('button', { text: 'Registrarse' })
});

then('Should be inside the game route', async () => {
Expand Down

0 comments on commit 17e8c6b

Please sign in to comment.