diff --git a/tests/test_extended_sims.py b/tests/test_extended_sims.py index 4a911617..92981017 100644 --- a/tests/test_extended_sims.py +++ b/tests/test_extended_sims.py @@ -56,7 +56,6 @@ def test_tools_sim_live(live_gui: Any) -> None: time.sleep(2) sim.teardown() @pytest.mark.integration -@pytest.mark.skip(reason="Requires real AI provider (gemini API key); 3 consecutive error status aborts the simulation. Pre-existing flake documented in fix_test_failures_20260624. See docs/reports/TRACK_COMPLETION_fix_test_failures_20260624.md VC4 PARTIAL note.") def test_execution_sim_live(live_gui: Any) -> None: """Run the Execution & Modals simulation against a live GUI.""" client = ApiHookClient() @@ -65,8 +64,10 @@ def test_execution_sim_live(live_gui: Any) -> None: sim.setup("LiveExecutionSim") # Enable manual approval to test modals client.set_value('manual_approve', True) - client.set_value('current_provider', 'gemini') - client.set_value('current_model', 'gemini-2.5-flash-lite') + # Use gemini_cli with the mock script (same pattern as the other 3 sims + # in this file: context_sim_live, ai_settings_sim_live, tools_sim_live) + client.set_value('current_provider', 'gemini_cli') + client.set_value('gcli_path', f'"{sys.executable}" "{os.path.abspath("tests/mock_gemini_cli.py")}"') client.set_value('auto_add_history', True) sim.run() time.sleep(2)