fix(test): Resolve visual orchestration test and prepare hook env injection

This commit is contained in:
2026-03-06 11:27:16 -05:00
parent 3ec8ef8e05
commit 5066e98240
4 changed files with 16 additions and 7 deletions

View File

@@ -22,6 +22,8 @@ def main() -> None:
# Read prompt from stdin
try:
prompt = sys.stdin.read()
with open("mock_debug_prompt.txt", "a") as f:
f.write(f"--- MOCK INVOKED ---\nARGS: {sys.argv}\nPROMPT:\n{prompt}\n------------------\n")
except EOFError:
prompt = ""
except Exception:

View File

@@ -14,6 +14,10 @@ def test_mma_epic_lifecycle(live_gui) -> None:
client = api_hook_client.ApiHookClient()
assert client.wait_for_server(timeout=15)
# Reset
client.click("btn_reset")
time.sleep(2)
# Set provider and path
client.set_value("current_provider", "gemini_cli")
time.sleep(2)
@@ -21,10 +25,6 @@ def test_mma_epic_lifecycle(live_gui) -> None:
client.set_value("gcli_path", f'"{sys.executable}" "{mock_path}"')
time.sleep(2)
# Reset
client.click("btn_reset")
time.sleep(2)
# Set epic and click
client.set_value("mma_epic_input", "Add timestamps")
time.sleep(1)