testdriverai 7.9.7-test → 7.9.9-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/agent/lib/sdk.js CHANGED
@@ -395,10 +395,7 @@ const createSDK = (emitter, config, sessionInstance) => {
395
395
  const savedKB = (data.image.length / 1024).toFixed(0);
396
396
  delete data.image;
397
397
  data.imageKey = imageKey;
398
- emitter.emit(events.log?.debug || events.sdk.request, {
399
- path,
400
- message: `[sdk] uploaded screenshot to S3 (saved ${savedKB}KB inline), imageKey=${imageKey}`,
401
- });
398
+
402
399
  }
403
400
  } catch (uploadErr) {
404
401
  // Non-fatal: fall back to sending base64 inline
@@ -2,16 +2,16 @@
2
2
  "$schema": "./examples-manifest.schema.json",
3
3
  "examples": {
4
4
  "assert.test.mjs": {
5
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739c14b73310c7839439",
6
- "lastUpdated": "2026-03-29T00:50:11.415Z"
5
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb166df6a1c5774e8059ab",
6
+ "lastUpdated": "2026-03-31T00:53:17.643Z"
7
7
  },
8
8
  "drag-and-drop.test.mjs": {
9
9
  "url": "https://console.testdriver.ai/runs/69a62b3aaa712ecd3dea730a/69a62b42fc0ac3cc632a918b",
10
10
  "lastUpdated": "2026-03-03T00:32:25.275Z"
11
11
  },
12
12
  "exec-pwsh.test.mjs": {
13
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8738a14b73310c783941a",
14
- "lastUpdated": "2026-03-29T00:35:42.355Z"
13
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb165ef6a1c5774e80599f",
14
+ "lastUpdated": "2026-03-31T00:34:42.693Z"
15
15
  },
16
16
  "match-image.test.mjs": {
17
17
  "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8738c14b73310c783941d",
@@ -22,84 +22,84 @@
22
22
  "lastUpdated": "2026-03-03T00:32:25.282Z"
23
23
  },
24
24
  "hover-text-with-description.test.mjs": {
25
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8738e14b73310c7839420",
26
- "lastUpdated": "2026-03-29T00:34:21.945Z"
25
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1660f6a1c5774e8059a0",
26
+ "lastUpdated": "2026-03-31T00:33:36.228Z"
27
27
  },
28
28
  "windows-installer.test.mjs": {
29
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739114b73310c7839426",
30
- "lastUpdated": "2026-03-29T00:35:48.909Z"
29
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1663f6a1c5774e8059a3",
30
+ "lastUpdated": "2026-03-31T00:34:47.170Z"
31
31
  },
32
32
  "exec-output.test.mjs": {
33
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739214b73310c7839428",
34
- "lastUpdated": "2026-03-29T00:35:50.433Z"
33
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1665f6a1c5774e8059a4",
34
+ "lastUpdated": "2026-03-31T00:34:48.538Z"
35
35
  },
36
36
  "chrome-extension.test.mjs": {
37
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8738914b73310c7839418",
38
- "lastUpdated": "2026-03-29T00:34:58.656Z"
37
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb165df6a1c5774e80599e",
38
+ "lastUpdated": "2026-03-31T00:34:07.368Z"
39
39
  },
40
40
  "launch-vscode-linux.test.mjs": {
41
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8738f14b73310c7839422",
42
- "lastUpdated": "2026-03-29T00:40:45.704Z"
41
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1662f6a1c5774e8059a1",
42
+ "lastUpdated": "2026-03-31T00:40:26.271Z"
43
43
  },
44
44
  "hover-image.test.mjs": {
45
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739414b73310c783942c",
46
- "lastUpdated": "2026-03-29T00:35:11.252Z"
45
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1666f6a1c5774e8059a5",
46
+ "lastUpdated": "2026-03-31T00:34:17.480Z"
47
47
  },
48
48
  "installer.test.mjs": {
49
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739614b73310c783942e",
50
- "lastUpdated": "2026-03-29T00:34:30.327Z"
49
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1668f6a1c5774e8059a6",
50
+ "lastUpdated": "2026-03-31T00:33:44.335Z"
51
51
  },
52
52
  "type.test.mjs": {
53
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739814b73310c7839433",
54
- "lastUpdated": "2026-03-29T00:35:14.781Z"
53
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb166af6a1c5774e8059a9",
54
+ "lastUpdated": "2026-03-31T00:34:20.745Z"
55
55
  },
56
56
  "press-keys.test.mjs": {
57
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739a14b73310c7839436",
58
- "lastUpdated": "2026-03-29T00:49:07.133Z"
57
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb166cf6a1c5774e8059aa",
58
+ "lastUpdated": "2026-03-31T00:51:20.389Z"
59
59
  },
60
60
  "scroll-keyboard.test.mjs": {
61
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739f14b73310c783943c",
62
- "lastUpdated": "2026-03-29T00:36:02.857Z"
61
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1671f6a1c5774e8059ad",
62
+ "lastUpdated": "2026-03-31T00:34:59.681Z"
63
63
  },
64
64
  "scroll.test.mjs": {
65
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a614b73310c783944a",
66
- "lastUpdated": "2026-03-29T00:54:25.718Z"
65
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1677f6a1c5774e8059b1",
66
+ "lastUpdated": "2026-03-31T00:57:48.346Z"
67
67
  },
68
68
  "scroll-until-image.test.mjs": {
69
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a114b73310c783943e",
70
- "lastUpdated": "2026-03-29T00:34:41.409Z"
69
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1672f6a1c5774e8059ae",
70
+ "lastUpdated": "2026-03-31T00:33:54.647Z"
71
71
  },
72
72
  "prompt.test.mjs": {
73
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a214b73310c7839440",
74
- "lastUpdated": "2026-03-29T00:36:05.984Z"
73
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1674f6a1c5774e8059af",
74
+ "lastUpdated": "2026-03-31T00:35:02.499Z"
75
75
  },
76
76
  "focus-window.test.mjs": {
77
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a414b73310c7839442",
78
- "lastUpdated": "2026-03-29T00:34:44.624Z"
77
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1675f6a1c5774e8059b0",
78
+ "lastUpdated": "2026-03-31T00:33:57.527Z"
79
79
  },
80
80
  "captcha-api.test.mjs": {
81
81
  "url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fb0d3b320ad547d9d44",
82
82
  "lastUpdated": "2026-02-13T19:55:05.951Z"
83
83
  },
84
84
  "element-not-found.test.mjs": {
85
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a914b73310c7839451",
86
- "lastUpdated": "2026-03-29T00:36:12.298Z"
85
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb1678f6a1c5774e8059b2",
86
+ "lastUpdated": "2026-03-31T00:35:06.837Z"
87
87
  },
88
88
  "formatted-logging.test.mjs": {
89
89
  "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a714b73310c7839450",
90
90
  "lastUpdated": "2026-03-29T00:36:10.628Z"
91
91
  },
92
92
  "hover-text.test.mjs": {
93
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873ad14b73310c7839455",
94
- "lastUpdated": "2026-03-29T00:34:52.886Z"
93
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb167bf6a1c5774e8059b4",
94
+ "lastUpdated": "2026-03-31T00:34:03.859Z"
95
95
  },
96
96
  "no-provision.test.mjs": {
97
97
  "url": "https://console.testdriver.ai/runs/69a62b3aaa712ecd3dea730a/69a62b7706a177a05bccd1cf",
98
98
  "lastUpdated": "2026-03-03T00:32:25.279Z"
99
99
  },
100
100
  "ai.test.mjs": {
101
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873ab14b73310c7839454",
102
- "lastUpdated": "2026-03-29T00:58:59.287Z"
101
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb167af6a1c5774e8059b3",
102
+ "lastUpdated": "2026-03-31T01:00:46.789Z"
103
103
  },
104
104
  "popup-loading.test.mjs": {
105
105
  "url": "https://console.testdriver.ai/runs/698bc89f7140c3fa7daaca8d/698bca7f7140c3fa7daacbf7",
@@ -134,12 +134,12 @@
134
134
  "lastUpdated": "2026-02-13T19:55:05.953Z"
135
135
  },
136
136
  "findall-coffee-icons.test.mjs": {
137
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8739e14b73310c783943b",
138
- "lastUpdated": "2026-03-29T00:35:19.822Z"
137
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb166ff6a1c5774e8059ac",
138
+ "lastUpdated": "2026-03-31T00:34:26.048Z"
139
139
  },
140
140
  "parse.test.mjs": {
141
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873b014b73310c7839457",
142
- "lastUpdated": "2026-03-29T00:36:19.092Z"
141
+ "url": "https://console-test.testdriver.ai/runs/69cb165bf6a1c5774e80599d/69cb167df6a1c5774e8059b5",
142
+ "lastUpdated": "2026-03-31T00:35:11.393Z"
143
143
  },
144
144
  "flake-diffthreshold-001.test.mjs": {
145
145
  "url": "https://console.testdriver.ai/runs/69a62b3aaa712ecd3dea730a/69a62bcafc0ac3cc632a91aa",
@@ -174,8 +174,8 @@
174
174
  "lastUpdated": "2026-03-03T00:32:25.283Z"
175
175
  },
176
176
  "exec-stream-logs.test.mjs": {
177
- "url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873ae14b73310c7839456",
178
- "lastUpdated": "2026-03-29T00:35:37.148Z"
177
+ "url": "https://console-test.testdriver.ai/runs/69c9c4feffa05350a7d3abc1/69c9c520ffa05350a7d3abd9",
178
+ "lastUpdated": "2026-03-30T00:35:14.437Z"
179
179
  }
180
180
  }
181
181
  }
