0
0
Fork 0

Fix browser glitch caused by two overlapping scroll animations in web UI (#31960)

This commit is contained in:
Eugen Rochko 2024-09-19 12:52:46 +02:00 committed by GitHub
parent efdc17513d
commit ef4d6ab988
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 40 deletions

View file

@ -8,6 +8,14 @@ import { render as rtlRender } from '@testing-library/react';
import { IdentityContext } from './identity_context';
beforeEach(() => {
global.requestIdleCallback = jest
.fn()
.mockImplementation((fn: () => void) => {
fn();
});
});
function render(
ui: React.ReactElement,
{