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

Commit 354e046

Browse files
committed
Update tests
1 parent 44f0055 commit 354e046

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cypress/integration/1-register/register.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ describe("Registration", () => {
6565
cy.startMeasuring("from-submit-to-home");
6666
cy.get(".mx_InteractiveAuthEntryComponents_termsSubmit").click();
6767

68+
cy.get(".mx_UseCaseSelection_skip .mx_AccessibleButton").click();
69+
6870
cy.url().should('contain', '/#/home');
6971
cy.stopMeasuring("from-submit-to-home");
7072

test/end-to-end-tests/src/usecases/signup.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ export async function signup(
7777
const acceptButton = await session.query('.mx_InteractiveAuthEntryComponents_termsSubmit');
7878
await acceptButton.click();
7979

80+
//now click the 'Skip' button to skip the use case selection
81+
const skipUseCaseButton = await session.query('.mx_UseCaseSelection_skip .mx_AccessibleButton');
82+
await skipUseCaseButton.click();
83+
8084
//wait for registration to finish so the hash gets set
8185
//onhashchange better?
8286

0 commit comments

Comments
 (0)