Skip to content

Commit

Permalink
fix(candidate): removed old test based on the TYPE_ACCOMPAGNEMENT_FEA…
Browse files Browse the repository at this point in the history
…TURE_FLAG
  • Loading branch information
agarbe committed Nov 14, 2024
1 parent 155f952 commit 481e2ef
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
import { stubMutation, stubQuery } from "../../utils/graphql";

context("Type accompagnement", () => {
it("should not show the type accompagnement in the timeline when the type_accompagnement is accompagne and the feature is inactive", function () {
cy.intercept("POST", "/api/graphql", (req) => {
stubMutation(req, "candidate_login", "candidate_login.json");
stubQuery(req, "candidate_getCandidateWithCandidacy", "candidate1.json");
stubQuery(req, "activeFeaturesForConnectedUser", "features.json");
});
cy.login();
cy.wait("@candidate_login");
cy.wait("@candidate_getCandidateWithCandidacy");
cy.wait("@activeFeaturesForConnectedUser");

cy.get('[data-test="type-accompagnement-timeline-element"]').should(
"not.exist",
);
});

it("should show the type accompagnement in the timeline when the type_accompagnement is accompagne and the feature is active", function () {
cy.intercept("POST", "/api/graphql", (req) => {
stubMutation(req, "candidate_login", "candidate_login.json");
Expand Down

0 comments on commit 481e2ef

Please sign in to comment.