[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-05-07 05:19:51 +00:00
commit 2f2e637adb

View file

@ -641,11 +641,10 @@ with sync_playwright() as p:
# label; the role+name path fails when the sidebar collapses
# to icon-only mode and the visible text gets visually hidden.
candidates = [
page.locator(
f'[data-sidebar="menu-button"]:has-text("{label}")'
).first,
page.locator(f'[data-sidebar="menu-button"]:has-text("{label}")').first,
page.get_by_role(
"button", name = re.compile(rf"^\s*{label}\s*$", re.I),
"button",
name = re.compile(rf"^\s*{label}\s*$", re.I),
).first,
page.locator(f'button:has-text("{label}")').first,
]