-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb152a9
commit cb11a03
Showing
3 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,9 @@ describe("join and moderation", () => { | |
cy.get('[name="siret"]').type("66204244933106"); | ||
cy.get('[type="submit"]').click(); | ||
|
||
cy.contains("Rattachement en cours"); | ||
cy.contains("Demande en cours"); | ||
cy.contains( | ||
"⏱️ Notre équipe étudie votre demande de rattachement à l’organisation Bnp paribas - Bnp pariba", | ||
"Nous vérifions votre lien à l’organisation, vous recevrez un email de confirmation dès que votre compte sera validé.", | ||
); | ||
cy.contains("avec l’adresse email [email protected]."); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ describe("join organizations", () => { | |
cy.get('[type="submit"]').contains("Continuer avec cet email").click(); | ||
|
||
cy.contains( | ||
"Notre équipe étudie votre demande de rattachement à l’organisation Totalenergies se avec l’adresse email [email protected].", | ||
"Nous vérifions votre lien à l’organisation, vous recevrez un email de confirmation dès que votre compte sera validé.", | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,28 +36,25 @@ describe("join organizations", () => { | |
|
||
// Check redirection to moderation block page | ||
cy.contains( | ||
"Notre équipe étudie votre demande de rattachement à l’organisation Direction interministerielle du numerique (DINUM) avec l’adresse email [email protected]", | ||
"Nous vérifions votre lien à l’organisation, vous recevrez un email de confirmation dès que votre compte sera validé.", | ||
); | ||
|
||
// Try to change org | ||
cy.get('a[href^="/users/edit-moderation"]') | ||
.contains("J’ai fait une erreur dans ma demande") | ||
.click(); | ||
cy.get('[action^="/users/cancel-moderation-and-redirect-to-join-org/"]') | ||
.contains("Sélectionner une organisation différente") | ||
.click(); | ||
cy.get( | ||
'button[aria-label="Corriger l\'organisation de rattachement"]', | ||
).click(); | ||
|
||
cy.url().should("include", "users/join-organization"); | ||
|
||
cy.get('[name="siret"]').type("13002526500013"); | ||
cy.get('[type="submit"]').click(); | ||
cy.contains("Notre équipe étudie votre demande"); | ||
cy.contains("Demande en cours"); | ||
|
||
// Try to change email | ||
cy.get('a[href^="/users/edit-moderation"]') | ||
.contains("J’ai fait une erreur dans ma demande") | ||
.click(); | ||
cy.get('[action^="/users/cancel-moderation-and-redirect-to-sign-in/"]') | ||
.contains("Utiliser une autre adresse email") | ||
.click(); | ||
|
||
cy.get('button[aria-label="Corriger l\'adresse email"]').click(); | ||
|
||
cy.url().should("include", "/users/start-sign-in"); | ||
cy.contains("S’inscrire ou se connecter"); | ||
}); | ||
}); |