test(import): the date step refuses a spelling clash (improvise-d0n6)
This commit is contained in:
committed by
Edward Langley
parent
08b7ab0f35
commit
22d10987bf
@@ -3577,4 +3577,20 @@ mod date_hierarchy {
|
||||
"{warnings:?}"
|
||||
);
|
||||
}
|
||||
|
||||
/// The clash is answered on the date step, where `s` fixes it, not on the
|
||||
/// last step three screens later (improvise-907).
|
||||
#[test]
|
||||
fn the_date_step_will_not_advance_over_a_spelling_clash() {
|
||||
use super::{ImportWizard, WizardStep};
|
||||
let mut w = ImportWizard::from_pipeline(with_raw("2024"));
|
||||
w.step = WizardStep::ConfigureDates;
|
||||
w.advance();
|
||||
assert_eq!(w.step, WizardStep::ConfigureDates);
|
||||
let msg = w.message.clone().unwrap_or_default();
|
||||
assert!(msg.contains("'Date'") && msg.contains("2024"), "{msg}");
|
||||
w.toggle_date_shape();
|
||||
w.advance();
|
||||
assert_ne!(w.step, WizardStep::ConfigureDates, "split clears it");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user