mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-15 09:01:31 +00:00
fix: test issue
This commit is contained in:
+1
-7
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user