Skip to content

Commit

Permalink
Trying to pass login test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauratbg committed Apr 24, 2024
1 parent ef42830 commit 9ea0ea5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/e2e/steps/login.steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ test('Successful login', ({ given, when, then }) => {
});

when('I enter valid credentials', async () => {
await page.type('input[type="text"]', 'ltbg');
await page.type('input[type="password"]', 'ltbg');
await page.type('input[type="text"]', 'username');
await page.type('input[type="password"]', 'password');
await page.click('button[type="submit"]');
});

then('I should be redirected to the menu', async () => {
await page.waitForNavigation({ waitUntil: 'domcontentloaded' });
await page.waitForSelector('.divMenu');
expect(page.url()).toContain('/menu');
});
}, 60000);
Expand Down

0 comments on commit 9ea0ea5

Please sign in to comment.