| // 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", | |
| }) |