Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"@mui/internal-docs-utils": "workspace:^",
"@mui/internal-netlify-cache": "0.0.3-canary.2",
"@mui/internal-scripts": "workspace:^",
"@mui/internal-test-utils": "2.0.18-canary.16",
"@mui/internal-test-utils": "2.0.18-canary.17",
"@mui/material": "workspace:^",
"@mui/utils": "workspace:^",
"@next/eslint-plugin-next": "15.5.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-lab/src/Masonry/Masonry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('<Masonry />', () => {
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'span',
muiName: 'MuiMasonry',
skip: ['componentsProp', 'themeVariants'],
skip: ['themeVariants'],
}),
);

Expand Down
8 changes: 1 addition & 7 deletions packages/mui-lab/src/TabList/TabList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ describe('<TabList />', () => {
*/
render: (node) => render(<TabContext value="0">{node}</TabContext>),
refInstanceof: window.HTMLDivElement,
skip: [
'componentsProp',
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
'rootClass',
],
skip: ['themeDefaultProps', 'themeStyleOverrides', 'themeVariants', 'rootClass'],
}));

// outside of TabContext pass every test in Tabs
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-lab/src/TabPanel/TabPanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('<TabPanel />', () => {
render: (node) => render(<TabContext value="0">{node}</TabContext>),
refInstanceof: window.HTMLDivElement,
muiName: 'MuiTabPanel',
skip: ['componentProp', 'componentsProp', 'themeDefaultProps', 'themeVariants'],
skip: ['componentProp', 'themeDefaultProps', 'themeVariants'],
}));

it('renders a [role="tabpanel"] and mounts children', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-lab/src/Timeline/Timeline.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('<Timeline />', () => {
refInstanceof: window.HTMLUListElement,
testVariantProps: { position: 'left' },
testStateOverrides: { prop: 'position', value: 'left', styleKey: 'positionLeft' },
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}));

it('should have correct classname', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('<TimelineConnector />', () => {
render,
muiName: 'MuiTimelineConnector',
refInstanceof: window.HTMLSpanElement,
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}));
});
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('<TimelineContent />', () => {
render,
muiName: 'MuiTimelineContent',
refInstanceof: window.HTMLDivElement,
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}));

it('should have positionLeft class when inside of a left-positioned timeline', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-lab/src/TimelineDot/TimelineDot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('<TimelineDot />', () => {
muiName: 'MuiTimelineDot',
refInstanceof: window.HTMLSpanElement,
testVariantProps: { color: 'secondary', variant: 'outlined' },
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}));

it('should render with color inherit', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-lab/src/TimelineItem/TimelineItem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('<TimelineItem />', () => {
render,
muiName: 'MuiTimelineItem',
refInstanceof: window.HTMLLIElement,
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}));
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('<TimelineOppositeContent />', () => {
render,
muiName: 'MuiTimelineOppositeContent',
refInstanceof: window.HTMLDivElement,
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}));

it('should have positionLeft class when inside of a left-positioned timeline', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ describe('<TimelineSeparator />', () => {
render,
muiName: 'MuiTimelineSeparator',
refInstanceof: window.HTMLDivElement,
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}));
});
1 change: 0 additions & 1 deletion packages/mui-material/src/Accordion/Accordion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ describe('<Accordion />', () => {
testWithElement: 'div',
},
},
skip: ['componentProp', 'componentsProp'],
}));

it('should render and not be controlled', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('<AccordionActions />', () => {
refInstanceof: window.HTMLDivElement,
muiName: 'MuiAccordionActions',
testVariantProps: { disableSpacing: true },
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}));

it.skipIf(isJsdom())('should apply margin to all children but the first one', function test() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('<AccordionDetails />', () => {
render,
refInstanceof: window.HTMLDivElement,
muiName: 'MuiAccordionDetails',
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}));

