2022-11-05 12:14:31 -05:00
|
|
|
// huge_logo crate has a custom 712x860 logo
|
|
|
|
// test to ensure the maximum size in the layout works correctly
|
2023-04-11 12:11:34 -05:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/huge_logo/index.html"
|
2022-11-05 12:14:31 -05:00
|
|
|
|
2023-04-11 12:11:34 -05:00
|
|
|
set-window-size: (1280, 1024)
|
2024-07-01 19:08:49 -05:00
|
|
|
// offsetWidth = width of sidebar + left and right margins
|
|
|
|
assert-property: (".sidebar-crate .logo-container", {"offsetWidth": "96", "offsetHeight": 48})
|
2024-07-15 18:20:37 -05:00
|
|
|
// offsetWidth = width of sidebar, offsetHeight = height + top padding
|
|
|
|
assert-property: (".sidebar-crate .logo-container img", {"offsetWidth": "48", "offsetHeight": 64})
|
2024-07-16 12:04:40 -05:00
|
|
|
assert-css: (".sidebar-crate .logo-container img", {"border-top-width": "16px", "margin-top": "-16px"})
|
2022-11-05 12:14:31 -05:00
|
|
|
|
2023-04-11 12:11:34 -05:00
|
|
|
set-window-size: (400, 600)
|
2022-11-05 12:14:31 -05:00
|
|
|
// offset = size + margin
|
|
|
|
assert-property: (".mobile-topbar .logo-container", {"offsetWidth": "55", "offsetHeight": 45})
|
|
|
|
assert-property: (".mobile-topbar .logo-container img", {"offsetWidth": "35", "offsetHeight": 35})
|