MCPcopy
hub / github.com/rjsf-team/react-jsonschema-form / shouldBeReadonly

Function shouldBeReadonly

packages/core/test/uiSchema.test.tsx:2186–2189  ·  view source on GitHub ↗
(selector: string, schema: RJSFSchema, uiSchema?: UiSchema)

Source from the content-addressed store, hash-verified

2184
2185 describe('Widgets', () => {
2186 function shouldBeReadonly(selector: string, schema: RJSFSchema, uiSchema?: UiSchema) {
2187 const { node } = createFormComponent({ schema, uiSchema });
2188 expect(node.querySelector(selector)).toHaveAttribute('readonly', '');
2189 }
2190 function shouldBeDisabled(selector: string, schema: RJSFSchema, uiSchema?: UiSchema) {
2191 const { node } = createFormComponent({ schema, uiSchema });
2192 expect(node.querySelector(selector)).toBeDisabled();

Callers 1

uiSchema.test.tsxFile · 0.85

Calls 1

createFormComponentFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…