@testdriverai/agent 7.9.97-test → 7.9.98-canary
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/docs/_data/examples-manifest.json +52 -52
- package/docs/v7/examples/ai.mdx +1 -1
- package/docs/v7/examples/assert.mdx +1 -1
- package/docs/v7/examples/chrome-extension.mdx +1 -1
- package/docs/v7/examples/element-not-found.mdx +1 -1
- package/docs/v7/examples/findall-coffee-icons.mdx +1 -1
- package/docs/v7/examples/hover-image.mdx +1 -1
- package/docs/v7/examples/hover-text-with-description.mdx +1 -1
- package/docs/v7/examples/hover-text.mdx +1 -1
- package/docs/v7/examples/installer.mdx +1 -1
- package/docs/v7/examples/launch-vscode-linux.mdx +1 -1
- package/docs/v7/examples/parse.mdx +1 -1
- package/docs/v7/examples/press-keys.mdx +1 -1
- package/docs/v7/examples/scroll-keyboard.mdx +1 -1
- package/docs/v7/examples/scroll.mdx +1 -1
- package/docs/v7/examples/type.mdx +1 -1
- package/lib/core/Dashcam.js +8 -3
- package/package.json +1 -1
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"$schema": "./examples-manifest.schema.json",
|
|
3
3
|
"examples": {
|
|
4
4
|
"assert.test.mjs": {
|
|
5
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
6
|
-
"replayUrl": "https://console-test.testdriver.ai/replay/
|
|
7
|
-
"embedUrl": "https://console-test.testdriver.ai/replay/
|
|
8
|
-
"lastUpdated": "2026-05-
|
|
5
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a351be28fe3cfa69438bf",
|
|
6
|
+
"replayUrl": "https://console-test.testdriver.ai/replay/6a1a3c4d8fed297e7ef878aa?share=PqvJczCZCFpStNIHMfMQQ",
|
|
7
|
+
"embedUrl": "https://console-test.testdriver.ai/replay/6a1a3c4d8fed297e7ef878aa?share=PqvJczCZCFpStNIHMfMQQ&embed=true",
|
|
8
|
+
"lastUpdated": "2026-05-30T01:24:34.887Z"
|
|
9
9
|
},
|
|
10
10
|
"drag-and-drop.test.mjs": {
|
|
11
11
|
"url": "https://console.testdriver.ai/runs/69a62b3aaa712ecd3dea730a/69a62b42fc0ac3cc632a918b",
|
|
12
12
|
"lastUpdated": "2026-03-03T00:32:25.275Z"
|
|
13
13
|
},
|
|
14
14
|
"exec-pwsh.test.mjs": {
|
|
15
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
16
|
-
"lastUpdated": "2026-05-
|
|
15
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3437e28fe3cfa69438a3",
|
|
16
|
+
"lastUpdated": "2026-05-30T01:04:00.933Z"
|
|
17
17
|
},
|
|
18
18
|
"match-image.test.mjs": {
|
|
19
19
|
"url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c8738c14b73310c783941d",
|
|
@@ -24,92 +24,92 @@
|
|
|
24
24
|
"lastUpdated": "2026-03-03T00:32:25.282Z"
|
|
25
25
|
},
|
|
26
26
|
"hover-text-with-description.test.mjs": {
|
|
27
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
28
|
-
"lastUpdated": "2026-05-
|
|
27
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a344ee28fe3cfa69438b0",
|
|
28
|
+
"lastUpdated": "2026-05-30T00:50:22.351Z"
|
|
29
29
|
},
|
|
30
30
|
"windows-installer.test.mjs": {
|
|
31
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
32
|
-
"lastUpdated": "2026-05-
|
|
31
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a347ae28fe3cfa69438b3",
|
|
32
|
+
"lastUpdated": "2026-05-30T01:05:11.106Z"
|
|
33
33
|
},
|
|
34
34
|
"exec-output.test.mjs": {
|
|
35
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
36
|
-
"lastUpdated": "2026-05-
|
|
35
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a347be28fe3cfa69438b4",
|
|
36
|
+
"lastUpdated": "2026-05-30T01:05:12.510Z"
|
|
37
37
|
},
|
|
38
38
|
"chrome-extension.test.mjs": {
|
|
39
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
40
|
-
"lastUpdated": "2026-05-
|
|
39
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3435e28fe3cfa69438a2",
|
|
40
|
+
"lastUpdated": "2026-05-30T00:56:56.394Z"
|
|
41
41
|
},
|
|
42
42
|
"launch-vscode-linux.test.mjs": {
|
|
43
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
44
|
-
"replayUrl": "https://console-test.testdriver.ai/replay/
|
|
45
|
-
"embedUrl": "https://console-test.testdriver.ai/replay/
|
|
46
|
-
"lastUpdated": "2026-05-
|
|
43
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3464e28fe3cfa69438b1",
|
|
44
|
+
"replayUrl": "https://console-test.testdriver.ai/replay/6a1a3a0e8fed297e7ef8789a?share=8yPTRWolM8caTwnViV1vw",
|
|
45
|
+
"embedUrl": "https://console-test.testdriver.ai/replay/6a1a3a0e8fed297e7ef8789a?share=8yPTRWolM8caTwnViV1vw&embed=true",
|
|
46
|
+
"lastUpdated": "2026-05-30T01:15:00.625Z"
|
|
47
47
|
},
|
|
48
48
|
"hover-image.test.mjs": {
|
|
49
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
50
|
-
"lastUpdated": "2026-05-
|
|
49
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3494e28fe3cfa69438b5",
|
|
50
|
+
"lastUpdated": "2026-05-30T00:58:33.674Z"
|
|
51
51
|
},
|
|
52
52
|
"installer.test.mjs": {
|
|
53
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
54
|
-
"lastUpdated": "2026-05-
|
|
53
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a34aae28fe3cfa69438b8",
|
|
54
|
+
"lastUpdated": "2026-05-30T00:51:54.447Z"
|
|
55
55
|
},
|
|
56
56
|
"type.test.mjs": {
|
|
57
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
58
|
-
"lastUpdated": "2026-05-
|
|
57
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a34ede28fe3cfa69438bd",
|
|
58
|
+
"lastUpdated": "2026-05-30T01:00:01.409Z"
|
|
59
59
|
},
|
|
60
60
|
"press-keys.test.mjs": {
|
|
61
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
62
|
-
"replayUrl": "https://console-test.testdriver.ai/replay/
|
|
63
|
-
"embedUrl": "https://console-test.testdriver.ai/replay/
|
|
64
|
-
"lastUpdated": "2026-05-
|
|
61
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3505e28fe3cfa69438be",
|
|
62
|
+
"replayUrl": "https://console-test.testdriver.ai/replay/6a1a3c008fed297e7ef878a8?share=y8BLCNEbkL9ifxeTIr4Qw",
|
|
63
|
+
"embedUrl": "https://console-test.testdriver.ai/replay/6a1a3c008fed297e7ef878a8?share=y8BLCNEbkL9ifxeTIr4Qw&embed=true",
|
|
64
|
+
"lastUpdated": "2026-05-30T01:23:17.848Z"
|
|
65
65
|
},
|
|
66
66
|
"scroll-keyboard.test.mjs": {
|
|
67
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
68
|
-
"lastUpdated": "2026-05-
|
|
67
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3549e28fe3cfa69438c1",
|
|
68
|
+
"lastUpdated": "2026-05-30T01:08:28.359Z"
|
|
69
69
|
},
|
|
70
70
|
"scroll.test.mjs": {
|
|
71
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
72
|
-
"replayUrl": "https://console-test.testdriver.ai/replay/
|
|
73
|
-
"embedUrl": "https://console-test.testdriver.ai/replay/
|
|
74
|
-
"lastUpdated": "2026-05-
|
|
71
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3565e28fe3cfa69438c5",
|
|
72
|
+
"replayUrl": "https://console-test.testdriver.ai/replay/6a1a3d468fed297e7ef878b0?share=k3i6rr4qKDNucJcYq7tlA",
|
|
73
|
+
"embedUrl": "https://console-test.testdriver.ai/replay/6a1a3d468fed297e7ef878b0?share=k3i6rr4qKDNucJcYq7tlA&embed=true",
|
|
74
|
+
"lastUpdated": "2026-05-30T01:28:44.464Z"
|
|
75
75
|
},
|
|
76
76
|
"scroll-until-image.test.mjs": {
|
|
77
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
78
|
-
"lastUpdated": "2026-05-
|
|
77
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a354be28fe3cfa69438c2",
|
|
78
|
+
"lastUpdated": "2026-05-30T00:54:35.391Z"
|
|
79
79
|
},
|
|
80
80
|
"prompt.test.mjs": {
|
|
81
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
82
|
-
"lastUpdated": "2026-05-
|
|
81
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a354de28fe3cfa69438c3",
|
|
82
|
+
"lastUpdated": "2026-05-30T01:08:31.362Z"
|
|
83
83
|
},
|
|
84
84
|
"focus-window.test.mjs": {
|
|
85
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
86
|
-
"lastUpdated": "2026-05-
|
|
85
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a354ee28fe3cfa69438c4",
|
|
86
|
+
"lastUpdated": "2026-05-30T00:54:38.519Z"
|
|
87
87
|
},
|
|
88
88
|
"captcha-api.test.mjs": {
|
|
89
89
|
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fb0d3b320ad547d9d44",
|
|
90
90
|
"lastUpdated": "2026-02-13T19:55:05.951Z"
|
|
91
91
|
},
|
|
92
92
|
"element-not-found.test.mjs": {
|
|
93
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
94
|
-
"lastUpdated": "2026-05-
|
|
93
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a357ae28fe3cfa69438c6",
|
|
94
|
+
"lastUpdated": "2026-05-30T01:09:20.511Z"
|
|
95
95
|
},
|
|
96
96
|
"formatted-logging.test.mjs": {
|
|
97
97
|
"url": "https://console-test.testdriver.ai/runs/69c8738614b73310c7839412/69c873a714b73310c7839450",
|
|
98
98
|
"lastUpdated": "2026-03-29T00:36:10.628Z"
|
|
99
99
|
},
|
|
100
100
|
"hover-text.test.mjs": {
|
|
101
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
102
|
-
"lastUpdated": "2026-05-
|
|
101
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a35aae28fe3cfa69438c8",
|
|
102
|
+
"lastUpdated": "2026-05-30T00:56:10.184Z"
|
|
103
103
|
},
|
|
104
104
|
"no-provision.test.mjs": {
|
|
105
105
|
"url": "https://console.testdriver.ai/runs/69a62b3aaa712ecd3dea730a/69a62b7706a177a05bccd1cf",
|
|
106
106
|
"lastUpdated": "2026-03-03T00:32:25.279Z"
|
|
107
107
|
},
|
|
108
108
|
"ai.test.mjs": {
|
|
109
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
110
|
-
"replayUrl": "https://console-test.testdriver.ai/replay/
|
|
111
|
-
"embedUrl": "https://console-test.testdriver.ai/replay/
|
|
112
|
-
"lastUpdated": "2026-05-
|
|
109
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3593e28fe3cfa69438c7",
|
|
110
|
+
"replayUrl": "https://console-test.testdriver.ai/replay/6a1a3e118fed297e7ef878b4?share=k0s0vwaFRRIx3ZyGrHghw",
|
|
111
|
+
"embedUrl": "https://console-test.testdriver.ai/replay/6a1a3e118fed297e7ef878b4?share=k0s0vwaFRRIx3ZyGrHghw&embed=true",
|
|
112
|
+
"lastUpdated": "2026-05-30T01:32:07.897Z"
|
|
113
113
|
},
|
|
114
114
|
"popup-loading.test.mjs": {
|
|
115
115
|
"url": "https://console.testdriver.ai/runs/698bc89f7140c3fa7daaca8d/698bca7f7140c3fa7daacbf7",
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
"lastUpdated": "2026-02-13T19:55:05.953Z"
|
|
145
145
|
},
|
|
146
146
|
"findall-coffee-icons.test.mjs": {
|
|
147
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
148
|
-
"lastUpdated": "2026-05-
|
|
147
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a3533e28fe3cfa69438c0",
|
|
148
|
+
"lastUpdated": "2026-05-30T01:01:11.326Z"
|
|
149
149
|
},
|
|
150
150
|
"parse.test.mjs": {
|
|
151
|
-
"url": "https://console-test.testdriver.ai/runs/
|
|
152
|
-
"lastUpdated": "2026-05-
|
|
151
|
+
"url": "https://console-test.testdriver.ai/runs/6a1a341de28fe3cfa6943888/6a1a35c2e28fe3cfa69438c9",
|
|
152
|
+
"lastUpdated": "2026-05-30T01:10:30.529Z"
|
|
153
153
|
},
|
|
154
154
|
"flake-diffthreshold-001.test.mjs": {
|
|
155
155
|
"url": "https://console.testdriver.ai/runs/69a62b3aaa712ecd3dea730a/69a62bcafc0ac3cc632a91aa",
|
package/docs/v7/examples/ai.mdx
CHANGED
|
@@ -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://console-test.testdriver.ai/replay/
|
|
15
|
+
src="https://console-test.testdriver.ai/replay/6a1a3e118fed297e7ef878b4?share=k0s0vwaFRRIx3ZyGrHghw&embed=true"
|
|
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://console-test.testdriver.ai/replay/
|
|
15
|
+
src="https://console-test.testdriver.ai/replay/6a1a3c4d8fed297e7ef878aa?share=PqvJczCZCFpStNIHMfMQQ&embed=true"
|
|
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/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a3435e28fe3cfa69438a2/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/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a357ae28fe3cfa69438c6/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/
|
|
21
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a3533e28fe3cfa69438c0/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-image.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a3494e28fe3cfa69438b5/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/
|
|
21
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a344ee28fe3cfa69438b0/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/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a35aae28fe3cfa69438c8/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/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a34aae28fe3cfa69438b8/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://console-test.testdriver.ai/replay/
|
|
15
|
+
src="https://console-test.testdriver.ai/replay/6a1a3a0e8fed297e7ef8789a?share=8yPTRWolM8caTwnViV1vw&embed=true"
|
|
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
|
{/* parse.test.mjs output */}
|
|
20
20
|
<iframe
|
|
21
|
-
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/
|
|
21
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a35c2e28fe3cfa69438c9/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
|
{/* press-keys.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://console-test.testdriver.ai/replay/
|
|
15
|
+
src="https://console-test.testdriver.ai/replay/6a1a3c008fed297e7ef878a8?share=y8BLCNEbkL9ifxeTIr4Qw&embed=true"
|
|
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-keyboard.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a3549e28fe3cfa69438c1/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://console-test.testdriver.ai/replay/
|
|
15
|
+
src="https://console-test.testdriver.ai/replay/6a1a3d468fed297e7ef878b0?share=k3i6rr4qKDNucJcYq7tlA&embed=true"
|
|
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/
|
|
15
|
+
src="https://api-test.testdriver.ai/api/v1/testdriver/testcase/6a1a34ede28fe3cfa69438bd/replay"
|
|
16
16
|
width="100%"
|
|
17
17
|
height="390"
|
|
18
18
|
style={{ border: "1px solid #333", borderRadius: "8px" }}
|
package/lib/core/Dashcam.js
CHANGED
|
@@ -153,7 +153,9 @@ class Dashcam {
|
|
|
153
153
|
/**
|
|
154
154
|
* Workaround for dashcam <1.5.0: webLogsDaemon.js writes its state to a
|
|
155
155
|
* `.dashcam` directory relative to process.cwd(). When launched by the
|
|
156
|
-
* runner, cwd is
|
|
156
|
+
* runner, cwd is typically a root-owned global install path (for example
|
|
157
|
+
* /usr/lib/node_modules/@testdriverai/runner or
|
|
158
|
+
* /usr/local/lib/node_modules/@testdriverai/runner),
|
|
157
159
|
* so the daemon can't mkdir its state dir as user `user` and silently
|
|
158
160
|
* dies — recordings never start (or `dashcam logs --add` fails with EACCES).
|
|
159
161
|
* Pre-create world-writable .dashcam dirs at both the current cwd and the
|
|
@@ -168,8 +170,11 @@ class Dashcam {
|
|
|
168
170
|
if (!this._dashcamDirsReady) {
|
|
169
171
|
this._dashcamDirsReady = this.client.exec(
|
|
170
172
|
this._getShell(),
|
|
171
|
-
`
|
|
172
|
-
`
|
|
173
|
+
`GLOBAL_NPM_ROOT="$(npm root -g 2>/dev/null || true)"; ` +
|
|
174
|
+
`PWD_DIR="$(pwd)"; REAL_PWD_DIR="$(pwd -P 2>/dev/null || pwd)"; ` +
|
|
175
|
+
`DIRS="$PWD_DIR/.dashcam $REAL_PWD_DIR/.dashcam /usr/lib/node_modules/@testdriverai/runner/.dashcam /usr/local/lib/node_modules/@testdriverai/runner/.dashcam"; ` +
|
|
176
|
+
`if [ -n "$GLOBAL_NPM_ROOT" ]; then DIRS="$DIRS $GLOBAL_NPM_ROOT/@testdriverai/runner/.dashcam"; fi; ` +
|
|
177
|
+
`for d in $DIRS; do sudo mkdir -p "$d" 2>/dev/null || true; sudo chmod 0777 "$d" 2>/dev/null || true; done; ` +
|
|
173
178
|
`true`,
|
|
174
179
|
10000,
|
|
175
180
|
process.env.TD_DEBUG == "true" ? false : true,
|