mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-07 16:18:54 +00:00
fix(form): preserve 480px user bar boundary
Keep the mobile layout below 480px and lock both sides of the breakpoint with browser coverage.
This commit is contained in:
parent
ae03a227d5
commit
58be9ea2f6
1 changed files with 12 additions and 0 deletions
|
|
@ -432,3 +432,15 @@ class TestGenerateFormGooglePlaywright:
|
||||||
})"""
|
})"""
|
||||||
)
|
)
|
||||||
assert dimensions["scrollWidth"] == dimensions["clientWidth"]
|
assert dimensions["scrollWidth"] == dimensions["clientWidth"]
|
||||||
|
|
||||||
|
def test_user_bar_wraps_below_shared_mobile_breakpoint(
|
||||||
|
self, signed_in_admin_page
|
||||||
|
):
|
||||||
|
page = signed_in_admin_page
|
||||||
|
page.set_viewport_size({"width": 479, "height": 800})
|
||||||
|
assert (
|
||||||
|
page.locator(".user-bar").evaluate(
|
||||||
|
"(element) => getComputedStyle(element).flexWrap"
|
||||||
|
)
|
||||||
|
== "wrap"
|
||||||
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue