Debian Codegraph @

tests/gui/shadow-dom.goml

raw
1 // Tests the keypress handler when there is a shadow-dom element.
2 // See https://github.com/rust-lang/mdBook/issues/2507
3
4 go-to: |DOC_PATH| + "shadow-dom/chapter_1.html"
5
6 // Open the shadow-dom generated element.
7 press-key: 'x'
8 wait-for: '#shadow-input-host'
9 // See what happens when the s key is pressed.
10 press-key: 's'
11 wait-for: 200
12 wait-for-css: ("#mdbook-search-wrapper", {"display": "none"})
13
14 // Also try the global key handlers.
15 reload:
16 press-key: 'x'
17 wait-for: '#shadow-input-host'
18 press-key: '?'
19 wait-for: 200
20 wait-for-css: ("#mdbook-help-container", {"display": "none"})