From 6c126be813717cabfd9e11b4f7f1249cf94d4cbc Mon Sep 17 00:00:00 2001 From: Julian Sommer <115516918+juliansommer@users.noreply.github.com> Date: Tue, 15 Sep 2026 11:36:00 +1000 Subject: [PATCH] fix: test issue --- .../_auth/eks/(clusters)/-components/access-tab.test.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/access-tab.test.tsx b/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/access-tab.test.tsx index efc8d7d75..502cb6f61 100644 --- a/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/access-tab.test.tsx +++ b/spinifex/services/spinifexui/frontend/src/routes/_auth/eks/(clusters)/-components/access-tab.test.tsx @@ -67,13 +67,7 @@ describe("AccessTab", () => { it("opens the delete confirmation for an access entry", () => { renderWithClient(, seed()) - const deleteButton = screen - .getAllByRole("button") - .find((b) => b.textContent === "") - if (!deleteButton) { - throw new Error("delete button not found") - } - fireEvent.click(deleteButton) + fireEvent.click(screen.getByRole("button", { name: "Delete access entry" })) expect( screen.getByText(`Delete access entry for "${PRINCIPAL}"?`), ).toBeInTheDocument()