| ... | @@ -350,3 +350,22 @@ fn a_version_copied_into_its_section_is_listed_and_found() { | ... | @@ -350,3 +350,22 @@ fn a_version_copied_into_its_section_is_listed_and_found() { |
| 350 | assert_eq!(versioned, 3, "{pages:?}"); | 350 | assert_eq!(versioned, 3, "{pages:?}"); |
| 351 | assert!(!search_results(&found).is_empty(), "{found}"); | 351 | assert!(!search_results(&found).is_empty(), "{found}"); |
| 352 | } | 352 | } |
| | 353 | |
| | 354 | /// Rename on a section tab's menu opens the shut sidebar on a field that takes what is |
| | 355 | /// typed over the old name at once. |
| | 356 | #[test] |
| | 357 | fn renaming_a_section_from_its_tab_types_into_the_sidebar_at_once() { |
| | 358 | let scratch = Scratch::new("rename-shut-sidebar"); |
| | 359 | let notebook = |
| | 360 | Path::new(env!("CARGO_MANIFEST_DIR")).join("../../corpus/cross-container/candidate"); |
| | 361 | let mut steps = vec!["move 53 53", "press right", "release right", "wait 400"]; |
| | 362 | steps.extend(["key Down", "key Enter", "wait 400"]); |
| | 363 | steps.extend(["type Renamed", "wait 100", "accessibility typed"]); |
| | 364 | let [typed] = replay(&scratch, Some(&notebook), &steps) |
| | 365 | .try_into() |
| | 366 | .unwrap(); |
| | 367 | assert!( |
| | 368 | typed.contains(r#"TextInput "Name" = "Renamed" [focused]"#), |
| | 369 | "{typed}" |
| | 370 | ); |
| | 371 | } |