2022-01-21 20:41:47 +01:00
|
|
|
// Checks that the "keyword" results have the expected text alongside them.
|
2023-04-11 19:11:34 +02:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
|
2021-05-21 22:53:50 +02:00
|
|
|
write: (".search-input", "CookieMonster")
|
2022-07-16 13:53:43 +02:00
|
|
|
// To be SURE that the search will be run.
|
|
|
|
press-key: 'Enter'
|
2021-05-21 22:53:50 +02:00
|
|
|
// Waiting for the search results to appear...
|
2022-12-22 15:52:34 -07:00
|
|
|
wait-for: "#search-tabs"
|
2021-05-21 22:53:50 +02:00
|
|
|
// Note: The two next assert commands could be merged as one but readability would be
|
|
|
|
// less good.
|
|
|
|
//
|
2021-05-24 14:29:57 +02:00
|
|
|
// Checking that the CSS is displaying " (keyword)" in italic.
|
2021-06-19 12:56:55 +02:00
|
|
|
assert-text: (".result-name span.keyword > i", "(keyword)")
|
|
|
|
assert-text: (".result-name span.keyword", "CookieMonster (keyword)")
|