diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.py index 2d1d609d59..e28144b19f 100644 --- a/tests/studio/playwright_chat_ui.py +++ b/tests/studio/playwright_chat_ui.py @@ -336,6 +336,7 @@ with sync_playwright() as p: ); return el ? (el.innerText || '').trim() : ''; }""") + search.fill("qwen") page.wait_for_timeout(800) qwen_text = picker_visible_text() @@ -557,8 +558,7 @@ with sync_playwright() as p: acct.click(force = True) except Exception as exc: soft_fail( - f"theme cycle {cycle + 1}: account-menu click failed " - f"({exc!r})" + f"theme cycle {cycle + 1}: account-menu click failed " f"({exc!r})" ) break # Wait for the dropdown menu to actually render before diff --git a/tests/studio/playwright_extra_ui.py b/tests/studio/playwright_extra_ui.py index 860c294214..46610919de 100644 --- a/tests/studio/playwright_extra_ui.py +++ b/tests/studio/playwright_extra_ui.py @@ -94,7 +94,8 @@ with sync_playwright() as p: def shoot(name: str) -> None: _n[0] += 1 page.screenshot( - path = str(ART / f"{_n[0]:02d}-{name}.png"), full_page = True, + path = str(ART / f"{_n[0]:02d}-{name}.png"), + full_page = True, ) # ───────────────────────────────────────────────────── @@ -155,7 +156,8 @@ with sync_playwright() as p: compare_nav = page.locator('[data-tour="chat-compare"]').first if compare_nav.count() == 0: compare_nav = page.get_by_role( - "button", name = re.compile(r"^\s*Compare\s*$", re.I), + "button", + name = re.compile(r"^\s*Compare\s*$", re.I), ).first if compare_nav.count() == 0: soft_fail("Compare nav not found") @@ -214,7 +216,9 @@ with sync_playwright() as p: arg = ok_count_before + 4, timeout = 180_000, ) - info("OK Compare: 4 total new assistant bubbles after second prompt") + info( + "OK Compare: 4 total new assistant bubbles after second prompt" + ) except Exception as exc: soft_fail(f"Compare: 4 bubbles didn't appear: {exc!r}") shoot("04-compare-after-B") @@ -232,7 +236,9 @@ with sync_playwright() as p: page.wait_for_timeout(1500) shoot("05-recipes-list") # Template cards render as