|
2 | 2 | goto: file://|DOC_PATH|/test_docs/index.html
|
3 | 3 | click: "#theme-picker"
|
4 | 4 | click: "#theme-choices > button:first-child"
|
5 |
| -wait-for: 500 |
6 | 5 | // should be the ayu theme so let's check the color
|
7 |
| -assert-css: ("body", { "background-color": "rgb(15, 20, 25)" }) |
| 6 | +wait-for-css: ("body", { "background-color": "rgb(15, 20, 25)" }) |
8 | 7 | click: "#theme-choices > button:last-child"
|
9 |
| -wait-for: 500 |
10 | 8 | // should be the light theme so let's check the color
|
11 |
| -assert-css: ("body", { "background-color": "rgb(255, 255, 255)" }) |
| 9 | +wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" }) |
12 | 10 |
|
13 | 11 | goto: file://|DOC_PATH|/settings.html
|
14 | 12 | click: "#theme-light"
|
15 |
| -wait-for: 500 |
16 |
| -assert-css: ("body", { "background-color": "rgb(255, 255, 255)" }) |
| 13 | +wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" }) |
17 | 14 | assert-local-storage: { "rustdoc-theme": "light" }
|
18 | 15 |
|
19 | 16 | click: "#theme-dark"
|
20 |
| -wait-for: 500 |
21 |
| -assert-css: ("body", { "background-color": "rgb(53, 53, 53)" }) |
| 17 | +wait-for-css: ("body", { "background-color": "rgb(53, 53, 53)" }) |
22 | 18 | assert-local-storage: { "rustdoc-theme": "dark" }
|
23 | 19 |
|
24 | 20 | click: "#theme-ayu"
|
25 |
| -wait-for: 500 |
26 |
| -assert-css: ("body", { "background-color": "rgb(15, 20, 25)" }) |
| 21 | +wait-for-css: ("body", { "background-color": "rgb(15, 20, 25)" }) |
27 | 22 | assert-local-storage: { "rustdoc-theme": "ayu" }
|
0 commit comments