it('should render a children element', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ describe('<AccordionSummary />', () => {
muiName: 'MuiAccordionSummary',
testVariantProps: { disabled: true },
testDeepOverrides: { slotName: 'content', slotClassName: classes.content },
skip: ['componentProp', 'componentsProp'],
slots: {
root: {
expectedClassName: classes.root,
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Alert/Alert.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe('<Alert />', () => {
expectedClassName: classes.closeIcon,
},
},
skip: ['componentsProp'],
}));

describe('prop: square', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/AlertTitle/AlertTitle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ describe('<AlertTitle />', () => {
muiName: 'MuiAlertTitle',
refInstanceof: window.HTMLDivElement,
testStateOverrides: { styleKey: 'root' },
skip: ['componentsProp', 'themeVariants', 'themeDefaultProps'],
skip: ['themeVariants', 'themeDefaultProps'],
}));
});
1 change: 0 additions & 1 deletion packages/mui-material/src/AppBar/AppBar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ describe('<AppBar />', () => {
refInstanceof: window.HTMLElement,
testVariantProps: { position: 'relative' },
testStateOverrides: { prop: 'color', value: 'secondary', styleKey: 'colorSecondary' },
skip: ['componentsProp'],
}));

it('should render with the root class and primary', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe('<Autocomplete />', () => {
paper: { expectedClassName: classes.paper },
popper: { expectedClassName: classes.popper, testWithElement: null },
},
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}),
);

Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Avatar/Avatar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ describe('<Avatar />', () => {
expectedClassName: classes.fallback,
},
},
skip: ['componentsProp'],
}));

// img slot only renders when src is provided
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/AvatarGroup/AvatarGroup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ describe('<AvatarGroup />', () => {
slots: {
surplus: { expectedClassName: classes.avatar },
},
skip: ['componentsProp'],
}),
);

Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Backdrop/Backdrop.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ describe('<Backdrop />', () => {
testWithElement: null,
},
},
skip: ['componentsProp'],
}));

