Add GUI test for javascript disabled display of settings page

This commit is contained in:
Guillaume Gomez 2022-05-28 18:03:35 +02:00
parent e297bbf4c7
commit bfb16b9dd7

View file

@ -65,3 +65,9 @@ assert-local-storage: {"rustdoc-disable-shortcuts": "true"}
goto: file://|DOC_PATH|/settings.html
wait-for: "#settings"
assert-css: (".setting-line .toggle .slider", {"width": "45px", "margin-right": "20px"})
// We now check the display with JS disabled.
assert-false: "noscript section"
javascript: false
reload:
assert-css: ("noscript section", {"display": "block"})