When we set up cross signing, so the key backup key will be stored locally along with the cross signing keys until the user sets up recovery (4s). This will mean that a user can restore their backup if they log in on a new device as long as they verify with the one they registered on. Replaces https://github.com/element-hq/element-web/pull/28267
24 lines
712 B
TypeScript
24 lines
712 B
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import React from "react";
|
|
import { render, screen } from "jest-matrix-react";
|
|
|
|
import ToastContainer from "../../../src/components/structures/ToastContainer";
|
|
import { Kind, showToast } from "../../../src/toasts/SetupEncryptionToast";
|
|
|
|
describe("SetupEncryptionToast", () => {
|
|
beforeEach(() => {
|
|
render(<ToastContainer />);
|
|
});
|
|
|
|
it("should render the se up recovery toast", async () => {
|
|
showToast(Kind.SET_UP_RECOVERY);
|
|
|
|
await expect(screen.findByText("Set up recovery")).resolves.toBeInTheDocument();
|
|
});
|
|
});
|