commit
ce8d8120f8
1 changed files with 16 additions and 0 deletions
16
tests/gui/help.goml
Normal file
16
tests/gui/help.goml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
// This GUI test checks help popup.
|
||||
|
||||
go-to: |DOC_PATH| + "index.html"
|
||||
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"})
|
||||
Loading…
Add table
Reference in a new issue