Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Show tooltips on narrow tabbed views #12624

Merged
merged 8 commits into from
Jun 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Assert tooltip appears in playwright test
dbkr committed Jun 14, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 987df4525d1a579e101ef61576deb18f05501205
6 changes: 6 additions & 0 deletions playwright/e2e/settings/general-user-settings-tab.spec.ts
Original file line number Diff line number Diff line change
@@ -120,6 +120,12 @@ test.describe("General user settings tab", () => {
await expect(uut).toMatchScreenshot("general-smallscreen.png");
});

test("should show tooltips on narrow screen", async ({ page, uut }) => {
await page.setViewportSize({ width: 700, height: 600 });
await page.getByRole("tab", { name: "General" }).hover();
await expect(page.getByRole("tooltip")).toHaveText("General");
});

test("should support adding and removing a profile picture", async ({ uut, page }) => {
const profileSettings = uut.locator(".mx_UserProfileSettings");
// Upload a picture