Skip to content

Commit

Permalink
Timeout changed for i18n e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UO287687 committed Apr 22, 2024
1 parent 064264b commit 9bd4c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/e2e/steps/i18n-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ defineFeature(feature, test => {
beforeAll(async () => {
browser = process.env.GITHUB_ACTIONS
? await puppeteer.launch()
: await puppeteer.launch({ headless: false, slowMo: 10 });
: await puppeteer.launch({ headless: false, slowMo: 10});
page = await browser.newPage();
//Way of setting up the timeout
setDefaultOptions({ timeout: 10000 })
setDefaultOptions({ timeout: 30000 })

await page
.goto("http://localhost:3000", {
Expand Down Expand Up @@ -62,7 +62,7 @@ defineFeature(feature, test => {
await expect(page).toClick('li', { text: 'Francese' });
await expect(page).toMatchElement("span", { text: "Jeu classique" });
});
})
}, 30000)

afterAll(async ()=>{
browser.close()
Expand Down

0 comments on commit 9bd4c72

Please sign in to comment.