test: account for conditional Changes navigation
This commit is contained in:
1 parent
df90fb1e0e
commit
0cabce66ed
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user