Add some tests for image attachments (#9080)

Some extra tests for https://github.com/openai/codex/pull/8950
This commit is contained in:
charley-oai authored and GitHub committed 2026-01-12 13:41:50 -08:00
1 parent 5dfa780f3d
commit d7cdcfc302
5 files changed
+280

No files matched your search

@@ -2780,6 +2780,18 @@ mod tests {
}
}
#[test]
fn image_placeholder_snapshots() {
snapshot_composer_state("image_placeholder_single", false, |composer| {
composer.attach_image(PathBuf::from("/tmp/image1.png"));
});
snapshot_composer_state("image_placeholder_multiple", false, |composer| {
composer.attach_image(PathBuf::from("/tmp/image1.png"));
composer.attach_image(PathBuf::from("/tmp/image2.png"));
});
}
#[test]
fn slash_popup_model_first_for_mo_ui() {
use ratatui::Terminal;