package/docs/docs.json CHANGED
@@ -31,7 +31,6 @@
31
31
  "/v7/examples/element-not-found",
32
32
  "/v7/examples/exec-output",
33
33
  "/v7/examples/exec-pwsh",
34
- "/v7/examples/exec-stream-logs",
35
34
  "/v7/examples/findall-coffee-icons",
36
35
  "/v7/examples/focus-window",
37
36
  "/v7/examples/hover-image",
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* ai.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873ab14b73310c7839454/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb167af6a1c5774e8059b3/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* assert.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739c14b73310c7839439/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb166df6a1c5774e8059ab/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* chrome-extension.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8738914b73310c7839418/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb165df6a1c5774e80599e/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* element-not-found.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873a914b73310c7839451/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1678f6a1c5774e8059b2/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* exec-output.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739214b73310c7839428/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1665f6a1c5774e8059a4/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* exec-pwsh.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8738a14b73310c783941a/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb165ef6a1c5774e80599f/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -18,7 +18,7 @@ Watch this test execute in a real sandbox environment:
18
18
 
19
19
  {/* findall-coffee-icons.test.mjs output */}
20
20
  <iframe
21
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739e14b73310c783943b/replay"
21
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb166ff6a1c5774e8059ac/replay"
22
22
  width="100%"
