diff --git a/playwright/widget/test-helpers.ts b/playwright/widget/test-helpers.ts index b47588ce..9167412e 100644 --- a/playwright/widget/test-helpers.ts +++ b/playwright/widget/test-helpers.ts @@ -122,6 +122,7 @@ export class TestHelpers { await this.maybeDismissBrowserNotSupportedToast(page); await this.maybeDismissServiceWorkerWarningToast(page); + await this.maybeDismissBackupChat(page); await TestHelpers.setDevToolElementCallDevUrl(page); @@ -170,6 +171,22 @@ export class TestHelpers { } } + private static async maybeDismissBackupChat(page: Page): Promise { + const toast = page + .locator(".mx_Toast_toast") + .getByText("Back up your chats"); + + try { + await expect(toast).toBeVisible({ timeout: 700 }); + await page + .locator(".mx_Toast_toast") + .getByRole("button", { name: "Dismiss" }) + .click(); + } catch { + // toast not visible, continue as normal + } + } + public static async maybeDismissKeyBackupToast(page: Page): Promise { const toast = page .locator(".mx_Toast_toast") diff --git a/src/RTCConnectionStats.tsx b/src/RTCConnectionStats.tsx index f62a1e4d..ea9df3f5 100644 --- a/src/RTCConnectionStats.tsx +++ b/src/RTCConnectionStats.tsx @@ -87,7 +87,7 @@ export const RTCConnectionStats: FC = ({
); diff --git a/src/button/ReactionToggleButton.tsx b/src/button/ReactionToggleButton.tsx index 39804a5f..c71642e9 100644 --- a/src/button/ReactionToggleButton.tsx +++ b/src/button/ReactionToggleButton.tsx @@ -173,7 +173,7 @@ export interface ReactionData { interface ReactionToggleButtonProps extends ComponentPropsWithoutRef<"button"> { reactionData: ReactionData; identifier: string; - size?: "sm" | "lg"; + size?: "md" | "lg"; /** List of participants raising their hand */ } diff --git a/src/components/CallFooter.tsx b/src/components/CallFooter.tsx index d10e4ecf..a395a389 100644 --- a/src/components/CallFooter.tsx +++ b/src/components/CallFooter.tsx @@ -106,7 +106,7 @@ export const CallFooter: FC = ({ tileStoreGeneration, }) => { const buttons: JSX.Element[] = []; - const buttonSize = asPip ? "sm" : "lg"; + const buttonSize = asPip ? "md" : "lg"; const showSettingsButton = openSettings !== undefined && !asPip && !hideControls; const showLayoutSwitcher = !asPip && !hideControls; diff --git a/src/input/AvatarInputField.tsx b/src/input/AvatarInputField.tsx index 4a3173b4..f9b14707 100644 --- a/src/input/AvatarInputField.tsx +++ b/src/input/AvatarInputField.tsx @@ -113,7 +113,7 @@ export const AvatarInputField: FC = ({ iconOnly Icon={EditIcon} kind="tertiary" - size="sm" + size="md" aria-label={t("action.edit")} /> } @@ -136,7 +136,7 @@ export const AvatarInputField: FC = ({ iconOnly Icon={EditIcon} kind="tertiary" - size="sm" + size="md" aria-label={t("action.edit")} onClick={onSelectUpload} /> diff --git a/src/room/EarpieceOverlay.tsx b/src/room/EarpieceOverlay.tsx index 6835bdd7..574792f0 100644 --- a/src/room/EarpieceOverlay.tsx +++ b/src/room/EarpieceOverlay.tsx @@ -30,7 +30,7 @@ export const EarpieceOverlay: FC = ({ show, onBackToVideoPressed }) => { {t("handset.overlay_description")}