Improve search-result-display.goml test
This commit is contained in:
parent
f748aa5634
commit
60c657f73a
1 changed files with 5 additions and 4 deletions
|
@ -38,10 +38,11 @@ compare-elements-position-near: (
|
||||||
".search-results .result-name .path",
|
".search-results .result-name .path",
|
||||||
{"y": 2, "x": 0},
|
{"y": 2, "x": 0},
|
||||||
)
|
)
|
||||||
store-size: (".search-results .result-name", {"width": width, "height": height})
|
compare-elements-size-near: (
|
||||||
store-size: (".search-results .result-name .path", {"width": sub_width, "height": sub_height})
|
".search-results .result-name",
|
||||||
assert: |width| < |sub_width| + 8 && |width| > |sub_width| - 8
|
".search-results .result-name .path",
|
||||||
assert: |height| < |sub_height| + 8 && |height| > |sub_height| - 8
|
{"width": 8, "height": 8},
|
||||||
|
)
|
||||||
|
|
||||||
// Check that the crate filter `<select>` is correctly handled when it goes to next line.
|
// Check that the crate filter `<select>` is correctly handled when it goes to next line.
|
||||||
// To do so we need to update the length of one of its `<option>`.
|
// To do so we need to update the length of one of its `<option>`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue