// Mocks the API via cy.intercept — this job doesn't run a live backend (see // .github/workflows/ci.yml); apps/api's own Mocha suite covers real API // behavior against a real database. // // The account-deletion journey (wrong password, success, cancel) moved to // account.feature — this file now only covers what's left: passive display. const authenticatedProfile = { id: 1, firstName: "Alice", lastName: "Martin", email: "alice@example.com", tokenVersion: 0, houseId: null, dietId: null, }; describe("Account settings (/parametres/compte)", () => { beforeEach(() => { cy.intercept("GET", "**/auth/me", { statusCode: 200, body: authenticatedProfile }); }); it("shows the signed-in profile's identity", () => { cy.visit("/parametres/compte"); cy.contains("Alice").should("be.visible"); cy.contains("Martin").should("be.visible"); cy.contains("alice@example.com").should("be.visible"); }); });