1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Step 8.7: Introduce focus-visible import where needed to repair tests

There is an import in `MatrixChat` which no longer gets executed when we don't skin the entire app, so bring it in manually.
This commit is contained in:
Travis Ralston
2022-03-24 20:37:52 -06:00
parent b2b818a780
commit 661b8d595c
3 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,7 @@ limitations under the License.
import React from 'react';
import { shallow, mount } from "enzyme";
import 'focus-visible'; // to fix context menus
import {
ThreadFilterType,

View File

@ -19,6 +19,7 @@ import { mount } from 'enzyme';
import { Room } from 'matrix-js-sdk/src/matrix';
import { mocked } from 'jest-mock';
import { act } from 'react-dom/test-utils';
import 'focus-visible'; // to fix context menus
import SpaceContextMenu from '../../../../src/components/views/context_menus/SpaceContextMenu';
import MatrixClientContext from '../../../../src/contexts/MatrixClientContext';