Skip to content

Commit

Permalink
[Fade] Test a11y for invisible content
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Feb 8, 2019
1 parent 1049800 commit 658b4d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/material-ui/src/Fade/Fade.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,14 @@ describe('<Fade />', () => {
});
});
});

describe('accessiblity', () => {
it('will set `aria-hidden` acording to the `in` prop', () => {
const wrapper = mount(<Fade {...defaultProps} />);
assert.strictEqual(wrapper.find('div').props()['aria-hidden'], false);

wrapper.setProps({ in: false });
assert.strictEqual(wrapper.find('div').props()['aria-hidden'], true);
});
});
});

0 comments on commit 658b4d3

Please sign in to comment.