fix(webui): underline focused sidebar titles instead of boxing the row (#6750)
This commit is contained in:
1 parent
b65c3ac7fa
commit
843dc20121
2 files changed
+8
-4
No files matched your search
@@ -17,7 +17,10 @@ for (const method of ["Enter", "Save button"] as const) {
|
||||
const renamedTopic = sidebar.getByRole("button", { name: "@jaru Renamed topic", exact: true });
|
||||
await expect(renamedTopic).toBeFocused();
|
||||
await expect(activeTopic).toHaveAttribute("aria-current", "page");
|
||||
await expect(renamedTopic).toHaveCSS("outline-style", method === "Enter" ? "solid" : "none");
|
||||
await expect(renamedTopic).toHaveCSS("outline-style", "none");
|
||||
await expect(renamedTopic.getByText("Renamed topic", { exact: true })).toHaveCSS(
|
||||
"text-decoration-line", method === "Enter" ? "underline" : "none",
|
||||
);
|
||||
if (method === "Enter") {
|
||||
await page.keyboard.press("Tab");
|
||||
await expect(sidebar.getByRole("button", { name: "Topic actions for Renamed topic" })).toBeFocused();
|
||||
|
||||
Reference in new issue
Block a user