23
23
  height="600"
24
24
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* focus-window.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873a414b73310c7839442/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1675f6a1c5774e8059b0/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* hover-image.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739414b73310c783942c/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1666f6a1c5774e8059a5/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -18,7 +18,7 @@ Watch this test execute in a real sandbox environment:
18
18
 
19
19
  {/* hover-text-with-description.test.mjs output */}
20
20
  <iframe
21
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8738e14b73310c7839420/replay"
21
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1660f6a1c5774e8059a0/replay"
22
22
  width="100%"
23
23
  height="600"
24
24
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* hover-text.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873ad14b73310c7839455/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb167bf6a1c5774e8059b4/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* installer.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739614b73310c783942e/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1668f6a1c5774e8059a6/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* launch-vscode-linux.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8738f14b73310c7839422/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1662f6a1c5774e8059a1/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -17,7 +17,7 @@ Watch this test execute in a real sandbox environment:
17
17
 
18
18
  {/* parse.test.mjs output */}
19
19
  <iframe
20
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873b014b73310c7839457/replay"
20
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb167df6a1c5774e8059b5/replay"
21
21
  width="100%"
22
22
  height="600"
23
23
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* press-keys.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739a14b73310c7839436/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb166cf6a1c5774e8059aa/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -17,7 +17,7 @@ Watch this test execute in a real sandbox environment:
17
17
 
