fix: test issue

This commit is contained in:
Julian Sommer
2026-09-15 11:36:00 +10:00
parent a292419356
commit 6c126be813
@@ -67,13 +67,7 @@ describe("AccessTab", () => {
it("opens the delete confirmation for an access entry", () => {
renderWithClient(<AccessTab clusterName={CLUSTER} />, 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()