fix(test): update mobile navbar test for bottom-nav design
The test expected .top-navbar visible on mobile, but the simplified design hides it and shows .bottom-nav instead. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -89,14 +89,14 @@ def test_responsive_page(
|
|||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
def test_mobile_navbar_visible(pw_browser, base_url: str):
|
def test_mobile_navbar_visible(pw_browser, base_url: str):
|
||||||
"""Mobile viewport: navbar should still be visible and functional."""
|
"""Mobile viewport: bottom nav should be visible (top navbar hidden on mobile)."""
|
||||||
context = pw_browser.new_context(viewport=VIEWPORTS["mobile"])
|
context = pw_browser.new_context(viewport=VIEWPORTS["mobile"])
|
||||||
page = context.new_page()
|
page = context.new_page()
|
||||||
try:
|
try:
|
||||||
page.goto(base_url, wait_until="networkidle", timeout=15_000)
|
page.goto(base_url, wait_until="networkidle", timeout=15_000)
|
||||||
# Custom navbar: .top-navbar with .navbar-brand
|
# On mobile, top-navbar is hidden and bottom-nav is shown
|
||||||
navbar = page.locator(".top-navbar")
|
bottom_nav = page.locator(".bottom-nav")
|
||||||
expect(navbar).to_be_visible()
|
expect(bottom_nav).to_be_visible()
|
||||||
finally:
|
finally:
|
||||||
context.close()
|
context.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user