Fix browser glitch caused by two overlapping scroll animations in web UI (#31960)
This commit is contained in:
parent
efdc17513d
commit
ef4d6ab988
3 changed files with 25 additions and 40 deletions
|
@ -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,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue