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