From f7899a9b023e9094b108cf41bb115b28882dbf6c Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Mon, 3 Aug 2026 22:24:01 +0300 Subject: [PATCH] align confirmation dashboard test --- frontend/website/cypress/e2e/confirm-email.cy.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/website/cypress/e2e/confirm-email.cy.ts b/frontend/website/cypress/e2e/confirm-email.cy.ts index 075909d..deabca6 100644 --- a/frontend/website/cypress/e2e/confirm-email.cy.ts +++ b/frontend/website/cypress/e2e/confirm-email.cy.ts @@ -9,6 +9,10 @@ describe('email confirmation', () => { statusCode: 401, body: { error: 'unauthenticated' }, }).as('me') + cy.intercept('GET', '**/api/sets', { + statusCode: 200, + body: { sets: [] }, + }) }) it('chooses a password, confirms the account, and opens the dashboard', () => { @@ -31,7 +35,7 @@ describe('email confirmation', () => { cy.wait('@confirmEmail') cy.location('pathname').should('equal', '/dashboard') - cy.get('h1').should('have.text', 'Your next step starts here.') + cy.get('h1').should('have.text', 'Available sets') }) it('validates password length and confirmation before submitting', () => {