WIP: Regression hell
This commit is contained in:
@@ -39,11 +39,18 @@ def test_visual_mma_components(live_gui):
|
||||
client.push_event("mma_state_update", payload)
|
||||
print(" - MMA state update pushed.")
|
||||
|
||||
# Use ApiHookClient.wait_for_event if we had a specific event to wait for,
|
||||
# but here we just want to verify state.
|
||||
time.sleep(1) # Small sleep for UI to catch up with event queue
|
||||
# Poll for state update
|
||||
success = False
|
||||
for _ in range(50): # 10 seconds total
|
||||
if client.get_value("mma_active_tier") == "Tier 3":
|
||||
success = True
|
||||
break
|
||||
time.sleep(0.2)
|
||||
|
||||
assert success, f"State did not update to Tier 3. Current: {client.get_value('mma_active_tier')}"
|
||||
|
||||
# 3. Trigger HITL modal
|
||||
|
||||
print("Pushing 'mma_step_approval' event to trigger HITL modal...")
|
||||
approval_payload = {
|
||||
"ticket_id": "TICKET-002",
|
||||
|
||||
Reference in New Issue
Block a user