summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/inputs/ChipInput.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/inputs/ChipInput.test.tsx')
-rw-r--r--frontend/src/components/inputs/ChipInput.test.tsx10
1 files changed, 6 insertions, 4 deletions
diff --git a/frontend/src/components/inputs/ChipInput.test.tsx b/frontend/src/components/inputs/ChipInput.test.tsx
index 8cb7a099e..3e30490d2 100644
--- a/frontend/src/components/inputs/ChipInput.test.tsx
+++ b/frontend/src/components/inputs/ChipInput.test.tsx
@@ -1,4 +1,4 @@
-import { render, screen } from "@testing-library/react";
+import { rawRender, screen } from "@/tests";
import userEvent from "@testing-library/user-event";
import { describe, it, vitest } from "vitest";
import ChipInput from "./ChipInput";
@@ -8,7 +8,7 @@ describe("ChipInput", () => {
// TODO: Support default value
it.skip("should works with default value", () => {
- render(<ChipInput defaultValue={existedValues}></ChipInput>);
+ rawRender(<ChipInput defaultValue={existedValues}></ChipInput>);
existedValues.forEach((value) => {
expect(screen.getByText(value)).toBeDefined();
@@ -16,7 +16,7 @@ describe("ChipInput", () => {
});
it("should works with value", () => {
- render(<ChipInput value={existedValues}></ChipInput>);
+ rawRender(<ChipInput value={existedValues}></ChipInput>);
existedValues.forEach((value) => {
expect(screen.getByText(value)).toBeDefined();
@@ -29,7 +29,9 @@ describe("ChipInput", () => {
expect(values).toContain(typedValue);
});
- render(<ChipInput value={existedValues} onChange={mockedFn}></ChipInput>);
+ rawRender(
+ <ChipInput value={existedValues} onChange={mockedFn}></ChipInput>
+ );
const element = screen.getByRole("searchbox");