From 0cabce66ed39056d21de6ead8e1ce3a861bfd8e8 Mon Sep 17 00:00:00 2001 From: timmy Date: Mon, 24 Aug 2026 00:52:55 +0000 Subject: [PATCH] test: account for conditional Changes navigation --- tests/e2e/test_mobile_search_preview_navigation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/e2e/test_mobile_search_preview_navigation.py b/tests/e2e/test_mobile_search_preview_navigation.py index e54b8db..c98dc25 100644 --- a/tests/e2e/test_mobile_search_preview_navigation.py +++ b/tests/e2e/test_mobile_search_preview_navigation.py @@ -51,8 +51,10 @@ def test_rendered_mobile_search_preview_navigation_preserves_reading_space_and_d assert watch_bounds and watch_bounds["height"] >= 44 navigation = page.locator(".mobile-search-preview-nav") expect(navigation).to_be_visible() - buttons = navigation.locator("button") + buttons = navigation.locator("button:visible") + assert navigation.locator("button").count() == 5 assert buttons.count() == 4 + expect(navigation.locator('[data-search-preview-section="changes"]')).to_be_hidden() for button in buttons.all(): bounds = button.bounding_box() assert bounds and bounds["height"] >= 44