Skip to content

Commit faebd7a

Browse files
Extend search GUI test to include search tab title color check
1 parent 33ff610 commit faebd7a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/rustdoc-gui/search-result-color.goml

+15
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ reload:
6666

6767
// Waiting for the search results to appear...
6868
wait-for: "#titles"
69+
assert-css: (
70+
"#titles > button > div.count",
71+
{"color": "rgb(136, 136, 136)"},
72+
ALL,
73+
)
6974
assert-css: (
7075
"//*[@class='desc'][text()='Just a normal struct.']",
7176
{"color": "rgb(197, 197, 197)"},
@@ -178,6 +183,11 @@ reload:
178183

179184
// Waiting for the search results to appear...
180185
wait-for: "#titles"
186+
assert-css: (
187+
"#titles > button > div.count",
188+
{"color": "rgb(136, 136, 136)"},
189+
ALL,
190+
)
181191
assert-css: (
182192
"//*[@class='desc'][text()='Just a normal struct.']",
183193
{"color": "rgb(221, 221, 221)"},
@@ -275,6 +285,11 @@ reload:
275285

276286
// Waiting for the search results to appear...
277287
wait-for: "#titles"
288+
assert-css: (
289+
"#titles > button > div.count",
290+
{"color": "rgb(136, 136, 136)"},
291+
ALL,
292+
)
278293
assert-css: (
279294
"//*[@class='desc'][text()='Just a normal struct.']",
280295
{"color": "rgb(0, 0, 0)"},

0 commit comments

Comments
 (0)