fix screenshot test to include status, fix failed test report

tzemanovic
Jan 27, 2026, 3:27 PM
OLT666N4VXRYJAVF4ZBYL3FDCQB5N42BFUCMVFWN4LP5AANKWGPQC

Dependencies

Change contents

  • replacement in inflorescence_view/src/view/test.rs at line 6
    [10.3299][10.3299:3335]()
    use inflorescence_model::selection;
    [10.3299]
    [8.523]
    use inflorescence_model::{action, selection};
  • edit in inflorescence_view/src/view/test.rs at line 46
    [2.4726]
    [2.4726]
    let sub = SubState::Loading {
    user_ids: vec![],
    repo: None,
    };
    let report = report::Container::default();
    let allowed_actions = action::get_allowed(&sub, &report);
  • replacement in inflorescence_view/src/view/test.rs at line 57
    [8.722][8.722:820](),[8.820][9.16869:16902](),[9.16902][11.2409:2455]()
    sub: SubState::Loading {
    user_ids: vec![],
    repo: None,
    },
    allowed_actions: vec![],
    report: report::Container::default(),
    [8.722]
    [2.5139]
    sub,
    allowed_actions,
    report,
  • edit in inflorescence_view/src/view/test.rs at line 87
    [6.2379]
    [3.104]
    let sub = SubState::Ready(ready_state);
    let report = report::Container::default();
    let allowed_actions = action::get_allowed(&sub, &report);
  • replacement in inflorescence_view/src/view/test.rs at line 94
    [8.1230][8.1230:1273](),[8.1273][9.16903:16936](),[9.16936][11.2498:2544]()
    sub: SubState::Ready(ready_state),
    allowed_actions: vec![],
    report: report::Container::default(),
    [8.1230]
    [3.289]
    sub,
    allowed_actions,
    report,
  • edit in inflorescence_view/src/view/test.rs at line 139
    [8.1673]
    [4.8275]
    let sub = SubState::Ready(ready_state);
    let report = report::Container::default();
    let allowed_actions = action::get_allowed(&sub, &report);
  • replacement in inflorescence_view/src/view/test.rs at line 146
    [8.1712][8.1712:1755](),[8.1755][9.16937:16970](),[9.16970][11.2591:2637]()
    sub: SubState::Ready(ready_state),
    allowed_actions: vec![],
    report: report::Container::default(),
    [8.1712]
    [4.8460]
    sub,
    allowed_actions,
    report,
  • edit in inflorescence_view/src/view/test.rs at line 185
    [8.2484]
    [2.5637]
    let sub = SubState::Ready(ready_state);
    let report = report::Container::default();
    let allowed_actions = action::get_allowed(&sub, &report);
  • replacement in inflorescence_view/src/view/test.rs at line 192
    [8.2523][8.2523:2566](),[8.2566][9.16971:17004](),[9.17004][11.2813:2859]()
    sub: SubState::Ready(ready_state),
    allowed_actions: vec![],
    report: report::Container::default(),
    [8.2523]
    [2.5822]
    sub,
    allowed_actions,
    report,
  • replacement in inflorescence_view/src/view/test.rs at line 222
    [11.3627][11.3627:3685](),[11.3685][12.654:690](),[12.690][11.3685:3862](),[11.3685][11.3685:3862]()
    let state = State {
    window_size: WINDOW_SIZE,
    window_scale: WINDOW_SCALE,
    repo_path: repo_path.clone(),
    sub: SubState::Ready(ready_state),
    allowed_actions: vec![],
    report: report::Container {
    hidden: false,
    [11.3627]
    [11.3862]
    let sub = SubState::Ready(ready_state);
    let report = report::Container {
    hidden: false,
  • replacement in inflorescence_view/src/view/test.rs at line 251
    [11.5123][11.5123:5134]()
    },
    [11.5123]
    [11.5134]
    };
    let allowed_actions = action::get_allowed(&sub, &report);
    let state = State {
    window_size: WINDOW_SIZE,
    window_scale: WINDOW_SCALE,
    repo_path: repo_path.clone(),
    sub,
    allowed_actions,
    report,
  • replacement in inflorescence_view/src/testing.rs at line 126
    [2.3673][2.3673:3893]()
    if results.iter().any(|result| !result.succeeded) {
    panic!(
    "Changed views: {:#?}",
    results.into_iter().filter_map(
    |TestViewResult { name, succeeded }| if succeeded {
    [2.3673]
    [2.3893]
    let failed: Vec<_> = results
    .into_iter()
    .filter_map(
    |TestViewResult { name, succeeded }| {
    if succeeded {
  • replacement in inflorescence_view/src/testing.rs at line 135
    [2.3992][2.3992:4017]()
    )
    );
    [2.3992]
    [2.4017]
    },
    )
    .collect();
    if !failed.is_empty() {
    panic!("Changed views: {failed:#?}");
  • replacement in inflorescence_view/screenshots/loaded_shown_reports-wgpu.png at line 3
    [14.497163][14.497163:499239]()
    [14.497163]
    [14.499239]
  • replacement in inflorescence_view/screenshots/loaded_shown_reports-wgpu.png at line 727
    [14.782616][14.782616:801259]()
    [14.782616]
    [14.801259]
  • replacement in inflorescence_view/screenshots/loaded_shown_reports-wgpu.png at line 746
    [14.801470][14.801470:939358]()
    [14.801470]
    [14.939358]
  • replacement in inflorescence_view/screenshots/loaded_shown_reports-wgpu.png at line 1146
    [14.939359][14.939359:1035929]()
    [14.939359]
  • replacement in inflorescence_view/screenshots/loaded_selected_untracked-wgpu.png at line 3
    [14.1036001][14.1036001:1037091]()
    [14.1036001]
    [14.1037091]
  • replacement in inflorescence_view/screenshots/loaded_selected_untracked-wgpu.png at line 1438
    [14.1580156][14.1580156:1583462]()
    [14.1580156]
  • replacement in inflorescence_view/screenshots/loaded_point_at_untracked-wgpu.png at line 3
    [14.1583539][14.1583539:1585590]()
    [14.1583539]
    [14.1585590]
  • replacement in inflorescence_view/screenshots/loaded_point_at_untracked-wgpu.png at line 1410
    [14.2085390][14.2085390:2124848]()
    [14.2085390]
  • replacement in inflorescence_view/screenshots/loaded_non_empty_repo-wgpu.png at line 3
    [14.2124925][14.2124925:2126976]()
    [14.2124925]
    [14.2126976]
  • replacement in inflorescence_view/screenshots/loaded_non_empty_repo-wgpu.png at line 1247
    [14.2628093][14.2628093:2666164]()
    [14.2628093]
  • replacement in inflorescence_view/screenshots/loaded_empty_repo-wgpu.png at line 3
    [14.2666237][14.2666237:2668313]()
    [14.2666237]
    [14.2668313]
  • replacement in inflorescence_view/screenshots/loaded_empty_repo-wgpu.png at line 1013
    [14.3153347][14.3153347:3186875]()
    [14.3153347]