Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jul 6, 2022
1 parent 44f0055 commit 354e046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/integration/1-register/register.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
4 changes: 4 additions & 0 deletions test/end-to-end-tests/src/usecases/signup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit 354e046

Please sign in to comment.