Rollup merge of #105636 - GuillaumeGomez:extend-gui-test, r=notriddle

Add check for local-storage value when changing "display line numbers" settings

r? `@notriddle`
This commit is contained in:
Matthias Krüger 2022-12-13 01:17:11 +01:00 committed by GitHub
commit 8ba9c211bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,9 @@ assert-css: ("#settings", {"display": "block"})
click: "input#line-numbers"
wait-for: 100 // wait-for-false does not exist
assert-false: "pre.example-line-numbers"
assert-local-storage: {"rustdoc-line-numbers": "false" }
// Finally, turn it on again.
click: "input#line-numbers"
wait-for: "pre.example-line-numbers"
assert-local-storage: {"rustdoc-line-numbers": "true" }