-
Notifications
You must be signed in to change notification settings - Fork 23
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
ec921eb
commit c090d13
Showing
31 changed files
with
149 additions
and
62 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 |
---|---|---|
|
@@ -57,61 +57,17 @@ jobs: | |
- update_personal_information | ||
- update_totp_application | ||
runs-on: ubuntu-22.04 | ||
services: | ||
standard-client: | ||
image: ghcr.io/numerique-gouv/proconnect-test-client | ||
ports: | ||
- 4000:3000 | ||
env: | ||
SITE_TITLE: standard-client | ||
HOST: http://localhost:4000 | ||
PC_CLIENT_ID: standard_client_id | ||
PC_CLIENT_SECRET: standard_client_secret | ||
PC_PROVIDER: ${{ env.MONCOMPTEPRO_HOST }} | ||
PC_SCOPES: openid email profile organization | ||
ACR_VALUE_FOR_2FA: https://proconnect.gouv.fr/assurance/consistency-checked-2fa | ||
STYLESHEET_URL: "" | ||
proconnect-federation-client: | ||
image: ghcr.io/numerique-gouv/proconnect-test-client | ||
ports: | ||
- 4001:3000 | ||
env: | ||
SITE_TITLE: proconnect-federation-client | ||
HOST: http://localhost:4001 | ||
PC_CLIENT_ID: proconnect_federation_client_id | ||
PC_CLIENT_SECRET: proconnect_federation_client_secret | ||
PC_PROVIDER: ${{ env.MONCOMPTEPRO_HOST }} | ||
PC_SCOPES: openid uid given_name usual_name email siren siret organizational_unit belonging_population phone chorusdt is_service_public is_public_service | ||
PC_ID_TOKEN_SIGNED_RESPONSE_ALG: ES256 | ||
PC_USERINFO_SIGNED_RESPONSE_ALG: ES256 | ||
STYLESHEET_URL: "" | ||
LOGIN_HINT: [email protected] | ||
ACR_VALUES: eidas1 | ||
redis: | ||
image: redis:7.2 | ||
ports: | ||
- 6379:6379 | ||
postgres: | ||
image: postgres:15.8 | ||
env: | ||
POSTGRES_USER: ${{ env.PGUSER }} | ||
POSTGRES_PASSWORD: ${{ env.PGPASSWORD }} | ||
POSTGRES_DB: ${{ env.PGDATABASE }} | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: docker compose up --build --detach maildev | ||
- run: docker compose up --build --detach | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: "npm" | ||
node-version-file: package.json | ||
- run: npm ci --include=dev | ||
- run: npm run migrate up | ||
- run: npm run fixtures:load-ci -- cypress/e2e/${{ matrix.e2e_test }}/fixtures.sql | ||
- run: npm run update-organization-info -- 500 | ||
- name: Cypress run | ||
uses: cypress-io/[email protected] | ||
with: | ||
|
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
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
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 |
---|---|---|
|
@@ -9,6 +9,10 @@ describe("join organizations", () => { | |
); | ||
}); | ||
|
||
it("should seed the database once", function () { | ||
cy.seed(); | ||
}); | ||
|
||
it("join collectivité territoriale with official contact domain", function () { | ||
cy.visit("/users/join-organization"); | ||
cy.login("[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
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,6 +11,10 @@ describe("join organizations", () => { | |
); | ||
}); | ||
|
||
it("should seed the database once", function () { | ||
cy.seed(); | ||
}); | ||
|
||
it("join suggested organisation", function () { | ||
cy.visit("/"); | ||
cy.login("[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 |
---|---|---|
|
@@ -13,6 +13,10 @@ describe("join organizations", () => { | |
); | ||
}); | ||
|
||
it("should seed the database once", function () { | ||
cy.seed(); | ||
}); | ||
|
||
it("join suggested organisation", function () { | ||
cy.visit("/"); | ||
cy.login("[email protected]"); | ||
|
4 changes: 4 additions & 0 deletions
4
cypress/e2e/join_with_code_sent_to_official_contact_email/index.cy.ts
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// | ||
|
||
describe("join organizations", () => { | ||
it("should seed the database once", function () { | ||
cy.seed(); | ||
}); | ||
|
||
it("join collectivité territoriale with code send to official contact email", function () { | ||
cy.visit("/users/join-organization"); | ||
cy.login("[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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// | ||
|
||
describe("join organizations", () => { | ||
it("should seed the database once", function () { | ||
cy.seed(); | ||
}); | ||
|
||
it("join collectivité territoriale with code send to official contact email", function () { | ||
cy.visit("/users/join-organization"); | ||
cy.login("[email protected]"); | ||
|
@@ -16,22 +20,6 @@ describe("join organizations", () => { | |
"[email protected]", | ||
); | ||
|
||
// cy.maildevGetMessageBySubject( | ||
// "[ProConnect] Authentifier un email sur ProConnect", | ||
// ).then((email) => { | ||
// cy.maildevVisitMessageById(email.id); | ||
// cy.get("em:nth-child(1)") | ||
// .invoke("text") | ||
// .then((code) => { | ||
// cy.maildevDeleteMessageById(email.id); | ||
// cy.go("back"); | ||
// cy.get('[name="official_contact_email_verification_token"]').type( | ||
// code, | ||
// ); | ||
// cy.get('[type="submit"]').click(); | ||
// }); | ||
// }); | ||
|
||
cy.maildevGetMessageBySubject( | ||
"[ProConnect] Authentifier un email sur ProConnect", | ||
) | ||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// | ||
|
||
describe("join organizations", () => { | ||
it("should seed the database once", function () { | ||
cy.seed(); | ||
}); | ||
|
||
it("join collectivité territoriale with official contact email", function () { | ||
cy.visit("/users/join-organization"); | ||
cy.login("[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
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
4 changes: 4 additions & 0 deletions
4
cypress/e2e/signin_from_proconnect_federation_client/index.cy.ts
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
4 changes: 4 additions & 0 deletions
4
cypress/e2e/signin_with_email_verification_renewal/index.cy.ts
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
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
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
Oops, something went wrong.