mirror of
https://github.com/openai/codex.git
synced 2026-11-25 07:23:22 +00:00
Add some tests for image attachments (#9080)
Some extra tests for https://github.com/openai/codex/pull/8950
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user