[Backport staging] Update Compound to fix tooltips (#34097)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
co-authored by
Michael Telatynski
parent
e49064d374
commit
713a5c6389
@@ -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: {
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
+1
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user