Skip to content

Commit

Permalink
Changing the before all of login
Browse files Browse the repository at this point in the history
  • Loading branch information
lauratbg committed Apr 26, 2024
1 parent 6b9bd36 commit ca4ff41
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 12 deletions.
24 changes: 12 additions & 12 deletions webapp/e2e/steps/login.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ const password = "testUserPassword"

defineFeature(feature, test => {

beforeAll(async () => {
browser = await puppeteer.launch({
headless: "new",
slowMo: 40,
defaultViewport: { width: 1920, height: 1080 },
args: ['--window-size=1920,1080']
});

page = await browser.newPage();
setDefaultOptions({ timeout: 30000 });

await register(page, email, username, password);
beforeAll(async () => {
browser = await puppeteer.launch({
headless: "new",
slowMo: 20,
defaultViewport: { width: 1920, height: 1080 },
args: ['--window-size=1920,1080']
});

page = await browser.newPage();
setDefaultOptions({ timeout: 10000 });
await register(page, email, username, password);

},60000);

beforeEach(async () => {
await logout(page);
Expand Down
56 changes: 56 additions & 0 deletions webapp/webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions webapp/webapp/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"webapp": "file:.."
}
}

0 comments on commit ca4ff41

Please sign in to comment.