Skip to content

Commit

Permalink
Rollup merge of #112133 - GuillaumeGomez:migrate-gui-test-color-10, r…
Browse files Browse the repository at this point in the history
…=notriddle

Migrate GUI colors test to original CSS color format

Follow-up of #111459.

r? ```@notriddle```
  • Loading branch information
matthiaskrgr authored Jun 1, 2023
2 parents 6930a94 + 9dedb43 commit 955bba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/rustdoc-gui/theme-in-history.goml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ set-local-storage: {
}
// We reload the page so the local storage settings are being used.
reload:
assert-css: ("body", { "background-color": "rgb(53, 53, 53)" })
assert-css: ("body", { "background-color": "#353535" })
assert-local-storage: { "rustdoc-theme": "dark" }

// Now we go to the settings page.
go-to: "file://" + |DOC_PATH| + "/settings.html"
wait-for: "#settings"
// We change the theme to "light".
click: "#theme-light"
wait-for-css: ("body", { "background-color": "rgb(255, 255, 255)" })
wait-for-css: ("body", { "background-color": "white" })
assert-local-storage: { "rustdoc-theme": "light" }

// We go back in history.
history-go-back:
// Confirm that we're not on the settings page.
assert-false: "#settings"
// Check that the current theme is still "light".
assert-css: ("body", { "background-color": "rgb(255, 255, 255)" })
assert-css: ("body", { "background-color": "white" })
assert-local-storage: { "rustdoc-theme": "light" }

0 comments on commit 955bba3

Please sign in to comment.