Test that the app's asset source serves the sort icons (#20)
The icons were invisible because no asset source was registered; main now registers gpui-kit's default assets (#19). Guard the three header icons. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit was merged in pull request #41.
This commit is contained in:
1 parent
eccb38ce50
commit
0fbbc81b71
1 file changed
+15
@@ -334,6 +334,21 @@ pub(crate) mod tests {
|
||||
assert_eq!(cell_text(&row, SortKey::State), "Validé");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn the_app_asset_source_serves_the_sort_icons() {
|
||||
use gpui_kit::AssetSource;
|
||||
use gpui_kit::component::{IconName, IconNamed as _};
|
||||
for icon in [
|
||||
IconName::SortAscending,
|
||||
IconName::SortDescending,
|
||||
IconName::ChevronsUpDown,
|
||||
] {
|
||||
let path = icon.path();
|
||||
let svg = AssetSource::load(&gpui_kit::assets::Assets, &path);
|
||||
assert!(matches!(svg, Ok(Some(_))), "icon manquante : {path}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn attempts_column_is_hidden_outside_a_season() {
|
||||
let mut table = ChampionTable::new();
|
||||
|
||||
Reference in new issue
Block a user