Test that the app's asset source serves the sort icons (#20)
CI / core (pull_request) Successful in 37s
CI / core (push) Successful in 34s

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:
nessarandClaude Sonnet 5.5 committed 2026-11-17 23:11:29 +01:00
1 parent eccb38ce50
commit 0fbbc81b71
1 file changed
+15
+15
View File
@@ -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();