diff --git a/cypress/e2e/LeaderboardView.cy.ts b/cypress/e2e/LeaderboardView.cy.ts index fcf8b661d0221949f4e20c7fc556e77a6d643f88..24edb3aa38d5236f03b093f1879f06947acaafa1 100644 --- a/cypress/e2e/LeaderboardView.cy.ts +++ b/cypress/e2e/LeaderboardView.cy.ts @@ -42,4 +42,15 @@ describe("Leaderboard Test", () => { .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