mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
packages
This commit is contained in:
16
packages/ui-tests/src/tests/fields/text.tsx
Normal file
16
packages/ui-tests/src/tests/fields/text.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import React, { type ReactNode } from "react";
|
||||
import type { RefineFieldTextProps } from "@refinedev/ui-types";
|
||||
|
||||
import { render } from "@test";
|
||||
|
||||
export const fieldTextTests = (
|
||||
TextField: React.ComponentType<RefineFieldTextProps<ReactNode, any>>,
|
||||
): void => {
|
||||
describe("[@refinedev/ui-tests] Common Tests / Text Field", () => {
|
||||
it("renders text correctly", () => {
|
||||
const { getByText } = render(<TextField value="test" />);
|
||||
|
||||
getByText("test");
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user