fix(test): Resolve visual orchestration test and prepare hook env injection
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user