diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Team/tests/TeamMembers.addNewEditor.test.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Team/tests/TeamMembers.addNewEditor.test.tsx index 91514c06b6..cbf0765d4f 100644 --- a/editor.planx.uk/src/pages/FlowEditor/components/Team/tests/TeamMembers.addNewEditor.test.tsx +++ b/editor.planx.uk/src/pages/FlowEditor/components/Team/tests/TeamMembers.addNewEditor.test.tsx @@ -76,7 +76,7 @@ describe("when a user fills in the 'add a new editor' form correctly", () => { it("closes the modal", async () => { await waitFor(() => { - expect(screen.queryByTestId("modal-add-user")).not.toBeInTheDocument(); + expect(screen.queryByTestId("modal-create-user")).not.toBeInTheDocument(); }); }); diff --git a/editor.planx.uk/src/pages/FlowEditor/lib/store/user.ts b/editor.planx.uk/src/pages/FlowEditor/lib/store/user.ts index a7f8cee6b7..f71f85ade4 100644 --- a/editor.planx.uk/src/pages/FlowEditor/lib/store/user.ts +++ b/editor.planx.uk/src/pages/FlowEditor/lib/store/user.ts @@ -2,7 +2,7 @@ import { CoreDomainClient } from "@opensystemslab/planx-core"; import { Team, User, UserTeams } from "@opensystemslab/planx-core/types"; import axios from "axios"; import type { StateCreator } from "zustand"; -import { client } from "lib/graphql"; + import { EditorStore } from "./editor"; export interface UserStore {