blob: f31b83e12edf0a48f2bdba321333c60c0db37e6e [file] [edit]
// This test ensures that the notable trait badges are correctly rendered.
go-to: "file://" + |DOC_PATH| + "/test_docs/notable/struct.Wrapper.html"
show-text: true
store-css: (".notable-trait-badge-container", {"background-color": background_color})
// The background color should be different.
assert-css-false: (".notable-trait-badge-container > a", {"background-color": |background_color|})
store-css: ("#trait-implementations", {"color": text_color})
assert-css: (".notable-trait-badge-container > a", {
// The color should be the same as the "main color".
"color": |text_color|,
// Checking some additional CSS values.
"border-radius": "12px",
})