Skip to content

Commit

Permalink
fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 1, 2019
1 parent 7c2d1ce commit 3fc98eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 5 additions & 2 deletions packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Fab from '@material-ui/core/Fab';
import SpeedDial from './SpeedDial';
import SpeedDialAction from '../SpeedDialAction';

describe.only('<SpeedDial />', () => {
describe('<SpeedDial />', () => {
let mount;
let classes;

Expand Down Expand Up @@ -272,7 +272,10 @@ describe.only('<SpeedDial />', () => {
if (actionIndex === -1) {
return getDialButton();
}
return wrapper.find(SpeedDialAction).at(actionIndex);
return wrapper
.find(SpeedDialAction)
.at(actionIndex)
.find(Fab);
};
/**
* @returns true if the button of the nth action is focused
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ describe('<SpeedDialAction />', () => {
});

it('should render a Tooltip', () => {
const wrapper = mount(
<SpeedDialAction {...props} open tooltipOpen tooltipTitle="An Action" />,
);
const wrapper = mount(<SpeedDialAction {...props} open tooltipOpen tooltipTitle="An Action" />);

assert.strictEqual(
wrapper
Expand All @@ -45,9 +43,7 @@ describe('<SpeedDialAction />', () => {
});

it('should be able to change the Tooltip classes', () => {
const wrapper = mount(
<SpeedDialAction {...props} TooltipClasses={{ tooltip: 'bar' }} />,
);
const wrapper = mount(<SpeedDialAction {...props} TooltipClasses={{ tooltip: 'bar' }} />);
assert.include(wrapper.find(Tooltip).props().classes.tooltip, 'bar');
});

Expand Down

0 comments on commit 3fc98eb

Please sign in to comment.