@@ -5,36 +5,25 @@ assert-false: "#settings"
5
5
// We now click on the settings button.
6
6
click: "#settings-menu"
7
7
wait-for: "#settings"
8
- assert: "#main-content.hidden"
9
8
assert-css: ("#settings", {"display": "block"})
10
9
// Let's close it by clicking on the same button.
11
10
click: "#settings-menu"
12
- assert-false: "#alternative-display #settings"
13
- assert: "#not-displayed #settings"
14
- assert: "#main-content:not(.hidden)"
15
-
16
- // Let's open and then close it again with the "close settings" button.
17
- click: "#settings-menu"
18
- wait-for: "#alternative-display #settings"
19
- assert: "#main-content.hidden"
20
- click: "#back"
21
- wait-for: "#not-displayed #settings"
22
- assert: "#main-content:not(.hidden)"
11
+ wait-for-css: ("#settings", {"display": "none"})
23
12
24
13
// Let's check that pressing "ESCAPE" is closing it.
25
14
click: "#settings-menu"
26
- wait-for: "#alternative- display #settings"
15
+ wait-for-css: ("#settings", {" display": "block"})
27
16
press-key: "Escape"
28
- wait-for: "#not-displayed #settings"
29
- assert: "#main-content:not(.hidden)"
17
+ wait-for-css: ("#settings", {"display": "none"})
30
18
31
19
// Let's click on it when the search results are displayed.
32
20
focus: ".search-input"
33
21
write: "test"
34
22
wait-for: "#alternative-display #search"
35
23
click: "#settings-menu"
36
- wait-for: "#alternative-display #settings"
37
- assert: "#not-displayed #search"
24
+ wait-for-css: ("#settings", {"display": "block"})
25
+ // Ensure that the search is still displayed.
26
+ wait-for: "#alternative-display #search"
38
27
assert: "#main-content.hidden"
39
28
40
29
// Now let's check the content of the settings menu.
0 commit comments