diff --git a/tests/studio/playwright_chat_ui.py b/tests/studio/playwright_chat_ui.py index 54e9ca2f46..f9147054ee 100644 --- a/tests/studio/playwright_chat_ui.py +++ b/tests/studio/playwright_chat_ui.py @@ -569,6 +569,21 @@ with sync_playwright() as p: # this at temp 0), and the old non-empty predicate got stuck # on such bubbles. bubbles_before = _bubble_count() + # The llama.cpp and web update banners are fixed bottom-right toasts + # (z-9998 / z-9999) that can overlap the composer's Send button and + # intercept the click. Snooze whichever is showing before sending. + for prefix in ("llama", "web"): + snooze_btn = page.locator(f'[data-testid="{prefix}-update-snooze-button"]') + if snooze_btn.count(): + try: + snooze_btn.first.click(timeout = 2_000) + page.wait_for_selector( + f'[data-testid="{prefix}-update-banner"]', + state = "detached", + timeout = 5_000, + ) + except Exception: + pass composer.click() composer.fill(prompt) page.locator('button[aria-label="Send message"]').click()