aKode fase 5: test e snapshot adeguati alla rinomina, 429 distinto (ProviderRateLimited), cargo fmt dopo il cambio dei prefissi

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-11 12:47:01 +01:00
parent 8b73331037
commit ad43f9281a
919 changed files with 2358 additions and 2430 deletions

View File

@@ -327,7 +327,10 @@ fn long_model_list_filters_by_text_and_free_toggle() {
"google/gemma-3-27b-it:free".to_string(),
],
})));
assert!(wizard.is_text_entry_active(), "typed text goes to the filter");
assert!(
wizard.is_text_entry_active(),
"typed text goes to the filter"
);
snapshot_all_widths("setup_model_search_empty", &wizard, 20);
// `j`/`k` are text here, not navigation.
@@ -348,8 +351,14 @@ fn long_model_list_filters_by_text_and_free_toggle() {
})));
type_text(&mut wizard, "zz");
let rendered = render(&wizard, 80, 16);
assert!(rendered.contains("Nessun modello corrisponde."), "{rendered}");
assert!(!rendered.contains("solo gratuiti"), "no toggle without free models");
assert!(
rendered.contains("Nessun modello corrisponde."),
"{rendered}"
);
assert!(
!rendered.contains("solo gratuiti"),
"no toggle without free models"
);
wizard.handle_key_event(key(KeyCode::Backspace));
wizard.handle_key_event(key(KeyCode::Esc));
assert_eq!(wizard.page, Page::Model);