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]: Combobox with virtualized options doesnt page down/up as expected
- [Bug]: Fluent Tree : Background color on select / hover looks very bad when there is a scroll bar for width HOT 2
- Component: PresenceBadge HOT 1
- Component: TabList HOT 2
- Component: TagPicker HOT 1
- [Bug]: Dropdown checkbox squished when unchecked and string is longer than Dropdown width HOT 2
- [Bug]: Dropdown: Keyboard focus rectangle doesn't grow when scrolling to the right HOT 1
- [Bug]: In DetailsList, GroupHeader's onRenderTitle does not receive id as prop (used as aria-labelledby in row that GroupHeader renders) HOT 1
- [Bug]: spfx fluentui theme styles do not work HOT 1
- Bump Floating UI
- [Bug]: useMessageBarReflow throws a TypeError on older browsers
- Lack of Support for Passing SharePoint Theme Colors to FluentProvider in SPFx Webpart HOT 6
- [Bug]: Drawer and Dialog have some compatibility problem with SharePoint Online HOT 7
- [Feature]: Is there a way to add a footer row or a filter row in datagrid HOT 1
- [Feature]: How to change the DataGrid column order by drag and drop HOT 1
- [Bug]: TagPickerInput issue with removing all text when at least one tag is selected HOT 2
- [Bug]: running yarn start and selecting "react" throws error
- [Bug]: react-dialog / drawer pushes elements a little extra to the right side HOT 2
- [Bug]: CommandBar - Custom properties in items being overwritten when items are in overflow state HOT 2
- [Bug][Facepile][Edge]: Narrator reads Facepile overflow names on focus in Edge HOT 2
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.