aboutsummaryrefslogtreecommitdiffhomepage
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, 4 insertions, 6 deletions
diff --git a/frontend/src/components/inputs/ChipInput.test.tsx b/frontend/src/components/inputs/ChipInput.test.tsx
index cb52ee30c..4035966fc 100644
--- a/frontend/src/components/inputs/ChipInput.test.tsx
+++ b/frontend/src/components/inputs/ChipInput.test.tsx
@@ -1,6 +1,6 @@
-import { rawRender, screen } from "@/tests";
import userEvent from "@testing-library/user-event";
import { describe, it, vitest } from "vitest";
+import { render, screen } from "@/tests";
import ChipInput from "./ChipInput";
describe("ChipInput", () => {
@@ -8,7 +8,7 @@ describe("ChipInput", () => {
// TODO: Support default value
it.skip("should works with default value", () => {
- rawRender(<ChipInput defaultValue={existedValues}></ChipInput>);
+ render(<ChipInput defaultValue={existedValues}></ChipInput>);
existedValues.forEach((value) => {
expect(screen.getByText(value)).toBeDefined();
@@ -16,7 +16,7 @@ describe("ChipInput", () => {
});
it("should works with value", () => {
- rawRender(<ChipInput value={existedValues}></ChipInput>);
+ render(<ChipInput value={existedValues}></ChipInput>);
existedValues.forEach((value) => {
expect(screen.getByText(value)).toBeDefined();
@@ -29,9 +29,7 @@ describe("ChipInput", () => {
expect(values).toContain(typedValue);
});
- rawRender(
- <ChipInput value={existedValues} onChange={mockedFn}></ChipInput>,
- );
+ render(<ChipInput value={existedValues} onChange={mockedFn}></ChipInput>);
const element = screen.getByRole("searchbox");