-
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.
Merge pull request #617 from numerique-gouv/fix-login-hint
Fix login hint
- Loading branch information
Showing
7 changed files
with
47 additions
and
7 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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
describe("should suggest valid email address", () => { | ||
it("should sign-in", function () { | ||
cy.visit(`http://localhost:4001`); | ||
cy.get("button.moncomptepro-button").click(); | ||
|
||
cy.get('[name="login"]').should("have.value", "[email protected]"); | ||
cy.contains("Adresse email invalide."); | ||
|
||
cy.get('[name="login"]').type("{selectall}{del}[email protected]"); | ||
cy.get('[action="/users/start-sign-in"] [type="submit"]').click(); | ||
|
||
cy.get('[name="login"]').should("have.value", "[email protected]"); | ||
cy.contains("Adresse email invalide."); | ||
|
||
cy.get("#did-you-mean-link").click(); | ||
cy.get('[action="/users/start-sign-in"] [type="submit"]').click(); | ||
|
||
cy.contains("Choisir votre mot de passe"); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
DO_NOT_CHECK_EMAIL_DELIVERABILITY=False |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
INSERT INTO oidc_clients | ||
(client_name, client_id, client_secret, redirect_uris, | ||
post_logout_redirect_uris, scope, client_uri, client_description, | ||
userinfo_signed_response_alg, id_token_signed_response_alg, | ||
authorization_signed_response_alg, introspection_signed_response_alg) | ||
VALUES | ||
( | ||
'AgentConnect', | ||
'agentconnect_client_id', | ||
'agentconnect_client_secret', | ||
ARRAY [ | ||
'http://localhost:4001/login-callback' | ||
], | ||
ARRAY []::varchar[], | ||
'openid uid given_name usual_name email phone siret is_service_public is_public_service', | ||
'http://localhost:4001/', | ||
'Dispositif d’identification des agents de la fonction publique.', | ||
'ES256', 'ES256', 'ES256', 'ES256'); |
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
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