Skip to content

Commit 8968c0e

Browse files
Add test for search result resize width
1 parent c2bd786 commit 8968c0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
goto: file://|DOC_PATH|/test_docs/index.html
2+
size: (900, 1000)
3+
write: (".search-input", "test")
4+
// Waiting for the search results to appear...
5+
wait-for: "#titles"
6+
// The width is returned by "getComputedStyle" which returns the exact number instead of the
7+
// CSS rule which is "50%"...
8+
assert: (".search-results div.desc", {"width": "320px"})
9+
size: (600, 100)
10+
// As counter-intuitive as it may seem, in this width, the width is "100%", which is why
11+
// when computed it's larger.
12+
assert: (".search-results div.desc", {"width": "570px"})

0 commit comments

Comments
 (0)