Skip to content

Commit d62b414

Browse files
authored
Rollup merge of #93453 - GuillaumeGomez:theme-change-test, r=jsha
Add GUI theme change test r? `@jsha`
2 parents c866ae5 + aee9eba commit d62b414

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/ci/docker/host-x86_64/x86_64-gnu-tools/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
7272
# https://github.com/puppeteer/puppeteer/issues/375
7373
#
7474
# We also specify the version in case we need to update it to go around cache limitations.
75-
RUN npm install -g browser-ui-test@0.5.3 --unsafe-perm=true
75+
RUN npm install -g browser-ui-test@0.5.8 --unsafe-perm=true
7676

7777
ENV RUST_CONFIGURE_ARGS \
7878
--build=x86_64-unknown-linux-gnu \

src/test/rustdoc-gui/theme-change.goml

+16
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@ click: "#theme-choices > button:last-child"
99
wait-for: 500
1010
// should be the light theme so let's check the color
1111
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
12+
13+
goto: file://|DOC_PATH|/settings.html
14+
click: "#theme-light"
15+
wait-for: 500
16+
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
17+
assert-local-storage: { "rustdoc-theme": "light" }
18+
19+
click: "#theme-dark"
20+
wait-for: 500
21+
assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
22+
assert-local-storage: { "rustdoc-theme": "dark" }
23+
24+
click: "#theme-ayu"
25+
wait-for: 500
26+
assert-css: ("body", { "background-color": "rgb(15, 20, 25)" })
27+
assert-local-storage: { "rustdoc-theme": "ayu" }

0 commit comments

Comments
 (0)