-
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 31784ed
Showing
31 changed files
with
149 additions
and
32 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 |
---|---|---|
|
@@ -87,31 +87,17 @@ jobs: | |
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 db maildev redis | ||
|
||
- 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
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.