-
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.
* fix: update workflows and command.js * fix: remove useless comments validation.spec.js * fix: add retries for cypress test * fix: merge 2 test * fix: add wait * fix: change retrie test * fix: use .then * fix: fix.then * fix: add focus_out * feat: add some condition to validation dpo * fix: remove condition and add class to selector * fix: replace input.DPOname by input[type=text] * feat: full rewrite validation test code * feat: change react time and selector * feat: change selector * feat: add more wait, and change order execute validation * feat: add separation for validation and refuse pia Co-authored-by: Timothee-Picard <timothee@atnos.com> Co-authored-by: Sylvain Pastor <sylvain@pop-os.localdomain>
- Loading branch information
1 parent
45af442
commit 9d3586d
Showing
5 changed files
with
132 additions
and
125 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
37 changes: 37 additions & 0 deletions
37
cypress/integration/pia-angular/dpo_and_pia_refuse.spec.js
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,37 @@ | ||
describe("Validation", () => { | ||
before(() => { | ||
cy.init(); | ||
}); | ||
|
||
beforeEach(() => { | ||
// Skip tutorial | ||
cy.disable_onboarding(); | ||
}); | ||
|
||
context("Prepare data with import", () => { | ||
// TODO: Import pia with .json | ||
it("File Upload using cypress-file-upload package", () => { | ||
cy.import_pia(); | ||
}); | ||
}); | ||
|
||
context("Refuse or ask pia signature", () => { | ||
it( | ||
"should refuse pia", | ||
{ | ||
retries: { | ||
runMode: 2, | ||
openMode: 2 | ||
} | ||
}, | ||
() => { | ||
cy.get_current_pia_id(id => { | ||
cy.go_edited_pia(id, 4, 3).then(() => { | ||
cy.validateDPO(); | ||
}); | ||
cy.refusePia(); | ||
}); | ||
} | ||
); | ||
}); | ||
}); |
39 changes: 39 additions & 0 deletions
39
cypress/integration/pia-angular/dpo_and_pia_validation.spec.js
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,39 @@ | ||
describe("Validation", () => { | ||
before(() => { | ||
cy.init(); | ||
}); | ||
|
||
beforeEach(() => { | ||
// Skip tutorial | ||
cy.disable_onboarding(); | ||
}); | ||
|
||
context("Prepare data with import", () => { | ||
// TODO: Import pia with .json | ||
it("File Upload using cypress-file-upload package", () => { | ||
cy.import_pia(); | ||
}); | ||
}); | ||
|
||
context("Avis du DPD et des personnes concernées", () => { | ||
it("should complete DPD", () => { | ||
cy.get_current_pia_id(id => { | ||
cy.go_edited_pia(id, 4, 3).then(() => { | ||
cy.validateDPO(); | ||
}); | ||
}); | ||
}); | ||
it("should valid pia", () => { | ||
cy.validatePia(); | ||
// cy.closeValidationEvaluationModal(); | ||
}); | ||
it("should show report", () => { | ||
cy.closeValidationEvaluationModal(); | ||
cy.get('.pia-previewBlock[href="#/preview/2"]').click(); | ||
|
||
cy.url().should("include", "/preview/2"); | ||
|
||
cy.get(".pia-fullPreviewBlock-data").should("exist"); | ||
}); | ||
}); | ||
}); |
This file was deleted.
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