-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[test] Move Firefox tests to CircleCI #34764
[test] Move Firefox tests to CircleCI #34764
Conversation
|
4d6982a
to
707d727
Compare
['default', 'primary'].forEach((color) => { | ||
it(`can disable the ripple and hover effect for color ${color}`, () => { | ||
const { container, getByRole } = render( | ||
<IconButton disableRipple color={color} TouchRippleProps={{ className: 'touch-ripple' }}> | ||
book | ||
</IconButton>, | ||
); | ||
expect(container.querySelector('.touch-ripple')).to.equal(null); | ||
expect(getComputedStyle(getByRole('button'), ':hover').backgroundColor).to.equal( | ||
getComputedStyle(getByRole('button')).backgroundColor, | ||
); | ||
}); | ||
it('can disable the ripple and hover effect', () => { | ||
const { container } = render( | ||
<IconButton disableRipple TouchRippleProps={{ className: 'touch-ripple' }}> | ||
book | ||
</IconButton>, | ||
); | ||
expect(container.querySelector('.touch-ripple')).to.equal(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #29298 (comment) for why some of the assertions are gone. The test was a tautology, so brings no value.
Do you know why the test-browser task fails primarily on the master branch? I haven't seen any problems in PRs, but it's red on a large number of master builds. |
@michaldudak It's because of this, we only run BrowserStack on master: material-ui/test/karma.conf.js Lines 20 to 25 in 31eeb83
|
I hope it will help with https://www.notion.so/mui-org/KPIs-1ce9658b85ce4628a2a2ed2ae74ff69c#f36a86b0a0b14d028e744423d9bc6b44 |
Firefox seems to disconnect quite often looking at the CI runs in https://github.com/mui/material-ui/commits/master, e.g. https://app.circleci.com/pipelines/github/mui/material-ui/82679/workflows/2da72430-6074-47cb-8bbe-e959f815d794/jobs/437658 so why not run Firefox in CircleCI. The one limitation is that we run the latest version (so no correct version compatibility test) but 🤷♂️
Firefox is also slow on BrowserStack relative to the others, maybe why it's unstable:
https://automate.browserstack.com/dashboard/v2/builds/db108dc8dfacc0894749d3eac1271e4d8da8ac4c