Skip to content

Commit

Permalink
[core] Batch small changes (#21335)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Jun 7, 2020
1 parent f9b581e commit 74d85f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
7 changes: 5 additions & 2 deletions docs/src/pages/components/material-icons/SearchIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ let Icons = (props) => {
onClick={handleClickOpen}
title={icon.key}
className={classes.iconSvg}
data-ga-event-category="material-icons"
data-ga-event-action="click"
data-ga-event-label={icon.key}
/>
{/* eslint-disable jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/click-events-have-key-events */}
<p onClick={handleClick}>{icon.key}</p>
Expand Down Expand Up @@ -421,8 +424,8 @@ export default function SearchIcons() {
window.ga('send', {
hitType: 'event',
eventCategory: 'material-icons',
eventAction: value,
eventLabel: 'no results',
eventAction: 'no-results',
eventLabel: value,
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Popper/Popper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('<Popper />', () => {
</Popper>
</ThemeProvider>,
);
expect(renderSpy.callCount).to.equal(2); // 2 for strict mode
expect(renderSpy.callCount).to.equal(2); // strict mode renders twice
expect(renderSpy.args[0][0]).to.equal('top');
});

Expand Down
12 changes: 1 addition & 11 deletions packages/material-ui/src/Select/Select.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,16 +215,6 @@ describe('<Select />', () => {
});

describe('prop: onChange', () => {
let clock;

before(() => {
clock = useFakeTimers();
});

after(() => {
clock.restore();
});

it('should get selected element from arguments', () => {
const onChangeHandler = spy();
const { getAllByRole, getByRole } = render(
Expand Down Expand Up @@ -1024,7 +1014,7 @@ describe('<Select />', () => {
expect(getByRole('button')).to.have.text('France');
});

it('should support native from validation', function test() {
it('should support native form validation', function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
// see https://github.com/jsdom/jsdom/issues/123
this.skip();
Expand Down

0 comments on commit 74d85f5

Please sign in to comment.