File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ // We are intentionally triggering errors for race-free throbber test
2
+ fail-on-request-error: false
3
+ fail-on-js-error: false
4
+
5
+ // First, make sure the throbber goes away when done
6
+ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search="
7
+ wait-for: ".search-input"
8
+ wait-for-false: ".search-form.loading"
9
+ write-into: (".search-input", "test")
10
+ press-key: 'Enter'
11
+ wait-for-false: ".search-form.loading"
12
+
13
+ // Make sure the throbber shows up if we prevent the search from
14
+ // ever finishing (this tactic is needed to make sure we don't get stuck
15
+ // with any race conditions).
16
+ go-to: "file://" + |DOC_PATH| + "/test_docs/index.html?search="
17
+ block-network-request: "*/desc/*.js"
18
+ reload:
19
+ wait-for: ".search-input"
20
+ wait-for-false: ".search-form.loading"
21
+ write-into: (".search-input", "test")
22
+ press-key: 'Enter'
23
+ wait-for: ".search-form.loading"
You can’t perform that action at this time.
0 commit comments