diff --git a/packages/material-ui/src/Slide/Slide.test.js b/packages/material-ui/src/Slide/Slide.test.js
index f7b6a4c6f77f7b..be9b2831fc7902 100644
--- a/packages/material-ui/src/Slide/Slide.test.js
+++ b/packages/material-ui/src/Slide/Slide.test.js
@@ -7,7 +7,7 @@ import Slide, { setTranslateValue } from './Slide';
import transitions, { easing } from '../styles/transitions';
import createMuiTheme from '../styles/createMuiTheme';
-describe('', () => {
+describe.only('', () => {
let shallow;
let mount;
const SlideNaked = unwrap(Slide);
@@ -39,19 +39,14 @@ describe('', () => {
style={{ color: 'red', backgroundColor: 'yellow' }}
theme={createMuiTheme()}
>
-
+
,
);
- assert.deepEqual(
- wrapper
- .childAt(0)
- .childAt(0)
- .props().style,
- {
- backgroundColor: 'yellow',
- color: 'blue',
- },
- );
+ assert.deepEqual(wrapper.find('#with-slide').props().style, {
+ backgroundColor: 'yellow',
+ color: 'blue',
+ visibility: undefined,
+ });
});
describe('event callbacks', () => {
@@ -303,8 +298,12 @@ describe('', () => {
describe('server-side', () => {
it('should be initially hidden', () => {
- const wrapper = shallow();
- assert.strictEqual(wrapper.find(Transition).childAt(0).props().style.visibility, 'hidden');
+ const wrapper = mount(
+
+
+ ,
+ );
+ assert.strictEqual(wrapper.find('#with-slide').props().style.visibility, 'hidden');
});
});
});