Skip to content

Commit 1941764

Browse files
committed
Fix sidebar-mobile test to focus on an actual focusable element
1 parent 10bdc42 commit 1941764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/rustdoc-gui/sidebar-mobile.goml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ click: ".sidebar-menu"
1313
assert-css: (".sidebar-elems", {"display": "block", "left": "-246px"})
1414
// Force the sidebar open by focusing a link inside it.
1515
// This makes it easier for keyboard users to get to it.
16-
focus: ".sidebar-title"
16+
focus: ".sidebar-title a"
1717
assert-css: (".sidebar-elems", {"display": "block", "left": "0px"})
1818
// When we tab out of the sidebar, close it.
1919
focus: ".search-input"

0 commit comments

Comments
 (0)