mdbook/tests/gui/help.goml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
597 B
Text
Raw Normal View History

2025-05-15 05:25:48 -07:00
// This GUI test checks help popup.
go-to: |DOC_PATH| + "test_book/index.html"
2025-05-15 05:25:48 -07:00
assert-css: ("#mdbook-help-container", {"display": "none"})
press-key: '?'
wait-for-css: ("#mdbook-help-container", {"display": "flex"})
press-key: 'Escape'
wait-for-css: ("#mdbook-help-container", {"display": "none"})
press-key: '?'
wait-for-css: ("#mdbook-help-container", {"display": "flex"})
// Click inside does nothing.
click: "#mdbook-help-popup"
wait-for-css: ("#mdbook-help-container", {"display": "flex"})
// Click outside dismisses.
click: "*"
wait-for-css: ("#mdbook-help-container", {"display": "none"})