@@ -30,7 +30,7 @@ define-function: (
3030
3131 // Checking the color of the bottom border.
3232 assert-css: (
33- ".search-results > a ",
33+ ".search-results > li ",
3434 {"border-bottom-color": |bottom_border_color|}
3535 )
3636
@@ -85,7 +85,7 @@ define-function: (
8585 move-cursor-to: ".search-input"
8686 focus: ".search-input" // To ensure the `<a>` container isn't focused or hovered.
8787 assert-css: (
88- "//*[@class='result-name']//*[text()='test_docs::']/ancestor::a",
88+ "//*[@class='result-name']//*[text()='test_docs::']/ancestor::li/ a",
8989 {"color": |path_color|, "background-color": "transparent"},
9090 ALL,
9191 )
@@ -97,7 +97,7 @@ define-function: (
9797 {"color": |hover_path_color|},
9898 )
9999 assert-css: (
100- "//*[@class='result-name']//*[text()='test_docs::']/ancestor::a",
100+ "//*[@class='result-name']//*[text()='test_docs::']/ancestor::li/ a",
101101 {"color": |hover_path_color|, "background-color": |hover_background|},
102102 )
103103 }
@@ -109,26 +109,26 @@ define-function: (
109109 block {
110110 assert-css: (".result-" + |result_kind| + " ." + |result_kind|, {"color": |color|}, ALL)
111111 assert-css: (
112- ".result-" + |result_kind|,
112+ ".result-" + |result_kind| + "> a" ,
113113 {"color": |entry_color|, "background-color": |background_color|},
114114 )
115- move-cursor-to: ".result-" + |result_kind|
115+ move-cursor-to: ".result-" + |result_kind| + "> a"
116116 assert-css: (
117- ".result-" + |result_kind| + ":hover",
117+ ".result-" + |result_kind| + " > a :hover",
118118 {"color": |hover_entry_color|, "background-color": |hover_background_color|},
119119 )
120120 assert-css: (
121- ".result-" + |result_kind| + ":hover ." + |result_kind|,
121+ ".result-" + |result_kind| + " > a :hover ." + |result_kind|,
122122 {"color": |hover_color|},
123123 )
124124 move-cursor-to: ".search-input"
125- focus: ".result-" + |result_kind|
125+ focus: ".result-" + |result_kind| + " > a"
126126 assert-css: (
127- ".result-" + |result_kind| + ":focus",
127+ ".result-" + |result_kind| + " > a :focus",
128128 {"color": |hover_entry_color|, "background-color": |hover_background_color|},
129129 )
130130 assert-css: (
131- ".result-" + |result_kind| + ":focus ." + |result_kind|,
131+ ".result-" + |result_kind| + "> a :focus ." + |result_kind|,
132132 {"color": |hover_color|},
133133 )
134134 // color of the typename (struct, module, method, ...) before search results
0 commit comments