1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-08-08 03:42:14 +03:00

Update unsupported browser react component to new designs (#27857)

This commit is contained in:
Michael Telatynski
2024-07-30 14:16:19 +01:00
committed by GitHub
parent 31345ddd36
commit 59e526e318
16 changed files with 564 additions and 466 deletions

View File

@@ -16,8 +16,9 @@ limitations under the License.
import * as React from "react";
import { render } from "@testing-library/react";
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
import ErrorView from "../../../../src/async-components/structures/ErrorView";
import { ErrorView, UnsupportedBrowserView } from "../../../../src/async-components/structures/ErrorView";
import { setupLanguageMock } from "../../../setup/setupLanguage";
describe("<ErrorView />", () => {
@@ -30,3 +31,15 @@ describe("<ErrorView />", () => {
expect(asFragment()).toMatchSnapshot();
});
});
describe("<UnsupportedBrowserView />", () => {
beforeEach(() => {
setupLanguageMock();
SdkConfig.put({});
});
it("should match snapshot", () => {
const { asFragment } = render(<UnsupportedBrowserView />);
expect(asFragment()).toMatchSnapshot();
});
});