Skip to content

Commit

Permalink
Merge pull request #509 from prashantabellad/e2e-add-login-assertion
Browse files Browse the repository at this point in the history
E2E test: added assertion in login flow
  • Loading branch information
mauteri authored Jan 25, 2024
2 parents 5b46b60 + db183a1 commit bf6ac75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/reusable-user-steps/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ const login = async ({
await page.getByLabel('Password', { exact: true }).fill(password);

await page.getByRole('button', { name: 'Log In' }).click();

await page
.getByRole('heading', { name: 'Dashboard', level: 1 })
.isVisible();
};

module.exports = { login };

0 comments on commit bf6ac75

Please sign in to comment.