@@ -5,28 +5,28 @@ write: (".search-input", "Foo")
5
5
// Waiting for the search results to appear...
6
6
wait-for: "#titles"
7
7
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
8
- assert-text: ("#titles > button:nth-of-type(1)", "In Names", CONTAINS )
8
+ assert-text: ("#titles > button:nth-of-type(1)", "In Names", STARTS_WITH )
9
9
10
10
// Now try search-by-return
11
11
goto: file://|DOC_PATH|/test_docs/index.html
12
12
write: (".search-input", "-> String")
13
13
// Waiting for the search results to appear...
14
14
wait-for: "#titles"
15
15
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
16
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Signature", CONTAINS )
16
+ assert-text: ("#titles > button:nth-of-type(1)", "In Function Signature", STARTS_WITH )
17
17
18
18
// Try with a search-by-return with no results
19
19
goto: file://|DOC_PATH|/test_docs/index.html
20
20
write: (".search-input", "-> Something")
21
21
// Waiting for the search results to appear...
22
22
wait-for: "#titles"
23
23
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
24
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Signature", CONTAINS )
24
+ assert-text: ("#titles > button:nth-of-type(1)", "In Function Signature", STARTS_WITH )
25
25
26
26
// Try with a search-by-return with no results
27
27
goto: file://|DOC_PATH|/test_docs/index.html
28
28
write: (".search-input", "usize pattern")
29
29
// Waiting for the search results to appear...
30
30
wait-for: "#titles"
31
31
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
32
- assert-text: ("#titles > button:nth-of-type(1)", "In Function Signature", CONTAINS )
32
+ assert-text: ("#titles > button:nth-of-type(1)", "In Function Signature", STARTS_WITH )
0 commit comments