feat(gui): Add auto-scroll, blinking history, and reactive API events
This commit is contained in:
@@ -12,17 +12,12 @@ class ExecutionSimulation(BaseSimulation):
|
||||
print(f"[Sim] Sending message to trigger script: {msg}")
|
||||
self.sim.run_discussion_turn(msg)
|
||||
|
||||
# 2. Wait for confirmation modal
|
||||
print("[Sim] Waiting for confirmation modal...")
|
||||
modal_shown = False
|
||||
for i in range(30):
|
||||
if self.client.get_value("show_confirm_modal"):
|
||||
modal_shown = True
|
||||
print(f"[Sim] Modal shown at second {i}")
|
||||
break
|
||||
time.sleep(1)
|
||||
# 2. Wait for confirmation event
|
||||
print("[Sim] Waiting for confirmation event...")
|
||||
ev = self.client.wait_for_event("script_confirmation_required", timeout=45)
|
||||
|
||||
assert modal_shown, "Expected confirmation modal to be shown"
|
||||
assert ev is not None, "Expected script_confirmation_required event"
|
||||
print(f"[Sim] Event received: {ev}")
|
||||
|
||||
# 3. Approve script
|
||||
print("[Sim] Approving script execution...")
|
||||
|
||||
Reference in New Issue
Block a user