it('should render a backdrop div with content of nested children', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Badge/Badge.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ describe('<Badge />', () => {
expectedClassName: classes.badge,
},
},
skip: ['componentsProp'],
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('<BottomNavigation />', () => {
muiName: 'MuiBottomNavigation',
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'span',
skip: ['componentsProp', 'themeVariants'],
skip: ['themeVariants'],
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('<BottomNavigationAction />', () => {
refInstanceof: window.HTMLButtonElement,
testVariantProps: { showLabel: true },
testDeepOverrides: { slotName: 'label', slotClassName: classes.label },
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
slots: {
root: {
expectedClassName: classes.root,
Expand Down
9 changes: 1 addition & 8 deletions packages/mui-material/src/Box/Box.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ describe('<Box />', () => {
describeConformance(<Box />, () => ({
render,
inheritComponent: 'div',
skip: [
'componentProp',
'componentsProp',
'rootClass',
'themeVariants',
'themeStyleOverrides',
'themeDefaultProps',
],
skip: ['rootClass', 'themeVariants', 'themeStyleOverrides', 'themeDefaultProps'],
refInstanceof: window.HTMLDivElement,
}));

Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ describe('<Breadcrumbs />', () => {
refInstanceof: window.HTMLElement,
testComponentPropWith: 'div',
testVariantProps: { separator: '=' },
skip: ['componentsProp'],
}));

it('should render inaccessible separators between each listitem', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Button/Button.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ describe('<Button />', () => {
testDeepOverrides: { slotName: 'startIcon', slotClassName: classes.startIcon },
testVariantProps: { variant: 'contained', fullWidth: true },
testStateOverrides: { prop: 'size', value: 'small', styleKey: 'sizeSmall' },
skip: ['componentsProp'],
}));

it('should render with the root, text, and colorPrimary classes but no others', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/ButtonBase/ButtonBase.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('<ButtonBase />', () => {
testComponentPropWith: 'a',
muiName: 'MuiButtonBase',
testVariantProps: { disabled: true },
skip: ['componentsProp'],
}));

describe('root node', () => {
Expand Down
8 changes: 1 addition & 7 deletions packages/mui-material/src/ButtonBase/TouchRipple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,7 @@ describe('<TouchRipple />', () => {
render,
refInstanceof: Object,
muiName: 'MuiTouchRipple',
skip: [
'componentProp',
'componentsProp',
'refForwarding',
'themeStyleOverrides',
'themeVariants',
],
skip: ['componentProp', 'refForwarding', 'themeStyleOverrides', 'themeVariants'],
}));

describe('prop: center', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/ButtonGroup/ButtonGroup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('<ButtonGroup />', () => {
testComponentPropWith: 'span',
muiName: 'MuiButtonGroup',
testVariantProps: { variant: 'contained' },
skip: ['componentsProp'],
}),
);

Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Card/Card.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ describe('<Card />', () => {
muiName: 'MuiCard',
refInstanceof: window.HTMLDivElement,
testVariantProps: { raised: true },
skip: ['componentsProp'],
}));

it('when raised should render Paper with 8dp', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ describe('<CardActionArea />', () => {
testDeepOverrides: { slotName: 'focusHighlight', slotClassName: classes.focusHighlight },
testVariantProps: { variant: 'foo' },
refInstanceof: window.HTMLButtonElement,
skip: ['componentProp', 'componentsProp'],
slots: {
root: {
expectedClassName: classes.root,
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/CardActions/CardActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('<CardActions />', () => {
refInstanceof: window.HTMLDivElement,
muiName: 'MuiCardActions',
testVariantProps: { disableSpacing: true },
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}));

it.skipIf(isJsdom())('should apply margin to all children but the first one', function test() {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/CardContent/CardContent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('<CardContent />', () => {
render,
muiName: 'MuiCardContent',
refInstanceof: window.HTMLDivElement,
skip: ['componentsProp', 'themeVariants'],
skip: ['themeVariants'],
testComponentPropWith: 'span',
}));
});
1 change: 0 additions & 1 deletion packages/mui-material/src/CardHeader/CardHeader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ describe('<CardHeader />', () => {
expectedClassName: classes.subheader,
},
},
skip: ['componentsProp'],
}),
);

Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/CardMedia/CardMedia.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('<CardMedia />', () => {
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'span',
testVariantProps: { variant: 'foo' },
skip: ['componentsProp'],
}));

it('has the img role if `image` is defined', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Checkbox/Checkbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('<Checkbox />', () => {
expectedClassName: classes.input,
},
},
skip: ['componentProp', 'componentsProp', 'rootClass'],
skip: ['componentProp', 'rootClass'],
}));

it('should have the classes required for Checkbox', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Chip/Chip.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ describe('<Chip />', () => {
testStatOverrides: { prop: 'size', value: 'small', styleKey: 'sizeSmall' },
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'span',
skip: ['componentsProp'],
slots: {
root: {
expectedClassName: classes.root,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('<CircularProgress />', () => {
testDeepOverrides: { slotName: 'circle', slotClassName: classes.circle },
testVariantProps: { variant: 'determinate' },
refInstanceof: window.HTMLSpanElement,
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}));

it('should render with the primary color by default', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Collapse/Collapse.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ describe('<Collapse />', () => {
testWithElement: CustomWrapperInner,
},
},
skip: ['componentsProp'],
}));

it('should render a container around the wrapper', () => {
Expand Down
1 change: 0 additions & 1 deletion packages/mui-material/src/Container/Container.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ describe('<Container />', () => {
render,
refInstanceof: window.HTMLElement,
muiName: 'MuiContainer',
skip: ['componentsProp'],
testVariantProps: { fixed: true },
}));

Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Dialog/Dialog.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('<Dialog />', () => {
testWithElement: null,
},
},
skip: ['componentProp', 'componentsProp', 'themeVariants'],
skip: ['componentProp', 'themeVariants'],
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('<DialogActions />', () => {
refInstanceof: window.HTMLDivElement,
muiName: 'MuiDialogActions',
testVariantProps: { disableSpacing: true },
skip: ['componentProp', 'componentsProp'],
skip: ['componentProp'],
}));

it.skipIf(isJsdom())('should apply margin to all children but the first one', function test() {
Expand Down
Loading
Loading