@@ -30,7 +30,7 @@ define-function: (
30
30
31
31
// Checking the color of the bottom border.
32
32
assert-css: (
33
- ".search-results > a ",
33
+ ".search-results > li ",
34
34
{"border-bottom-color": |bottom_border_color|}
35
35
)
36
36
@@ -85,7 +85,7 @@ define-function: (
85
85
move-cursor-to: ".search-input"
86
86
focus: ".search-input" // To ensure the `<a>` container isn't focused or hovered.
87
87
assert-css: (
88
- "//*[@class='result-name']//*[text()='test_docs::']/ancestor::a",
88
+ "//*[@class='result-name']//*[text()='test_docs::']/ancestor::li/ a",
89
89
{"color": |path_color|, "background-color": "transparent"},
90
90
ALL,
91
91
)
@@ -97,7 +97,7 @@ define-function: (
97
97
{"color": |hover_path_color|},
98
98
)
99
99
assert-css: (
100
- "//*[@class='result-name']//*[text()='test_docs::']/ancestor::a",
100
+ "//*[@class='result-name']//*[text()='test_docs::']/ancestor::li/ a",
101
101
{"color": |hover_path_color|, "background-color": |hover_background|},
102
102
)
103
103
}
@@ -109,26 +109,26 @@ define-function: (
109
109
block {
110
110
assert-css: (".result-" + |result_kind| + " ." + |result_kind|, {"color": |color|}, ALL)
111
111
assert-css: (
112
- ".result-" + |result_kind|,
112
+ ".result-" + |result_kind| + "> a" ,
113
113
{"color": |entry_color|, "background-color": |background_color|},
114
114
)
115
- move-cursor-to: ".result-" + |result_kind|
115
+ move-cursor-to: ".result-" + |result_kind| + "> a"
116
116
assert-css: (
117
- ".result-" + |result_kind| + ":hover",
117
+ ".result-" + |result_kind| + " > a :hover",
118
118
{"color": |hover_entry_color|, "background-color": |hover_background_color|},
119
119
)
120
120
assert-css: (
121
- ".result-" + |result_kind| + ":hover ." + |result_kind|,
121
+ ".result-" + |result_kind| + " > a :hover ." + |result_kind|,
122
122
{"color": |hover_color|},
123
123
)
124
124
move-cursor-to: ".search-input"
125
- focus: ".result-" + |result_kind|
125
+ focus: ".result-" + |result_kind| + " > a"
126
126
assert-css: (
127
- ".result-" + |result_kind| + ":focus",
127
+ ".result-" + |result_kind| + " > a :focus",
128
128
{"color": |hover_entry_color|, "background-color": |hover_background_color|},
129
129
)
130
130
assert-css: (
131
- ".result-" + |result_kind| + ":focus ." + |result_kind|,
131
+ ".result-" + |result_kind| + "> a :focus ." + |result_kind|,
132
132
{"color": |hover_color|},
133
133
)
134
134
// color of the typename (struct, module, method, ...) before search results
0 commit comments