-
Notifications
You must be signed in to change notification settings - Fork 273
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 #580 from LINCnil/pia-v3-1_authentication_system
Pia v3 1 authentication system
- Loading branch information
Showing
172 changed files
with
11,959 additions
and
5,701 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,56 @@ | ||
describe("Client-Server", () => { | ||
before(() => { | ||
// Clear datas | ||
cy.init(); | ||
}); | ||
|
||
beforeEach(() => { | ||
// Skip tutorial | ||
cy.disable_onboarding(); | ||
}); | ||
|
||
/** | ||
* Go to Entries page pia-navigationBlock-withsub pia-navigationBlock-dropdown | ||
*/ | ||
context("Start", () => { | ||
it("Go on serveur URL configuration", () => { | ||
cy.visit("/"); | ||
cy.get(".pia-navigationBlock-dropdown") | ||
.eq(0) | ||
.trigger("mouseover"); | ||
cy.wait(500); | ||
cy.get(".ng-untouched fieldset a") | ||
.eq(0) | ||
.click({ force: true }); | ||
cy.wait(500); | ||
}); | ||
}); | ||
|
||
context("Write URL ID and SECRET", () => { | ||
it("Write URL", () => { | ||
cy.get("#server_url").type(Cypress.env("URL")); | ||
}); | ||
it("Write ID", () => { | ||
cy.get("#client_id").type(Cypress.env("ID")); | ||
}); | ||
it("Write SECRET", () => { | ||
cy.get("#client_secret").type(Cypress.env("SECRET")); | ||
}); | ||
}); | ||
|
||
context("Redirection", () => { | ||
it("Click on save", () => { | ||
cy.get(".btn-green").click(); | ||
cy.wait(5000); | ||
cy.get("button[type=button]") | ||
.eq(1) | ||
.click(); | ||
|
||
cy.url().should("include", "/"); | ||
}); | ||
|
||
it("Verify URL", () => { | ||
cy.url().should("include", "/"); | ||
}); | ||
}); | ||
}); |
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
Binary file removed
BIN
-169 KB
...n -- Avis du DPD et des personnes concernées -- should show report (failed).png
Binary file not shown.
Binary file removed
BIN
-141 KB
...ion -- Avis du DPD et des personnes concernées -- should valid pia (failed).png
Binary file not shown.
Oops, something went wrong.