Skip to content
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] Supress 404 img warnings in browser tests #23106

Merged
merged 3 commits into from
Oct 16, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Oct 16, 2020

For image sources please use fake.png or fake2.png if you don't care about the network request in browser tests.

In browser test network requests are actually triggered (e.g. with <img src="fake.png" />) which logs a warning. So far we're not actually testing the impact of these requests (as far as I can tell) so the warnings are just noise. With their color they're a bit distracting so I added two empty images that act as fake placeholders.

Before: https://app.circleci.com/pipelines/github/mui-org/material-ui/24352/workflows/7ff12a01-f5d2-4e11-9cbf-c2b3468be9db/jobs/187515
After: https://app.circleci.com/pipelines/github/mui-org/material-ui/24351/workflows/9caed456-c9b9-4ae8-b3fb-5b6a380ae0fd/jobs/187511

@eps1lon eps1lon added the test label Oct 16, 2020
@eps1lon eps1lon force-pushed the test/karma-img-404 branch from 16c21dd to 583caf2 Compare October 16, 2020 20:28
@mui-pr-bot
Copy link

mui-pr-bot commented Oct 16, 2020

No bundle size changes comparing 97b62fb...c1755db

Generated by 🚫 dangerJS against c1755db

@eps1lon eps1lon merged commit 53867b9 into mui:next Oct 16, 2020
@eps1lon eps1lon deleted the test/karma-img-404 branch October 16, 2020 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants