2022-11-05 17:14:31 +00:00
|
|
|
// huge_logo crate has a custom 712x860 logo
|
|
|
|
// test to ensure the maximum size in the layout works correctly
|
2023-04-11 17:11:34 +00:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/huge_logo/index.html"
|
2022-11-05 17:14:31 +00:00
|
|
|
|
2023-04-11 17:11:34 +00:00
|
|
|
set-window-size: (1280, 1024)
|
2024-07-02 00:08:49 +00:00
|
|
|
// offsetWidth = width of sidebar + left and right margins
|
|
|
|
assert-property: (".sidebar-crate .logo-container", {"offsetWidth": "96", "offsetHeight": 48})
|
2024-07-15 23:20:37 +00:00
|
|
|
// offsetWidth = width of sidebar, offsetHeight = height + top padding
|
|
|
|
assert-property: (".sidebar-crate .logo-container img", {"offsetWidth": "48", "offsetHeight": 64})
|
2022-11-05 17:14:31 +00:00
|
|
|
|
2023-04-11 17:11:34 +00:00
|
|
|
set-window-size: (400, 600)
|
2022-11-05 17:14:31 +00: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})
|