-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(candidate): fixed candidacy submission cypress tests
- Loading branch information
Showing
3 changed files
with
129 additions
and
135 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
117 changes: 55 additions & 62 deletions
117
packages/reva-candidate/cypress/fixtures/candidate2-submitted.json
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,68 +1,61 @@ | ||
{ | ||
"data": { | ||
"candidateLogged": { | ||
"tokens": { | ||
"accessToken": "abc", | ||
"refreshToken": "def", | ||
"idToken": "ghi" | ||
}, | ||
"candidate": { | ||
"firstname": "John", | ||
"lastname": "Doe", | ||
"email": "[email protected]", | ||
"phone": "06-01-02-03-04", | ||
"candidacy": { | ||
"id": "c2", | ||
"organism": { | ||
"id": "o1", | ||
"label": "Accompagnateur 1", | ||
"address": "1 rue de l'exemple", | ||
"zip": "75000", | ||
"city": "Paris", | ||
"contactAdministrativeEmail": "[email protected]" | ||
}, | ||
"createdAt": 1664376421912, | ||
"certification": { | ||
"id": "c1", | ||
"label": "Titre 1", | ||
"summary": "résumé 1", | ||
"codeRncp": "34691", | ||
"status": "AVAILABLE" | ||
}, | ||
"candidate_getCandidateWithCandidacy": { | ||
"firstname": "John", | ||
"lastname": "Doe", | ||
"email": "[email protected]", | ||
"phone": "06-01-02-03-04", | ||
"candidacy": { | ||
"id": "c2", | ||
"organism": { | ||
"id": "o1", | ||
"label": "Accompagnateur 1", | ||
"address": "1 rue de l'exemple", | ||
"zip": "75000", | ||
"city": "Paris", | ||
"contactAdministrativeEmail": "[email protected]" | ||
}, | ||
"createdAt": 1664376421912, | ||
"certification": { | ||
"id": "c1", | ||
"label": "Titre 1", | ||
"summary": "résumé 1", | ||
"codeRncp": "34691", | ||
"status": "AVAILABLE" | ||
}, | ||
|
||
"experiences": [ | ||
{ | ||
"id": "e1", | ||
"title": "Experience 1", | ||
"startedAt": 1580428800000, | ||
"duration": "unknown", | ||
"description": "description 1" | ||
} | ||
], | ||
"goals": [ | ||
{ | ||
"id": "goal1" | ||
} | ||
], | ||
"candidacyStatuses": [ | ||
{ | ||
"status": "PROJET", | ||
"isActive": false | ||
}, | ||
{ | ||
"status": "VALIDATION", | ||
"isActive": true | ||
} | ||
], | ||
"appointmentCount": 0, | ||
"certificateSkills": "Blocs de compétences métier", | ||
"otherTraining": null, | ||
"individualHourCount": null, | ||
"collectiveHourCount": null, | ||
"additionalHourCount": null, | ||
"basicSkills": [], | ||
"mandatoryTrainings": [] | ||
} | ||
"experiences": [ | ||
{ | ||
"id": "e1", | ||
"title": "Experience 1", | ||
"startedAt": 1580428800000, | ||
"duration": "unknown", | ||
"description": "description 1" | ||
} | ||
], | ||
"goals": [ | ||
{ | ||
"id": "goal1" | ||
} | ||
], | ||
"candidacyStatuses": [ | ||
{ | ||
"status": "PROJET", | ||
"isActive": false | ||
}, | ||
{ | ||
"status": "VALIDATION", | ||
"isActive": true | ||
} | ||
], | ||
"appointmentCount": 0, | ||
"certificateSkills": "Blocs de compétences métier", | ||
"otherTraining": null, | ||
"individualHourCount": null, | ||
"collectiveHourCount": null, | ||
"additionalHourCount": null, | ||
"basicSkills": [], | ||
"mandatoryTrainings": [] | ||
} | ||
} | ||
} | ||
|
123 changes: 58 additions & 65 deletions
123
packages/reva-candidate/cypress/fixtures/candidate2-taken-over.json
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,72 +1,65 @@ | ||
{ | ||
"data": { | ||
"candidateLogged": { | ||
"tokens": { | ||
"accessToken": "abc", | ||
"refreshToken": "def", | ||
"idToken": "ghi" | ||
}, | ||
"candidate": { | ||
"firstname": "John", | ||
"lastname": "Doe", | ||
"email": "[email protected]", | ||
"phone": "06-01-02-03-04", | ||
"candidacy": { | ||
"id": "c2", | ||
"organism": { | ||
"id": "o1", | ||
"label": "Accompagnateur 1", | ||
"address": "1 rue de l'exemple", | ||
"zip": "75000", | ||
"city": "Paris", | ||
"contactAdministrativeEmail": "[email protected]" | ||
"candidate_getCandidateWithCandidacy": { | ||
"firstname": "John", | ||
"lastname": "Doe", | ||
"email": "[email protected]", | ||
"phone": "06-01-02-03-04", | ||
"candidacy": { | ||
"id": "c2", | ||
"organism": { | ||
"id": "o1", | ||
"label": "Accompagnateur 1", | ||
"address": "1 rue de l'exemple", | ||
"zip": "75000", | ||
"city": "Paris", | ||
"contactAdministrativeEmail": "[email protected]" | ||
}, | ||
"createdAt": 1664376421912, | ||
"certification": { | ||
"id": "c1", | ||
"label": "Titre 1", | ||
"summary": "résumé 1", | ||
"codeRncp": "34691", | ||
"status": "AVAILABLE" | ||
}, | ||
|
||
"experiences": [ | ||
{ | ||
"id": "e1", | ||
"title": "Experience 1", | ||
"startedAt": 1580428800000, | ||
"duration": "unknown", | ||
"description": "description 1" | ||
} | ||
], | ||
"goals": [ | ||
{ | ||
"id": "goal1" | ||
} | ||
], | ||
"candidacyStatuses": [ | ||
{ | ||
"status": "PROJET", | ||
"isActive": false | ||
}, | ||
"createdAt": 1664376421912, | ||
"certification": { | ||
"id": "c1", | ||
"label": "Titre 1", | ||
"summary": "résumé 1", | ||
"codeRncp": "34691", | ||
"status": "AVAILABLE" | ||
{ | ||
"status": "VALIDATION", | ||
"isActive": false | ||
}, | ||
|
||
"experiences": [ | ||
{ | ||
"id": "e1", | ||
"title": "Experience 1", | ||
"startedAt": 1580428800000, | ||
"duration": "unknown", | ||
"description": "description 1" | ||
} | ||
], | ||
"goals": [ | ||
{ | ||
"id": "goal1" | ||
} | ||
], | ||
"candidacyStatuses": [ | ||
{ | ||
"status": "PROJET", | ||
"isActive": false | ||
}, | ||
{ | ||
"status": "VALIDATION", | ||
"isActive": false | ||
}, | ||
{ | ||
"status": "PRISE_EN_CHARGE", | ||
"isActive": true | ||
} | ||
], | ||
"appointmentCount": 0, | ||
"certificateSkills": "Blocs de compétences métier", | ||
"otherTraining": null, | ||
"individualHourCount": null, | ||
"collectiveHourCount": null, | ||
"additionalHourCount": null, | ||
"basicSkills": [], | ||
"mandatoryTrainings": [] | ||
} | ||
{ | ||
"status": "PRISE_EN_CHARGE", | ||
"isActive": true | ||
} | ||
], | ||
"appointmentCount": 0, | ||
"certificateSkills": "Blocs de compétences métier", | ||
"otherTraining": null, | ||
"individualHourCount": null, | ||
"collectiveHourCount": null, | ||
"additionalHourCount": null, | ||
"basicSkills": [], | ||
"mandatoryTrainings": [] | ||
} | ||
} | ||
} | ||
|