Skip to content

Commit 7975479

Browse files
committed
fix(candidate): missing stub query activeFeaturesForConnectedUser in e2e tests
1 parent a626520 commit 7975479

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/reva-candidate/cypress/e2e/accompagnement-autonome/dossier-de-faisabilite.cy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { stubMutation, stubQuery } from "../../utils/graphql";
22

33
context("Accompagnement autonome - Dossier de faisabilité", () => {
4+
beforeEach(() => {
5+
cy.intercept("POST", "/api/graphql", (req) => {
6+
stubQuery(req, "activeFeaturesForConnectedUser", "features.json");
7+
});
8+
});
9+
410
it("should show an active and editable feasibility element in the timeline when the type_accompagnement is autonome and the candidacy status is 'PROJECT'", function () {
511
cy.fixture("candidate1-certification-titre-2-selected.json").then(
612
(candidate) => {

packages/reva-candidate/cypress/e2e/accompagnement-autonome/dossier-de-validation.cy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { stubMutation, stubQuery } from "../../utils/graphql";
22

33
context("Accompagnement autonome - Dossier de validation", () => {
4+
beforeEach(() => {
5+
cy.intercept("POST", "/api/graphql", (req) => {
6+
stubQuery(req, "activeFeaturesForConnectedUser", "features.json");
7+
});
8+
});
9+
410
context("Inactive dossier de validation", () => {
511
it("should show an inactive dossier de validation element in the timeline when the type_accompagnement is autonome and the candidacy status is 'PROJECT'", function () {
612
cy.fixture("candidate1-certification-titre-2-selected.json").then(

packages/reva-candidate/cypress/e2e/accompagnement-autonome/type-accompagnement.cy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { stubMutation, stubQuery } from "../../utils/graphql";
22

33
context("Type accompagnement", () => {
4+
beforeEach(() => {
5+
cy.intercept("POST", "/api/graphql", (req) => {
6+
stubQuery(req, "activeFeaturesForConnectedUser", "features.json");
7+
});
8+
});
9+
410
it("should show the type accompagnement in the timeline when the type_accompagnement is accompagne and the feature is active", function () {
511
cy.intercept("POST", "/api/graphql", (req) => {
612
stubMutation(req, "candidate_login", "candidate_login.json");

0 commit comments

Comments
 (0)