File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Checks that the crate name in release list doesn't overflow when hovered.
2
+
3
+ go-to: |DOC_PATH|
4
+ // We reduce the width to 800px because the text will be on 3 different lines. Meaning
5
+ // that if it overflows, the height will be smaller than expected since it will only take
6
+ // 2 lines.
7
+ set-window-size: (1200, 600)
8
+ set-text: ("ul a.release .name", "blabla_under_something_longname_right-0.7.0")
9
+ move-cursor-to: "ul a.release .name"
10
+ assert-css: ("ul a.release .name:hover", { "line-height": "22.4px" })
11
+ // 45 / 2 = 22.5, so it's on 2 lines
12
+ assert-size: ("ul a.release .name:hover", { "height": 45 })
13
+ // We reduce the width to it should now take 3 lines.
14
+ set-window-size: (800, 600)
15
+ // 67 / 2 = 33.5, so it's more than 2 lines
16
+ assert-size: ("ul a.release .name:hover", { "height": 67 })
You can’t perform that action at this time.
0 commit comments