diff --git a/apps/web/playwright/e2e/spaces/spaces.spec.ts b/apps/web/playwright/e2e/spaces/spaces.spec.ts index 784adf7d77..b1ce9eb36e 100644 --- a/apps/web/playwright/e2e/spaces/spaces.spec.ts +++ b/apps/web/playwright/e2e/spaces/spaces.spec.ts @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Com Please see LICENSE files in the repository root for full details. */ -import { rejectToast } from "@element-hq/element-web-playwright-common"; +import { assertNoToasts, rejectToast } from "@element-hq/element-web-playwright-common"; import type { Locator, Page } from "@playwright/test"; import { test, expect } from "../../element-web-test"; @@ -405,6 +405,26 @@ test.describe("Spaces", () => { ); }); + test("should render render tooltip on focus of metaspace", { tag: "@screenshot" }, async ({ page, user }) => { + await rejectToast(page, "Verify this device"); + await rejectToast(page, "Notifications"); + // Wait for toasts to clear otherwise they will mess with our screenshot + await assertNoToasts(page); + + await page.getByRole("tree", { name: "Spaces" }).getByRole("button", { name: "Home" }).hover(); + await expect(page.getByRole("tooltip", { name: "Home" })).toBeVisible(); + + await expect(page).toMatchScreenshot("space-panel-home-tooltip.png", { + showTooltips: true, + clip: { + x: 0, + y: 60, + width: 140, + height: 60, + }, + }); + }); + test.describe("Should hide public spaces option if not allowed", () => { test.use({ config: { diff --git a/apps/web/playwright/snapshots/spaces/spaces.spec.ts/space-panel-home-tooltip-linux.png b/apps/web/playwright/snapshots/spaces/spaces.spec.ts/space-panel-home-tooltip-linux.png new file mode 100644 index 0000000000..c98f840f29 Binary files /dev/null and b/apps/web/playwright/snapshots/spaces/spaces.spec.ts/space-panel-home-tooltip-linux.png differ diff --git a/apps/web/test/unit-tests/components/views/rooms/__snapshots__/ReadReceiptGroup-test.tsx.snap b/apps/web/test/unit-tests/components/views/rooms/__snapshots__/ReadReceiptGroup-test.tsx.snap index 7b5ddaebc7..df84c2e715 100644 --- a/apps/web/test/unit-tests/components/views/rooms/__snapshots__/ReadReceiptGroup-test.tsx.snap +++ b/apps/web/test/unit-tests/components/views/rooms/__snapshots__/ReadReceiptGroup-test.tsx.snap @@ -2,7 +2,7 @@ exports[`ReadReceiptGroup should display a tooltip 1`] = `