Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix ReactionsRowButton test
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Sumner Evans <sumner@beeper.com>
  • Loading branch information
sumnerevans and t3chguy committed Aug 18, 2023
1 parent 3845d29 commit acae684
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 459 deletions.
8 changes: 4 additions & 4 deletions test/components/views/messages/ReactionsRowButton-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe("ReactionsRowButton", () => {
<ReactionsRowButton {...props} />
</MatrixClientContext.Provider>,
);
expect(root).toMatchSnapshot();
expect(root.asFragment()).toMatchSnapshot();

// Try hover and make sure that the ReactionsRowButtonTooltip works
const reactionButton = root.getByRole("button");
Expand All @@ -85,7 +85,7 @@ describe("ReactionsRowButton", () => {
});
reactionButton.dispatchEvent(event);

expect(root).toMatchSnapshot();
expect(root.asFragment()).toMatchSnapshot();
});

it("renders reaction row button custom image reactions correctly", () => {
Expand All @@ -104,7 +104,7 @@ describe("ReactionsRowButton", () => {
<ReactionsRowButton {...props} />
</MatrixClientContext.Provider>,
);
expect(root).toMatchSnapshot();
expect(root.asFragment()).toMatchSnapshot();

// Try hover and make sure that the ReactionsRowButtonTooltip works
const reactionButton = root.getByRole("button");
Expand All @@ -114,6 +114,6 @@ describe("ReactionsRowButton", () => {
});
reactionButton.dispatchEvent(event);

expect(root).toMatchSnapshot();
expect(root.asFragment()).toMatchSnapshot();
});
});
Loading

0 comments on commit acae684

Please sign in to comment.