2
2
// First, try a search-by-name
3
3
goto: file://|DOC_PATH|/test_docs/index.html
4
4
write: (".search-input", "Foo")
5
+ // To be SURE that the search will be run.
6
+ press-key: 'Enter'
5
7
// Waiting for the search results to appear...
6
8
wait-for: "#titles"
7
9
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
@@ -22,6 +24,8 @@ wait-for-attribute: ("#titles > button:nth-of-type(3)", {"class": "selected"})
22
24
// Now try search-by-return
23
25
goto: file://|DOC_PATH|/test_docs/index.html
24
26
write: (".search-input", "-> String")
27
+ // To be SURE that the search will be run.
28
+ press-key: 'Enter'
25
29
// Waiting for the search results to appear...
26
30
wait-for: "#titles"
27
31
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
@@ -42,6 +46,8 @@ wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
42
46
// Try with a search-by-return with no results
43
47
goto: file://|DOC_PATH|/test_docs/index.html
44
48
write: (".search-input", "-> Something")
49
+ // To be SURE that the search will be run.
50
+ press-key: 'Enter'
45
51
// Waiting for the search results to appear...
46
52
wait-for: "#titles"
47
53
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
@@ -50,6 +56,8 @@ assert-text: ("#titles > button:nth-of-type(1)", "In Function Return Types", STA
50
56
// Try with a search-by-parameter
51
57
goto: file://|DOC_PATH|/test_docs/index.html
52
58
write: (".search-input", "usize pattern")
59
+ // To be SURE that the search will be run.
60
+ press-key: 'Enter'
53
61
// Waiting for the search results to appear...
54
62
wait-for: "#titles"
55
63
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
@@ -58,6 +66,8 @@ assert-text: ("#titles > button:nth-of-type(1)", "In Function Parameters", START
58
66
// Try with a search-by-parameter-and-return
59
67
goto: file://|DOC_PATH|/test_docs/index.html
60
68
write: (".search-input", "pattern -> str")
69
+ // To be SURE that the search will be run.
70
+ press-key: 'Enter'
61
71
// Waiting for the search results to appear...
62
72
wait-for: "#titles"
63
73
assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
0 commit comments