summaryrefslogtreecommitdiff
path: root/tests/tui.exp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tui.exp')
-rw-r--r--tests/tui.exp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/tui.exp b/tests/tui.exp
index fdbad27..efa4cda 100644
--- a/tests/tui.exp
+++ b/tests/tui.exp
@@ -22,6 +22,7 @@ foreach {prompt answer} {hello primary-tool-ok again same-session-ok} {
}
send -- "late-tool"; see {late-tool}; send -- "\r"; see {timeout-handled-ok}
send -- "/fixture-notice "; see {/fixture-notice }; send -- "\r"; see {workflow-notice-ok}
+send -- "\033\[200~$env(HOME)/drop.png\033\[201~ image-probe"; see {\[Image-1\] image-probe}; send -- "\r"; see {image-drop-ok}
send -- "\003"; expect eof; wait
set flag [open "$env(HOME)/.local/share/panto-antigravity/google/usage-failure" w]; close $flag
spawn -noecho $env(PANTO) resume -m antigravity:fast -r high
@@ -33,9 +34,8 @@ send -- "\003"; expect eof; wait
spawn -noecho $env(PANTO) resume -m antigravity:fast -r low
see {antigravity:}; send -- "/tree "; see {/tree }; send -- "\r"; see {session tree}
send -- "primary-tool-ok"; after 150; send -- "\r"; see {branched from}
-foreach {query answer} {branch-probe branch-seed-ok warm-probe warm-after-seed-ok} {
- send -- $query; see $query; send -- "\r"; see $answer
-}
+send -- "\033\[200~$env(HOME)/drop.png\033\[201~ branch-probe"; see {\[Image-2\] branch-probe}; send -- "\r"; see {branch-seed-ok}
+send -- "warm-probe"; see {warm-probe}; send -- "\r"; see {warm-after-seed-ok}
send -- "esc-probe"; see {esc-probe}; send -- "\r"; see {esc-window-open}
send -- "\033"; see {\[interrupted\]}
send -- "after-esc-probe"; see {after-esc-probe}; send -- "\r"; see {after-esc-ok}
@@ -75,8 +75,10 @@ see {requires direct TUI input}; send -- "\003"; expect eof; wait
spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r low -- no-tools
see {no-tools-ok}
send -- "\003"; expect eof; wait
-# xhigh exists before switching models, but not on gemini-test.
+# xhigh exists before switching models, but not on gemini-test; PDFs are rejected before ACP launch.
spawn -noecho $env(PANTO) --incognito -m antigravity:fast -r xhigh
-see {antigravity:}; send -- "unsupported"; see {unsupported}; send -- "\r"
+see {antigravity:}; send -- "\033\[200~$env(HOME)/drop.pdf\033\[201~"; see {\[Attachment-1\]}; send -- "\r"
+see {only text and image}
+send -- "unsupported"; see {unsupported}; send -- "\r"
see {reasoning level xhigh}
send -- "\003"; expect eof; wait