diff --git a/ui/changelog.d/user-sign-in-method-indicators.added.md b/ui/changelog.d/user-sign-in-method-indicators.added.md new file mode 100644 index 0000000000..0b1bd856e1 --- /dev/null +++ b/ui/changelog.d/user-sign-in-method-indicators.added.md @@ -0,0 +1 @@ +Sign-in method indicators in the Prowler Cloud Users table, including linked SAML domains diff --git a/ui/components/users/table/column-users.test.tsx b/ui/components/users/table/column-users.test.tsx new file mode 100644 index 0000000000..b8a9725445 --- /dev/null +++ b/ui/components/users/table/column-users.test.tsx @@ -0,0 +1,151 @@ +import type { CellContext } from "@tanstack/react-table"; +import { render, screen } from "@testing-library/react"; +import type { ReactElement, ReactNode } from "react"; +import { describe, expect, expectTypeOf, it, vi } from "vitest"; + +import type { UserProps } from "@/types"; +import type { UserSignInMethod } from "@/types/users"; + +vi.mock("@/components/shadcn", () => ({ + Badge: ({ children, variant }: { children: ReactNode; variant?: string }) => ( + {children} + ), +})); + +vi.mock("@/components/shadcn/entities", () => ({ + DateWithTime: () =>