(selector: string, schema: RJSFSchema, uiSchema?: UiSchema)
| 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(); |
no test coverage detected
searching dependent graphs…