Comments (2)
@pgrabo Your sandbox doesn't repro the issue 🤔 the input
element seems snapshotted and logged to the console correctly:
from material-ui.
mj12albert Yes, it is snapshotted and logged ok, but the issue is actually the error which is logged to the console when doing snapshot:
MUI: Unable to find the input element. It was resolved to null while an HTMLInputElement was expected.
Instead, Autocomplete expects an input element.
Make sure you have customized the input component correctly.
You can see the last line of this error in the screenshot above. Actually you did reproduced the issue.
Yes, you are right, snapshot looks ok. But why mui prints this error then ?
Mui tells me that I am misusing the input element, that the way I coustomized it is wrong :/
In my test environment any console error causes the test to fail (despite the fact that the snapshot might be ok)
That is why this error worries me.
from material-ui.
Related Issues (20)
- [joy-ui] JoyToggleButtonGroup key not included in components type HOT 1
- [material-ui][Text Field] `autoFocus` prop not working consistently with a Next.js App Router project HOT 3
- [docs-infra] Fix algolia links to API props
- [material-ui][Menu] Docs suggests using null anchors which alters container behavior in unpredictable ways
- [material-ui][Popover] Incorrect position of menu, popover and select when zoom is applied HOT 4
- [material-ui][Link] Default theme error when color is set to info HOT 4
- [material-ui][Dialog] Not able to remove the box-shadow HOT 2
- [material-ui][Menu] Text on the menu item moving slightly on hover HOT 1
- [material-ui] `important` in the Tailwind config not working
- [material-ui] Add v6 components props and classes deprecations HOT 7
- @mui/utils ^5.15.3 Install Failure
- [material-ui][docs] Broken demo in the Progress page in the Material 3 section HOT 2
- Typescript broken in latest release `ElementType` requires between 0-1 type arguments HOT 8
- [material-ui][Tabs] Scrollable variant slow animation on iOS and don't set click during it HOT 2
- [material-ui][Select] Does it receive different types of value? HOT 2
- [material-ui][docs] The instructions on the Next.js App Router guide do not work HOT 2
- [CSP style-src] MUITabs and some other component have inline styles not nonced by the CreateEmotionCache HOT 1
- [material-ui][docs] Basic information about how to use the Material Icons HOT 3
- [material-ui][CssBaseline] Margin not being set to 0 on headers in Next.js
- [system] Need for consistent CSS classes in snapshot tests HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-ui.