Update Compound to fix tooltips (#34083)

* Update Compound to fix tooltips

and add regression test

* Update snapshot
This commit is contained in:
Michael Telatynski
2026-07-02 07:51:56 +00:00
committed by GitHub
parent 4dab5da60e
commit 82e3423be2
5 changed files with 60 additions and 7 deletions
+21 -1
View File
@@ -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: {
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -2,7 +2,7 @@
exports[`ReadReceiptGroup <ReadReceiptPerson /> should display a tooltip 1`] = `
<div
class="_tooltip_1nqnq_8 _invisible_1nqnq_21"
class="_tooltip_1nqnq_8"
data-floating-ui-focusable=""
id="react-use-id-1"
role="tooltip"