From 2f2e637adbb05864d2c902c9d6e07bc596e57477 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 05:19:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/studio/playwright_chat_ui.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.py index 365e82b17c..1e3afa3eff 100644 --- a/tests/studio/playwright_chat_ui.py +++ b/tests/studio/playwright_chat_ui.py @@ -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, ]