Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcushaddon committed Jul 11, 2023
1 parent ea04c8f commit e31d4ef
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/client/admin/test/community/banUser.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ it("ban user across specific sites", async () => {
expect(resolvers.Mutation!.updateUserBan!.called).toBe(true);
});

it.only("displays limited options for single site tenants", async () => {
it("displays limited options for single site tenants", async () => {
const resolvers = createResolversStub<GQLResolver>({
Query: {
settings: () => settings, // base settings has multisite: false
Expand All @@ -337,14 +337,10 @@ it.only("displays limited options for single site tenants", async () => {
);
fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" }));

// MARCUS: why is this passing?
const modal = screen.getByLabelText("Are you sure you want to ban Isabelle?");
expect(modal).toBeInTheDocument();
expect(screen.queryByText("All sites")).not.toBeInTheDocument();
expect(screen.queryByText("Specific sites")).not.toBeInTheDocument();
expect(
screen.queryByText("Are you sure you want to ban Isabelle?")
).not.toBeInTheDocument();
});

it("site moderators can unban users on their sites but not sites out of their scope", async () => {
Expand Down

0 comments on commit e31d4ef

Please sign in to comment.