Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.
Python ai-agentsai-toolsbrowser-agentbrowser-automationbrowser-usecdpcloud-browsercomputer-useheadless-browserllmmcpplaywrightpythonremote-browserstealth-browserweb-automationweb-scraping
Updated test_step_interval_calculation()
Saurav Pandad24361655026
diff --git a/tests/ci/test_history_wait_time.py b/tests/ci/test_history_wait_time.pyindex 37597b6cf..8479e9b29 100644--- a/tests/ci/test_history_wait_time.py+++ b/tests/ci/test_history_wait_time.py@@ -21,18 +21,19 @@ def test_step_metadata_step_interval_optional():def test_step_interval_calculation():- """Test step_interval calculation logic (step duration)"""- # Step starts at 100.0- step_start = 100.0-- # Step ends at 102.5- step_end = 102.5-- # Step duration should be 2.5 seconds- expected_duration = 2.5- calculated_duration = step_end - step_start-- assert abs(calculated_duration - expected_duration) < 0.001 # Float comparison+ """Test step_interval calculation logic (uses previous step's duration)"""+ # Previous step (Step 1): runs from 100.0 to 102.5 (duration: 2.5s)+ previous_start = 100.0+ previous_end = 102.5+ previous_duration = previous_end - previous_start++ # Current step (Step 2): should have step_interval = previous step's duration+ # This tells the rerun system "wait 2.5s before executing Step 2"+ expected_step_interval = previous_duration+ calculated_step_interval = max(0, previous_end - previous_start)++ assert abs(calculated_step_interval - expected_step_interval) < 0.001 # Float comparison+ assert calculated_step_interval == 2.5def test_step_metadata_serialization_with_step_interval():