22// First, try a search-by-name
33goto: file://|DOC_PATH|/test_docs/index.html
44write: (".search-input", "Foo")
5+ // To be SURE that the search will be run.
6+ press-key: 'Enter'
57// Waiting for the search results to appear...
68wait-for: "#titles"
79assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
@@ -22,6 +24,8 @@ wait-for-attribute: ("#titles > button:nth-of-type(3)", {"class": "selected"})
2224// Now try search-by-return
2325goto: file://|DOC_PATH|/test_docs/index.html
2426write: (".search-input", "-> String")
27+ // To be SURE that the search will be run.
28+ press-key: 'Enter'
2529// Waiting for the search results to appear...
2630wait-for: "#titles"
2731assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
@@ -42,6 +46,8 @@ wait-for-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
4246// Try with a search-by-return with no results
4347goto: file://|DOC_PATH|/test_docs/index.html
4448write: (".search-input", "-> Something")
49+ // To be SURE that the search will be run.
50+ press-key: 'Enter'
4551// Waiting for the search results to appear...
4652wait-for: "#titles"
4753assert-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
5056// Try with a search-by-parameter
5157goto: file://|DOC_PATH|/test_docs/index.html
5258write: (".search-input", "usize pattern")
59+ // To be SURE that the search will be run.
60+ press-key: 'Enter'
5361// Waiting for the search results to appear...
5462wait-for: "#titles"
5563assert-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
5866// Try with a search-by-parameter-and-return
5967goto: file://|DOC_PATH|/test_docs/index.html
6068write: (".search-input", "pattern -> str")
69+ // To be SURE that the search will be run.
70+ press-key: 'Enter'
6171// Waiting for the search results to appear...
6272wait-for: "#titles"
6373assert-attribute: ("#titles > button:nth-of-type(1)", {"class": "selected"})
0 commit comments