Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matborowczyk committed Nov 22, 2024
1 parent 6fefa51 commit ab68d8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/UI/Components/Diagram/Canvas.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe("Canvas.tsx", () => {
});

expect(screen.queryByText("Remove")).toBeNull();
expect(screen.getAllByText("Cancel")).toHaveLength(1); // the cancel button to cancel the whole composer process will be always there
expect(screen.queryByText("Cancel")).toBeNull();
});

it("renders right sidebar with buttons when editable", async () => {
Expand All @@ -225,7 +225,7 @@ describe("Canvas.tsx", () => {
await user.click(headerLabel);
});

expect(screen.getByText("Remove")).toBeNull();
expect(screen.getAllByText("Cancel")).toHaveLength(2);
expect(screen.getByText("Remove")).toBeVisible();
expect(screen.getByText("Cancel")).toBeVisible();
});
});

0 comments on commit ab68d8e

Please sign in to comment.