File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,21 @@ press-key: "?"
11
11
assert-css: ("#help-button .popover", {"display": "block"})
12
12
press-key: "Escape"
13
13
assert-css: ("#help-button .popover", {"display": "none"})
14
+ // Checking doc collapse and expand.
15
+ // It should be displaying a "-":
16
+ assert-text: ("#toggle-all-docs", "[\u2212]")
17
+ press-key: "-"
18
+ wait-for-text: ("#toggle-all-docs", "[+]")
19
+ assert-attribute: ("#toggle-all-docs", {"class": "will-expand"})
20
+ // Pressing it again shouldn't do anything.
21
+ press-key: "-"
22
+ assert-text: ("#toggle-all-docs", "[+]")
23
+ assert-attribute: ("#toggle-all-docs", {"class": "will-expand"})
24
+ // Expanding now.
25
+ press-key: "+"
26
+ wait-for-text: ("#toggle-all-docs", "[\u2212]")
27
+ assert-attribute: ("#toggle-all-docs", {"class": ""})
28
+ // Pressing it again shouldn't do anything.
29
+ press-key: "+"
30
+ assert-text: ("#toggle-all-docs", "[\u2212]")
31
+ assert-attribute: ("#toggle-all-docs", {"class": ""})
You can’t perform that action at this time.
0 commit comments