mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(tests): trigger click on the right element
This commit is contained in:
@@ -78,7 +78,10 @@ describe("<DeleteSilence />", () => {
|
||||
|
||||
it("opens modal on click", () => {
|
||||
const tree = MountedDeleteSilence();
|
||||
tree.simulate("click");
|
||||
tree
|
||||
.find(".badge")
|
||||
.at(0)
|
||||
.simulate("click");
|
||||
expect(tree.find(".modal-body")).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user