Skip to content
Snippets Groups Projects
Unverified Commit ff10e996 authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Clean-up GroupMappingsWidget unit test (#28579)

parent 93e7b6c4
Branches
Tags
No related merge requests found
......@@ -51,12 +51,9 @@ describe("GroupMappingsWidget", () => {
// Confirm remove
userEvent.click(screen.getByText("Yes"));
await waitFor(
() => {
expect(onChangeSettingSpy).toHaveBeenCalledTimes(1);
},
{ timeout: 10000 },
);
await waitFor(() => {
expect(onChangeSettingSpy).toHaveBeenCalledTimes(1);
});
});
});
......@@ -112,7 +109,7 @@ describe("GroupMappingsWidget", () => {
it("handles deleting mapped groups after deleting mapping", async () => {
fetchMock.delete("path:/api/permissions/group/3", 200);
fetchMock.delete("/api/permissions/group/4", 200);
fetchMock.delete("path:/api/permissions/group/4", 200);
setup();
expect(await screen.findByText("cn=People")).toBeInTheDocument();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment