Skip to content

Commit

Permalink
update code to check the user on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag11 committed Jan 29, 2024
1 parent 0e5578c commit 65f9f21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/admin-tests/gatherpress-front-end-login.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ test.describe('e2e test for login to front end guests', () => {
}) => {
await login({ page, username: 'testuser1' });

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

Check failure on line 20 in test/e2e/admin-tests/gatherpress-front-end-login.spec.js

View workflow job for this annotation

GitHub Actions / JavaScript Coding Standards

Insert `↹`
.isVisible();

Check failure on line 21 in test/e2e/admin-tests/gatherpress-front-end-login.spec.js

View workflow job for this annotation

GitHub Actions / JavaScript Coding Standards

Insert `↹`

await page.getByRole('link', { name: 'Events', exact: true }).click();
await page.screenshot({ path: 'event-page.png' });

Expand Down

0 comments on commit 65f9f21

Please sign in to comment.