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