Skip to content

Commit aefcbc6

Browse files
committed
[TextField] Improve test
1 parent 1634aa2 commit aefcbc6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/mui-joy/src/TextField/TextField.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { formHelperTextClasses } from '@mui/joy/FormHelperText';
1010
describe('Joy <TextField />', () => {
1111
const { render } = createRenderer();
1212

13-
describeConformance(<TextField />, () => ({
13+
describeConformance(<TextField helperText="1" label="1" />, () => ({
1414
classes,
1515
inheritComponent: 'div',
1616
render,
@@ -19,6 +19,9 @@ describe('Joy <TextField />', () => {
1919
refInstanceof: window.HTMLDivElement,
2020
slots: {
2121
root: { expectedClassName: classes.root },
22+
label: { expectedClassName: classes.label },
23+
input: { expectedClassName: classes.input },
24+
helperText: { expectedClassName: classes.helperText },
2225
},
2326
skip: ['componentsProp', 'classesRoot', 'themeVariants'],
2427
}));

0 commit comments

Comments
 (0)