From 2547777de7c58d0a61cfeb60bae021637d634d5c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 13 Jun 2024 17:04:33 +0100 Subject: [PATCH] Tweak copy for user verification toast (#12605) * Tweak copy for user verification toast Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- playwright/e2e/crypto/verification.spec.ts | 4 ++-- src/components/views/toasts/VerificationRequestToast.tsx | 6 +++++- src/i18n/strings/en_EN.json | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/playwright/e2e/crypto/verification.spec.ts b/playwright/e2e/crypto/verification.spec.ts index e471b6b2f5..af30a78b01 100644 --- a/playwright/e2e/crypto/verification.spec.ts +++ b/playwright/e2e/crypto/verification.spec.ts @@ -280,7 +280,7 @@ test.describe("User verification", () => { // it should contain the details of the requesting user await expect(toast.getByText(`Bob (${bob.credentials.userId})`)).toBeVisible(); // Accept - await toast.getByRole("button", { name: "Verify Session" }).click(); + await toast.getByRole("button", { name: "Verify User" }).click(); // request verification by emoji await page.locator("#mx_RightPanel").getByRole("button", { name: "Verify by emoji" }).click(); @@ -324,7 +324,7 @@ test.describe("User verification", () => { // Accept verification via toast const toast = await toasts.getToast("Verification requested"); - await toast.getByRole("button", { name: "Verify Session" }).click(); + await toast.getByRole("button", { name: "Verify User" }).click(); // request verification by emoji await page.locator("#mx_RightPanel").getByRole("button", { name: "Verify by emoji" }).click(); diff --git a/src/components/views/toasts/VerificationRequestToast.tsx b/src/components/views/toasts/VerificationRequestToast.tsx index 0ad86af4b8..283473bf51 100644 --- a/src/components/views/toasts/VerificationRequestToast.tsx +++ b/src/components/views/toasts/VerificationRequestToast.tsx @@ -185,7 +185,11 @@ export default class VerificationRequestToast extends React.PureComponent