18
18
  {/* prompt.test.mjs output */}
19
19
  <iframe
20
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873a214b73310c7839440/replay"
20
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1674f6a1c5774e8059af/replay"
21
21
  width="100%"
22
22
  height="600"
23
23
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* scroll-keyboard.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739f14b73310c783943c/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1671f6a1c5774e8059ad/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* scroll-until-image.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873a114b73310c783943e/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1672f6a1c5774e8059ae/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* scroll.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c873a614b73310c783944a/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1677f6a1c5774e8059b1/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* type.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739814b73310c7839433/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb166af6a1c5774e8059a9/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -12,7 +12,7 @@ Watch this test execute in a real sandbox environment:
12
12
 
13
13
  {/* windows-installer.test.mjs output */}
14
14
  <iframe
15
- src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69c8739114b73310c7839426/replay"
15
+ src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/69cb1663f6a1c5774e8059a3/replay"
16
16
  width="100%"
17
17
  height="390"
18
18
  style={{ border: "1px solid #333", borderRadius: "8px" }}
@@ -10,6 +10,7 @@ import { setTestRunInfo } from "./shared-test-state.mjs";
10
10
  // Use createRequire to import CommonJS modules without esbuild processing
11
11
  const require = createRequire(import.meta.url);
12
12
  const channelConfig = require("../lib/resolve-channel.js");
13
+ const environments = require("../lib/environments.json");
13
14
 
14
15
  // Import Sentry for error reporting
15
16
  const Sentry = require("@sentry/node");
@@ -1376,11 +1377,11 @@ function getConsoleUrl(apiRoot) {
1376
1377
  return `https://${flyMatch[1]}-web.fly.dev`;
1377
1378
  }
1378
1379
 
1379
- // Known channel API URLs -> console equivalents
1380
- // e.g. https://api-canary.testdriver.ai -> https://console-canary.testdriver.ai
1381
- for (const url of Object.values(channelConfig.channels)) {
1382
- if (url === apiRoot) {
1383
- return url.replace("api", "console").replace("1337", "3001");
1380
+ // Known channel API URLs -> console equivalents (from environments.json)
1381
+ // e.g. https://api-dev.testdriver.ai -> https://console-dev.testdriver.ai
1382
+ for (const env of Object.values(environments)) {
1383
+ if (env.apiRoot === apiRoot && env.consoleUrl) {
1384
+ return env.consoleUrl;
1384
1385
  }
1385
1386
  }
1386
1387
 
@@ -98,7 +98,7 @@ class Dashcam {
98
98
  if (!apiRoot) return "https://console.testdriver.ai";
99
99
 
100
100
  // Dash-separated environments: api-{env}.testdriver.ai -> console-{env}.testdriver.ai
101
- const envMatch = apiRoot.match(/^https:\/\/api-(test|canary)\.testdriver\.ai/);
101
+ const envMatch = apiRoot.match(/^https:\/\/api-(dev|test|canary)\.testdriver\.ai/);
102
102
  if (envMatch) {
103
103
  return `https://console-${envMatch[1]}.testdriver.ai`;
104
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.9.7-test",
3
+ "version": "7.9.9-test",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "sdk.js",
6
6
  "types": "sdk.d.ts",
@@ -1,25 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { TestDriver } from "../lib/vitest/hooks.mjs";
3
- import { getDefaults } from "./config.mjs";
4
-
5
- describe("Exec Log Streaming", () => {
6
- it("should stream exec logs every second for 20 seconds", async (context) => {
7
- const testdriver = TestDriver(context, { ...getDefaults(context), headless: true });
8
- await testdriver.provision.chrome({ url: "about:blank" });
9
-
10
- const code = `for i in $(seq 1 20); do echo "log line $i at $(date +%T)"; sleep 1; done`;
11
-
12
- const result = await testdriver.exec({
13
- language: "sh",
14
- code,
15
- timeout: 30000,
16
- });
17
-
18
- console.log("exec result:", result);
19
-
20
- // Verify we got all 20 log lines
21
- for (let i = 1; i <= 20; i++) {
22
- expect(result).toContain(`log line ${i}`);
23
- }
24
- });
25
- });