2021-05-22 16:41:26 +02:00
|
|
|
goto: file://|DOC_PATH|/test_docs/index.html
|
|
|
|
size: (900, 1000)
|
|
|
|
write: (".search-input", "test")
|
|
|
|
// Waiting for the search results to appear...
|
|
|
|
wait-for: "#titles"
|
|
|
|
// The width is returned by "getComputedStyle" which returns the exact number instead of the
|
|
|
|
// CSS rule which is "50%"...
|
2021-06-19 12:56:55 +02:00
|
|
|
assert-css: (".search-results div.desc", {"width": "320px"})
|
2021-05-22 16:41:26 +02:00
|
|
|
size: (600, 100)
|
|
|
|
// As counter-intuitive as it may seem, in this width, the width is "100%", which is why
|
|
|
|
// when computed it's larger.
|
2021-06-19 12:56:55 +02:00
|
|
|
assert-css: (".search-results div.desc", {"width": "570px"})
|