MCPcopy Create free account
hub / github.com/adobe/react-spectrum / TestTextField

Function TestTextField

packages/react-aria-components/test/TextField.test.js:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21import userEvent from '@testing-library/user-event';
22
23let TestTextField = props => (
24 <TextField defaultValue="test" data-testid="text-field-test" data-foo="bar" {...props}>
25 <Label>Test</Label>
26 <props.input {...props.inputProps} />
27 <Text slot="description">Description</Text>
28 <Text slot="errorMessage">Error</Text>
29 </TextField>
30);
31
32describe('TextField', () => {
33 let user;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected