diff --git a/apps/web/src/toasts/SetupEncryptionToast.tsx b/apps/web/src/toasts/SetupEncryptionToast.tsx index 5e9c970c8d..9b150b7d77 100644 --- a/apps/web/src/toasts/SetupEncryptionToast.tsx +++ b/apps/web/src/toasts/SetupEncryptionToast.tsx @@ -84,7 +84,7 @@ const getSetupCaption = (state: DeviceStateForToast): string => { case "set_up_recovery": return _t("action|continue"); case "verify_this_session": - return _t("action|verify"); + return _t("action|continue"); case "key_storage_out_of_sync": return _t("encryption|enter_recovery_key"); case "turn_on_key_storage": diff --git a/apps/web/test/unit-tests/toasts/SetupEncryptionToast-test.tsx b/apps/web/test/unit-tests/toasts/SetupEncryptionToast-test.tsx index c9e58c5921..90544b5268 100644 --- a/apps/web/test/unit-tests/toasts/SetupEncryptionToast-test.tsx +++ b/apps/web/test/unit-tests/toasts/SetupEncryptionToast-test.tsx @@ -340,7 +340,7 @@ describe("SetupEncryptionToast", () => { await expect(screen.findByText("Verify this session")).resolves.toBeInTheDocument(); await expect(screen.findByRole("button", { name: "Later" })).resolves.toBeInTheDocument(); - await expect(screen.findByRole("button", { name: "Verify" })).resolves.toBeInTheDocument(); + await expect(screen.findByRole("button", { name: "Continue" })).resolves.toBeInTheDocument(); }); it("should dismiss the toast when 'Later' button clicked, and remember it", async () => { @@ -354,14 +354,14 @@ describe("SetupEncryptionToast", () => { expect(DeviceListener.sharedInstance().dismissEncryptionSetup).toHaveBeenCalled(); }); - it("should open the verification dialog when 'Verify' clicked", async () => { + it("should open the verification dialog when 'Continue' clicked", async () => { jest.spyOn(Modal, "createDialog"); // When we show the toast, and click Verify act(() => showToast("verify_this_session")); const user = userEvent.setup(); - await user.click(await screen.findByRole("button", { name: "Verify" })); + await user.click(await screen.findByRole("button", { name: "Continue" })); // Then the dialog was opened expect(Modal.createDialog).toHaveBeenCalledWith(SetupEncryptionDialog, {}, undefined, false, true);