wip test stabalization is a mess still
This commit is contained in:
@@ -64,9 +64,9 @@ def test_mma_complete_lifecycle(live_gui) -> None:
|
||||
# ------------------------------------------------------------------
|
||||
# Stage 1: Provider setup
|
||||
# ------------------------------------------------------------------
|
||||
client.set_value('current_provider', 'gemini')
|
||||
client.set_value('current_provider', 'gemini_cli')
|
||||
time.sleep(0.3)
|
||||
client.set_value('current_model', 'gemini-2.5-flash-lite')
|
||||
client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"')
|
||||
time.sleep(0.3)
|
||||
client.set_value('files_base_dir', 'tests/artifacts/temp_workspace')
|
||||
time.sleep(0.3)
|
||||
@@ -78,7 +78,7 @@ def test_mma_complete_lifecycle(live_gui) -> None:
|
||||
# ------------------------------------------------------------------
|
||||
# Keep prompt short and simple so the model returns minimal JSON
|
||||
client.set_value('mma_epic_input',
|
||||
'Add a hello_world greeting function to the project')
|
||||
'PATH: Epic Initialization')
|
||||
time.sleep(0.3)
|
||||
client.click('btn_mma_plan_epic')
|
||||
time.sleep(0.5) # frame-sync after click
|
||||
@@ -118,10 +118,15 @@ def test_mma_complete_lifecycle(live_gui) -> None:
|
||||
# ------------------------------------------------------------------
|
||||
# Stage 6: Load first track, verify active_tickets populate
|
||||
# ------------------------------------------------------------------
|
||||
track_id = tracks_list[0]['id']
|
||||
target_track = next((t for t in tracks_list if "hello_world" in t.get('title', '')), tracks_list[0])
|
||||
track_id = target_track['id']
|
||||
print(f"[SIM] Loading track: {track_id}")
|
||||
client.click('btn_mma_load_track', user_data=track_id)
|
||||
time.sleep(1.0) # frame-sync after load click
|
||||
|
||||
print(f"[SIM] Starting track: {track_id}")
|
||||
client.click('btn_mma_start_track', user_data=track_id)
|
||||
time.sleep(1.0) # frame-sync after start click
|
||||
|
||||
def _track_loaded(s):
|
||||
at = s.get('active_track')
|
||||
|
||||
Reference in New Issue
Block a user