diff --git a/cypress/integration/1-register/register.spec.ts b/cypress/integration/1-register/register.spec.ts index 3d710cd965b..2bbc23e0c55 100644 --- a/cypress/integration/1-register/register.spec.ts +++ b/cypress/integration/1-register/register.spec.ts @@ -65,6 +65,8 @@ describe("Registration", () => { cy.startMeasuring("from-submit-to-home"); cy.get(".mx_InteractiveAuthEntryComponents_termsSubmit").click(); + cy.get(".mx_UseCaseSelection_skip .mx_AccessibleButton").click(); + cy.url().should('contain', '/#/home'); cy.stopMeasuring("from-submit-to-home"); diff --git a/test/end-to-end-tests/src/usecases/signup.ts b/test/end-to-end-tests/src/usecases/signup.ts index 86d27205356..5099d7584e1 100644 --- a/test/end-to-end-tests/src/usecases/signup.ts +++ b/test/end-to-end-tests/src/usecases/signup.ts @@ -77,6 +77,10 @@ export async function signup( const acceptButton = await session.query('.mx_InteractiveAuthEntryComponents_termsSubmit'); await acceptButton.click(); + //now click the 'Skip' button to skip the use case selection + const skipUseCaseButton = await session.query('.mx_UseCaseSelection_skip .mx_AccessibleButton'); + await skipUseCaseButton.click(); + //wait for registration to finish so the hash gets set //onhashchange better?