Skip to content

Commit fb785aa

Browse files
update
1 parent be1dfe4 commit fb785aa

File tree

1 file changed

+18
-25
lines changed

1 file changed

+18
-25
lines changed

tests/regression/test_act_timeout.py

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
44
This test verifies that the timeout mechanism works correctly for act operations,
55
based on the TypeScript expect_act_timeout evaluation.
6+
7+
NOTE: Act timeout functionality has been removed from the Python implementation.
8+
These tests are skipped until timeout support is re-implemented.
69
"""
710

811
import os
@@ -62,31 +65,25 @@ async def browserbase_stagehand(self, browserbase_config):
6265
@pytest.mark.asyncio
6366
@pytest.mark.regression
6467
@pytest.mark.local
68+
@pytest.mark.skip(reason="Act timeout functionality has been removed from the Python implementation")
6569
async def test_expect_act_timeout_local(self, local_stagehand):
6670
"""
6771
Regression test: expect_act_timeout
6872
69-
Mirrors the TypeScript expect_act_timeout evaluation:
73+
SKIPPED: Act timeout functionality has been removed from the Python implementation.
74+
The timeout_ms parameter in ActOptions is not currently handled by the act handler.
75+
76+
Original test purpose:
7077
- Navigate to docs.stagehand.dev
7178
- Attempt action with 1 second timeout
7279
- Expect the action to fail due to timeout
7380
"""
74-
stagehand = local_stagehand
75-
76-
await stagehand.page.goto("https://docs.stagehand.dev")
77-
78-
result = await stagehand.page.act(
79-
"search for 'Stagehand'",
80-
timeout_ms=1000 # 1 second timeout
81-
)
82-
83-
# Test passes if the action failed (due to timeout or element not found)
84-
# This mirrors the TypeScript: _success: !result.success
85-
assert not result.success, "Action should have failed due to timeout or missing element"
81+
pass
8682

8783
@pytest.mark.asyncio
8884
@pytest.mark.regression
8985
@pytest.mark.api
86+
@pytest.mark.skip(reason="Act timeout functionality has been removed from the Python implementation")
9087
@pytest.mark.skipif(
9188
not (os.getenv("BROWSERBASE_API_KEY") and os.getenv("BROWSERBASE_PROJECT_ID")),
9289
reason="Browserbase credentials not available"
@@ -95,16 +92,12 @@ async def test_expect_act_timeout_browserbase(self, browserbase_stagehand):
9592
"""
9693
Regression test: expect_act_timeout (Browserbase)
9794
98-
Same test as local but running in Browserbase environment.
99-
"""
100-
stagehand = browserbase_stagehand
95+
SKIPPED: Act timeout functionality has been removed from the Python implementation.
96+
The timeout_ms parameter in ActOptions is not currently handled by the act handler.
10197
102-
await stagehand.page.goto("https://docs.stagehand.dev")
103-
104-
result = await stagehand.page.act(
105-
"search for 'Stagehand'",
106-
timeout_ms=1000 # 1 second timeout
107-
)
108-
109-
# Test passes if the action failed (due to timeout or element not found)
110-
assert not result.success, "Action should have failed due to timeout or missing element"
98+
Original test purpose:
99+
- Navigate to docs.stagehand.dev
100+
- Attempt action with 1 second timeout
101+
- Expect the action to fail due to timeout
102+
"""
103+
pass

0 commit comments

Comments
 (0)