diff --git a/src/__tests__/users/[username]/index.spec.tsx b/src/__tests__/users/[username]/index.spec.tsx index 63711b1ea..649c65e34 100644 --- a/src/__tests__/users/[username]/index.spec.tsx +++ b/src/__tests__/users/[username]/index.spec.tsx @@ -31,8 +31,6 @@ describe("pages/users/[username]/index", () => { expect(screen.getByLabelText("Role")).toBeDisabled(); }); expect(screen.getByLabelText("Name")).not.toBeDisabled(); - - expect(screen.getByLabelText("System Profile")).not.toBeDisabled(); }); it("should show user details", async () => { @@ -55,10 +53,6 @@ describe("pages/users/[username]/index", () => { expect(container.querySelector(`input[name="role"]`)).toHaveValue( "viewer" ); - - expect(screen.getByLabelText("System Profile")).toHaveValue( - `{"foo": "bar"}` - ); }); it("should update user details", async () => { @@ -81,12 +75,6 @@ describe("pages/users/[username]/index", () => { await userEvent.type(screen.getByLabelText("Role"), "Creator"); await userEvent.keyboard("{Enter}"); - await userEvent.clear(screen.getByLabelText("System Profile")); - await userEvent.type( - screen.getByLabelText("System Profile"), - `{{"update": "profile"}` - ); - await userEvent.click( screen.getByRole("button", { name: "Update User" }) ); @@ -116,10 +104,6 @@ describe("pages/users/[username]/index", () => { expect(container.querySelector(`input[name="role"]`)).toHaveValue( "creator" ); - - expect(screen.getByLabelText("System Profile")).toHaveValue( - `{"update": "profile"}` - ); }); }); diff --git a/src/__tests__/users/index.spec.tsx b/src/__tests__/users/index.spec.tsx index 7f7bd1a93..997e9ba32 100644 --- a/src/__tests__/users/index.spec.tsx +++ b/src/__tests__/users/index.spec.tsx @@ -12,7 +12,7 @@ setupApiHandlers(); describe("pages/users", () => { const useRouter = jest.spyOn(require("next/router"), "useRouter"); - it("should list users with system profile", async () => { + it("should list users", async () => { useRouter.mockImplementation(() => ({ asPath: "/", isReady: true, @@ -25,17 +25,17 @@ describe("pages/users", () => { expect( await screen.findByRole("row", { - name: "Username Sort By Username Filter Username By Search Name Sort By Name Filter Name By Search Role Sort By Role Filter Role By Status Email Station Action", + name: "Username Sort By Username Filter Username By Search Name Sort By Name Filter Name By Search Role Sort By Role Filter Role By Status Action", }) ).toBeInTheDocument(); expect( screen.getByRole("row", { - name: "user-1 User 1 Role 1 user-1@here.com station - 1 Edit User", + name: "user-1 User 1 Role 1 Edit User", }) ).toBeInTheDocument(); expect( screen.getByRole("row", { - name: "user-2 User 2 Role 2 user-1@here.com Edit User", + name: "user-2 User 2 Role 2 Edit User", }) ).toBeInTheDocument(); expect( diff --git a/src/backend/data/data-access/RDBMS.ts b/src/backend/data/data-access/RDBMS.ts index 08afe8d65..df08aa713 100644 --- a/src/backend/data/data-access/RDBMS.ts +++ b/src/backend/data/data-access/RDBMS.ts @@ -172,8 +172,6 @@ export class RDBMSDataApiService extends BaseDataAccessService