Skip to content
Snippets Groups Projects
Commit 00c54c00 authored by heikkkk's avatar heikkkk
Browse files

test: add e2e test for redirecting to user page

parent b053068d
No related branches found
No related tags found
1 merge request!72Test/e2e
This commit is part of merge request !72. Comments created here will be created in the context of that merge request.
...@@ -42,4 +42,15 @@ describe("Leaderboard Test", () => { ...@@ -42,4 +42,15 @@ describe("Leaderboard Test", () => {
.should('have.length', 3); .should('have.length', 3);
}) })
it('redirects to profile-page when clicking user', () => {
cy.get('[data-cy="total-points-board"]')
.find('[data-cy="top-leaderboard-tablerow"]')
.first()
.within(() => {
cy.get('td:nth-child(2)').click();
})
cy.wait(1000);
cy.url().should('include', '/profile/15');
})
}) })
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment