Skip to content

Commit

Permalink
fix(candidate): add in dossier de validation test a readyForJuryEstim…
Browse files Browse the repository at this point in the history
…atedAt date to fit the scenario
  • Loading branch information
ThomasDos committed Dec 19, 2024
1 parent c71ec68 commit 87a0712
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { format } from "date-fns";

import { stubMutation, stubQuery } from "../../utils/graphql";

context("Accompagnement autonome - Dossier de validation", () => {
Expand Down Expand Up @@ -50,6 +52,8 @@ context("Accompagnement autonome - Dossier de validation", () => {
"AUTONOME";
candidate.data.candidate_getCandidateWithCandidacy.candidacy.status =
"DOSSIER_FAISABILITE_RECEVABLE";
candidate.data.candidate_getCandidateWithCandidacy.candidacy.readyForJuryEstimatedAt =
format(new Date(), "yyyy-MM-dd");

cy.intercept("POST", "/api/graphql", (req) => {
stubQuery(req, "candidate_getCandidateWithCandidacy", candidate);
Expand Down

0 comments on commit 87a0712

Please sign in to comment.