Skip to content

Commit f654ac4

Browse files
committed
update tests
1 parent 144a914 commit f654ac4

File tree

4 files changed

+3
-17
lines changed

4 files changed

+3
-17
lines changed

packages/core/lib/v3/agent/utils/validateExperimentalFeatures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface AgentValidationOptions {
2222
* - Invalid argument errors for CUA (streaming, abort signal, message continuation, excludeTools, output schema are not supported)
2323
* - Experimental feature checks for integrations and tools (both CUA and non-CUA)
2424
* - Experimental feature checks for hybrid mode (requires experimental: true)
25-
* - Experimental feature checks for non-CUA only (callbacks, signal, messages, streaming, excludeTools, output schema)
25+
* - Experimental feature checks for non-CUA only (callbacks, signal, messages, excludeTools, output schema)
2626
*
2727
* Throws StagehandInvalidArgumentError for invalid/unsupported configurations.
2828
* Throws ExperimentalNotConfiguredError if experimental features are used without experimental mode.

packages/core/lib/v3/tests/agent-callbacks.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test.describe("Stagehand agent callbacks behavior", () => {
1010
test.beforeEach(async () => {
1111
v3 = new V3({
1212
...v3TestConfig,
13-
experimental: true, // Required for callbacks and streaming
13+
experimental: true, // Required for callbacks
1414
});
1515
await v3.init();
1616
});

packages/core/lib/v3/tests/agent-experimental-validation.spec.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,6 @@ test.describe("Stagehand agent experimental feature validation", () => {
129129
}
130130
});
131131

132-
test("throws ExperimentalNotConfiguredError for streaming mode", async () => {
133-
try {
134-
const agent = v3.agent({
135-
stream: true,
136-
model: "anthropic/claude-sonnet-4-20250514",
137-
});
138-
await agent.execute("test instruction");
139-
throw new Error("Expected error to be thrown");
140-
} catch (error) {
141-
expect(error).toBeInstanceOf(ExperimentalNotConfiguredError);
142-
expect((error as Error).message).toContain("streaming");
143-
}
144-
});
145-
146132
test("throws ExperimentalNotConfiguredError for callbacks", async () => {
147133
const agent = v3.agent({
148134
model: "anthropic/claude-sonnet-4-20250514",

packages/core/lib/v3/tests/agent-streaming.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test.describe("Stagehand agent streaming behavior", () => {
99
test.beforeEach(async () => {
1010
v3 = new V3({
1111
...v3TestConfig,
12-
experimental: true, // Required for streaming
12+
experimental: true,
1313
});
1414
await v3.init();
1515
});

0 commit comments

Comments
 (0)