]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/cursor.goml
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / rustdoc-gui / cursor.goml
1 // This test ensures that several clickable items actually have the pointer cursor.
2 goto: "file://" + |DOC_PATH| + "/lib2/struct.Foo.html"
3
4 // the `[+]/[-]` button
5 assert-css: ("#toggle-all-docs", {"cursor": "pointer"})
6
7 // the button next to the path header
8 assert-css: ("#copy-path", {"cursor": "pointer"})
9
10 // the search tabs
11 write: (".search-input", "Foo")
12 // To be SURE that the search will be run.
13 press-key: 'Enter'
14 // Waiting for the search results to appear...
15 wait-for: "#search-tabs"
16 assert-css: ("#search-tabs > button", {"cursor": "pointer"})
17
18 // mobile sidebar toggle button
19 size: (500, 700)
20 assert-css: (".sidebar-menu-toggle", {"cursor": "pointer"})
21
22 // the sidebar toggle button on the source code pages
23 goto: "file://" + |DOC_PATH| + "/src/lib2/lib.rs.html"
24 assert-css: ("#src-sidebar-toggle > button", {"cursor": "pointer"})