Comments (1)
TL;DR Toast
and other components use new motion APIs that rely on WAAPI that is not supported by jsdom (jsdom/jsdom#3429) (jsdom is an env Jest).
I made a previous week PR that improves compat of our internal polyfilling (#31602). And similar tests are passing:
So, I was extremely confused on why this happens 🐱 This looks to be a compat issue with @testing-library/userevent
or React, the sandbox uses version @testing-library/user-event@14
& React 18 while we are using @testing-library/user-event@13
& React 17.
I have built a minimal repro using React 18 (https://stackblitz.com/edit/acntkb-sru9mp) and it seems that React became more async in tests.
The solution seems to use requestAnimationFrame()
there:
It indeed fixes an issue for React 18, but breaks for React 17... 💥
from fluentui.
Related Issues (20)
- [Bug]: AvatarGroup docs site is lacking description (props) of the item component
- [Bug]: MenuList out-grows window if opened to top / MenuList extends the view port to the bottom if opened to bottom HOT 3
- [Bug]: Icons catalog is not visible on the docsite
- [Bug]: Portal does not propagate fluent styling (tokens) HOT 1
- [Feature]: TreeView Multiselection
- [Bug]: Null is not captured in the types for getSlots function HOT 7
- [Bug]: MessageBar not Reflowing on layout "auto" HOT 1
- [pr 32008][Doc site ] Toggle positions Enable Gradient and rounder corners are not aligned properly for all the charts. HOT 1
- [pr 32008][Guage chart] When we toggle on Enable Gradient the colors of the chart are not changing. HOT 5
- [Bug]: Combobox doesn't support preventSelectOnSpace HOT 2
- [Bug]: BreadcrumbButton icon size and margin are not aligned with base Button component HOT 4
- Standardize positioning attribute values to use `start` and `end` vs `after` and `before` HOT 1
- [Bug]: When using onSelectDate, the value in the field does not update HOT 2
- (web-components) adjust slidable area in slider's track
- [Feature]: Rendering different images in light and dark Fluent9 theme
- Storybook adds unwanted table styles to docsite
- Remove the @storybook/addon-mdx-gfm addon
- [Bug]: TeachingPopover: Body image does not respect bounds when positioning.autosize is true
- Docs: Fix List V9 dark/HC theme in docs
- [Bug]: Unable to uncheck the checkbox after checking it in DetailsList in Fluent UI using the keyboard. HOT 1
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 fluentui.