Skip to content

Commit 206c0c2

Browse files
committed
Fix unit tests of new components HueSlider and Tag
1 parent 8aa1fad commit 206c0c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/components/HueSlider/HueSlider.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ describe("HueSlider", () => {
1212
/>,
1313
);
1414

15-
expect(screen.getByRole("hue-input")).toBeInTheDocument();
15+
expect(screen.getByTestId("hue-input")).toBeInTheDocument();
1616
});
1717
});

src/common/components/Tag/Tag.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe("Tag", () => {
1212
/>,
1313
);
1414

15-
const tag = screen.getByText("world");
15+
const tag = screen.getByText("#world");
1616
expect(tag).toBeInTheDocument();
1717

1818
const style = getComputedStyle(tag);

0 commit comments

Comments
 (0)