testdriverai 7.3.10 → 7.3.12
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/CHANGELOG.md +8 -0
- package/docs/_data/examples-manifest.json +64 -64
- package/docs/v7/examples/ai.mdx +1 -1
- package/docs/v7/examples/assert.mdx +1 -1
- package/docs/v7/examples/captcha-api.mdx +1 -1
- package/docs/v7/examples/chrome-extension.mdx +1 -1
- package/docs/v7/examples/drag-and-drop.mdx +1 -1
- package/docs/v7/examples/element-not-found.mdx +1 -1
- package/docs/v7/examples/hover-image.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/match-image.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-until-image.mdx +1 -1
- package/docs/v7/examples/scroll-until-text.mdx +1 -1
- package/docs/v7/examples/scroll.mdx +1 -1
- package/docs/v7/examples/type.mdx +1 -1
- package/docs/v7/examples/windows-installer.mdx +1 -1
- package/examples/z_flake-shared.mjs +1 -1
- package/lib/vitest/hooks.mjs +3 -0
- package/package.json +1 -1
- package/sdk.js +2 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.3.12](https://github.com/testdriverai/testdriverai/compare/v7.3.11...v7.3.12) (2026-02-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## [7.3.11](https://github.com/testdriverai/testdriverai/compare/v7.3.10...v7.3.11) (2026-02-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
## [7.3.10](https://github.com/testdriverai/testdriverai/compare/v7.3.9...v7.3.10) (2026-02-16)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -2,136 +2,136 @@
|
|
|
2
2
|
"$schema": "./examples-manifest.schema.json",
|
|
3
3
|
"examples": {
|
|
4
4
|
"assert.test.mjs": {
|
|
5
|
-
"url": "https://console.testdriver.ai/runs/
|
|
6
|
-
"lastUpdated": "2026-02-
|
|
5
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f88dd202a57999808e3",
|
|
6
|
+
"lastUpdated": "2026-02-13T19:55:05.949Z"
|
|
7
7
|
},
|
|
8
8
|
"drag-and-drop.test.mjs": {
|
|
9
|
-
"url": "https://console.testdriver.ai/runs/
|
|
10
|
-
"lastUpdated": "2026-02-
|
|
9
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7df8d3b320ad547d9cdc",
|
|
10
|
+
"lastUpdated": "2026-02-13T19:55:05.944Z"
|
|
11
11
|
},
|
|
12
12
|
"exec-pwsh.test.mjs": {
|
|
13
|
-
"url": "https://console.testdriver.ai/runs/
|
|
14
|
-
"lastUpdated": "2026-02-
|
|
13
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7df9d3b320ad547d9cdf",
|
|
14
|
+
"lastUpdated": "2026-02-13T19:55:05.944Z"
|
|
15
15
|
},
|
|
16
16
|
"match-image.test.mjs": {
|
|
17
|
-
"url": "https://console.testdriver.ai/runs/
|
|
18
|
-
"lastUpdated": "2026-02-
|
|
17
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7dfad3b320ad547d9ce0",
|
|
18
|
+
"lastUpdated": "2026-02-13T19:55:05.944Z"
|
|
19
19
|
},
|
|
20
20
|
"scroll-until-text.test.mjs": {
|
|
21
|
-
"url": "https://console.testdriver.ai/runs/
|
|
22
|
-
"lastUpdated": "2026-02-
|
|
21
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7e5cd3b320ad547d9d03",
|
|
22
|
+
"lastUpdated": "2026-02-13T19:55:05.945Z"
|
|
23
23
|
},
|
|
24
24
|
"hover-text-with-description.test.mjs": {
|
|
25
|
-
"url": "https://console.testdriver.ai/runs/
|
|
26
|
-
"lastUpdated": "2026-02-
|
|
25
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7e4e9e27ce1528d7d0a0",
|
|
26
|
+
"lastUpdated": "2026-02-13T19:55:05.944Z"
|
|
27
27
|
},
|
|
28
28
|
"windows-installer.test.mjs": {
|
|
29
|
-
"url": "https://console.testdriver.ai/runs/
|
|
30
|
-
"lastUpdated": "2026-02-
|
|
29
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7e5ddd202a57999808ae",
|
|
30
|
+
"lastUpdated": "2026-02-13T19:55:05.945Z"
|
|
31
31
|
},
|
|
32
32
|
"exec-output.test.mjs": {
|
|
33
|
-
"url": "https://console.testdriver.ai/runs/
|
|
34
|
-
"lastUpdated": "2026-02-
|
|
33
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7e5edd202a57999808af",
|
|
34
|
+
"lastUpdated": "2026-02-13T19:55:05.945Z"
|
|
35
35
|
},
|
|
36
36
|
"chrome-extension.test.mjs": {
|
|
37
|
-
"url": "https://console.testdriver.ai/runs/
|
|
38
|
-
"lastUpdated": "2026-02-
|
|
37
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7eb69e27ce1528d7d0bc",
|
|
38
|
+
"lastUpdated": "2026-02-13T19:55:05.946Z"
|
|
39
39
|
},
|
|
40
40
|
"launch-vscode-linux.test.mjs": {
|
|
41
|
-
"url": "https://console.testdriver.ai/runs/
|
|
42
|
-
"lastUpdated": "2026-02-
|
|
41
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7eb6d3b320ad547d9d16",
|
|
42
|
+
"lastUpdated": "2026-02-13T19:55:05.946Z"
|
|
43
43
|
},
|
|
44
44
|
"hover-image.test.mjs": {
|
|
45
|
-
"url": "https://console.testdriver.ai/runs/
|
|
46
|
-
"lastUpdated": "2026-02-
|
|
45
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7ea7dd202a57999808bc",
|
|
46
|
+
"lastUpdated": "2026-02-13T19:55:05.946Z"
|
|
47
47
|
},
|
|
48
48
|
"installer.test.mjs": {
|
|
49
|
-
"url": "https://console.testdriver.ai/runs/
|
|
50
|
-
"lastUpdated": "2026-02-
|
|
49
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f069e27ce1528d7d0cd",
|
|
50
|
+
"lastUpdated": "2026-02-13T19:55:05.948Z"
|
|
51
51
|
},
|
|
52
52
|
"type.test.mjs": {
|
|
53
|
-
"url": "https://console.testdriver.ai/runs/
|
|
54
|
-
"lastUpdated": "2026-02-
|
|
53
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f2a9e27ce1528d7d0d2",
|
|
54
|
+
"lastUpdated": "2026-02-13T19:55:05.948Z"
|
|
55
55
|
},
|
|
56
56
|
"press-keys.test.mjs": {
|
|
57
|
-
"url": "https://console.testdriver.ai/runs/
|
|
58
|
-
"lastUpdated": "2026-02-
|
|
57
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f739e27ce1528d7d0d9",
|
|
58
|
+
"lastUpdated": "2026-02-13T19:55:05.949Z"
|
|
59
59
|
},
|
|
60
60
|
"scroll-keyboard.test.mjs": {
|
|
61
|
-
"url": "https://console.testdriver.ai/runs/
|
|
62
|
-
"lastUpdated": "2026-02-
|
|
61
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f55dd202a57999808d6",
|
|
62
|
+
"lastUpdated": "2026-02-13T19:55:05.949Z"
|
|
63
63
|
},
|
|
64
64
|
"scroll.test.mjs": {
|
|
65
|
-
"url": "https://console.testdriver.ai/runs/
|
|
66
|
-
"lastUpdated": "2026-02-
|
|
65
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f0add202a57999808c8",
|
|
66
|
+
"lastUpdated": "2026-02-13T19:55:05.948Z"
|
|
67
67
|
},
|
|
68
68
|
"scroll-until-image.test.mjs": {
|
|
69
|
-
"url": "https://console.testdriver.ai/runs/
|
|
70
|
-
"lastUpdated": "2026-02-
|
|
69
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f749e27ce1528d7d0da",
|
|
70
|
+
"lastUpdated": "2026-02-13T19:55:05.949Z"
|
|
71
71
|
},
|
|
72
72
|
"prompt.test.mjs": {
|
|
73
|
-
"url": "https://console.testdriver.ai/runs/
|
|
74
|
-
"lastUpdated": "2026-02-
|
|
73
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f75d3b320ad547d9d39",
|
|
74
|
+
"lastUpdated": "2026-02-13T19:55:05.949Z"
|
|
75
75
|
},
|
|
76
76
|
"focus-window.test.mjs": {
|
|
77
|
-
"url": "https://console.testdriver.ai/runs/
|
|
78
|
-
"lastUpdated": "2026-02-
|
|
77
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7f76d3b320ad547d9d3a",
|
|
78
|
+
"lastUpdated": "2026-02-13T19:55:05.949Z"
|
|
79
79
|
},
|
|
80
80
|
"captcha-api.test.mjs": {
|
|
81
|
-
"url": "https://console.testdriver.ai/runs/
|
|
82
|
-
"lastUpdated": "2026-02-
|
|
81
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fb0d3b320ad547d9d44",
|
|
82
|
+
"lastUpdated": "2026-02-13T19:55:05.951Z"
|
|
83
83
|
},
|
|
84
84
|
"element-not-found.test.mjs": {
|
|
85
|
-
"url": "https://console.testdriver.ai/runs/
|
|
86
|
-
"lastUpdated": "2026-02-
|
|
85
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fbcdd202a57999808f0",
|
|
86
|
+
"lastUpdated": "2026-02-13T19:55:05.951Z"
|
|
87
87
|
},
|
|
88
88
|
"formatted-logging.test.mjs": {
|
|
89
|
-
"url": "https://console.testdriver.ai/runs/
|
|
90
|
-
"lastUpdated": "2026-02-
|
|
89
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fb1dd202a57999808e9",
|
|
90
|
+
"lastUpdated": "2026-02-13T19:55:05.951Z"
|
|
91
91
|
},
|
|
92
92
|
"hover-text.test.mjs": {
|
|
93
|
-
"url": "https://console.testdriver.ai/runs/
|
|
94
|
-
"lastUpdated": "2026-02-
|
|
93
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fe69e27ce1528d7d0ed",
|
|
94
|
+
"lastUpdated": "2026-02-13T19:55:05.951Z"
|
|
95
95
|
},
|
|
96
96
|
"no-provision.test.mjs": {
|
|
97
|
-
"url": "https://console.testdriver.ai/runs/
|
|
98
|
-
"lastUpdated": "2026-02-
|
|
97
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f7fdf9e27ce1528d7d0ec",
|
|
98
|
+
"lastUpdated": "2026-02-13T19:55:05.951Z"
|
|
99
99
|
},
|
|
100
100
|
"ai.test.mjs": {
|
|
101
|
-
"url": "https://console.testdriver.ai/runs/
|
|
102
|
-
"lastUpdated": "2026-02-
|
|
101
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f8010d3b320ad547d9d52",
|
|
102
|
+
"lastUpdated": "2026-02-13T19:55:05.952Z"
|
|
103
103
|
},
|
|
104
104
|
"popup-loading.test.mjs": {
|
|
105
105
|
"url": "https://console.testdriver.ai/runs/698bc89f7140c3fa7daaca8d/698bca7f7140c3fa7daacbf7",
|
|
106
106
|
"lastUpdated": "2026-02-11T00:20:33.687Z"
|
|
107
107
|
},
|
|
108
108
|
"z_flake-diffthreshold-001.test.mjs": {
|
|
109
|
-
"url": "https://console.testdriver.ai/runs/
|
|
110
|
-
"lastUpdated": "2026-02-
|
|
109
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f8090d3b320ad547d9d67",
|
|
110
|
+
"lastUpdated": "2026-02-13T19:55:05.952Z"
|
|
111
111
|
},
|
|
112
112
|
"z_flake-diffthreshold-01.test.mjs": {
|
|
113
|
-
"url": "https://console.testdriver.ai/runs/
|
|
114
|
-
"lastUpdated": "2026-02-
|
|
113
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f80bc9e27ce1528d7d106",
|
|
114
|
+
"lastUpdated": "2026-02-13T19:55:05.952Z"
|
|
115
115
|
},
|
|
116
116
|
"z_flake-diffthreshold-05.test.mjs": {
|
|
117
|
-
"url": "https://console.testdriver.ai/runs/
|
|
118
|
-
"lastUpdated": "2026-02-
|
|
117
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f8090dd202a5799980910",
|
|
118
|
+
"lastUpdated": "2026-02-13T19:55:05.952Z"
|
|
119
119
|
},
|
|
120
120
|
"z_flake-noredraw-cache.test.mjs": {
|
|
121
|
-
"url": "https://console.testdriver.ai/runs/
|
|
122
|
-
"lastUpdated": "2026-02-
|
|
121
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f8105d3b320ad547d9d75",
|
|
122
|
+
"lastUpdated": "2026-02-13T19:55:05.953Z"
|
|
123
123
|
},
|
|
124
124
|
"z_flake-redraw-nocache.test.mjs": {
|
|
125
|
-
"url": "https://console.testdriver.ai/runs/
|
|
126
|
-
"lastUpdated": "2026-02-
|
|
125
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f8142d3b320ad547d9d86",
|
|
126
|
+
"lastUpdated": "2026-02-13T19:55:05.953Z"
|
|
127
127
|
},
|
|
128
128
|
"z_flake-redraw-cache.test.mjs": {
|
|
129
|
-
"url": "https://console.testdriver.ai/runs/
|
|
130
|
-
"lastUpdated": "2026-02-
|
|
129
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f818f9e27ce1528d7d11d",
|
|
130
|
+
"lastUpdated": "2026-02-13T19:55:05.953Z"
|
|
131
131
|
},
|
|
132
132
|
"z_flake-noredraw-nocache.test.mjs": {
|
|
133
|
-
"url": "https://console.testdriver.ai/runs/
|
|
134
|
-
"lastUpdated": "2026-02-
|
|
133
|
+
"url": "https://console.testdriver.ai/runs/698f7df69e27ce1528d7d087/698f816ed3b320ad547d9d8c",
|
|
134
|
+
"lastUpdated": "2026-02-13T19:55:05.953Z"
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|
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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f8010d3b320ad547d9d52/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f88dd202a57999808e3/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
|
{/* captcha-api.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7fb0d3b320ad547d9d44/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7eb69e27ce1528d7d0bc/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
|
{/* drag-and-drop.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7df8d3b320ad547d9cdc/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7fbcdd202a57999808f0/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7ea7dd202a57999808bc/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-text.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7fe69e27ce1528d7d0ed/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f069e27ce1528d7d0cd/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7eb6d3b320ad547d9d16/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
|
{/* match-image.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7dfad3b320ad547d9ce0/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
|
{/* press-keys.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f739e27ce1528d7d0d9/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-keyboard.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f55dd202a57999808d6/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f749e27ce1528d7d0da/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-text.test.mjs output */}
|
|
14
14
|
<iframe
|
|
15
|
-
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7e5cd3b320ad547d9d03/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f0add202a57999808c8/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7f2a9e27ce1528d7d0d2/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://testdriver-api.onrender.com/api/v1/testdriver/testcase/
|
|
15
|
+
src="https://testdriver-api.onrender.com/api/v1/testdriver/testcase/698f7e5ddd202a57999808ae/replay"
|
|
16
16
|
width="100%"
|
|
17
17
|
height="390"
|
|
18
18
|
style={{ border: "1px solid #333", borderRadius: "8px" }}
|
|
@@ -22,7 +22,7 @@ export function popupLoadingTest(label, options = {}) {
|
|
|
22
22
|
// Accept the cookie banner to trigger the loading process
|
|
23
23
|
let acceptButton = await testdriver.find("Accept All button on the cookie banner", {timeout: 60000});
|
|
24
24
|
|
|
25
|
-
if (acceptButton.found()) {
|
|
25
|
+
if (await acceptButton.found()) {
|
|
26
26
|
await acceptButton.click();
|
|
27
27
|
} else {
|
|
28
28
|
console.log('no cookie banner found, proceeding without accepting cookies');
|
package/lib/vitest/hooks.mjs
CHANGED
|
@@ -324,6 +324,9 @@ export function TestDriver(context, options = {}) {
|
|
|
324
324
|
// Add testdriver log to dashcam tracking
|
|
325
325
|
await testdriver.dashcam.addFileLog(logPath, "TestDriver Log");
|
|
326
326
|
|
|
327
|
+
// Add web log tracking before starting dashcam
|
|
328
|
+
await testdriver.dashcam.addWebLog("**", "Web Logs");
|
|
329
|
+
|
|
327
330
|
// Start dashcam recording
|
|
328
331
|
await testdriver.dashcam.start();
|
|
329
332
|
}
|
package/package.json
CHANGED
package/sdk.js
CHANGED
|
@@ -1376,15 +1376,14 @@ class TestDriverSDK {
|
|
|
1376
1376
|
// Handle preview mode with backwards compatibility for headless option
|
|
1377
1377
|
// Preview can be "browser" (default), "ide", or "none" (headless)
|
|
1378
1378
|
let previewMode = options.preview || process.env.TD_PREVIEW;
|
|
1379
|
-
console.log("[DEBUG SDK constructor] options.preview:", options.preview, "previewMode:", previewMode);
|
|
1380
1379
|
|
|
1381
1380
|
// Backwards compatibility: headless: true maps to preview: "none"
|
|
1382
|
-
|
|
1381
|
+
// headless: true takes precedence over any preview setting
|
|
1382
|
+
if (options.headless === true) {
|
|
1383
1383
|
previewMode = "none";
|
|
1384
1384
|
} else if (!previewMode) {
|
|
1385
1385
|
previewMode = "browser"; // default
|
|
1386
1386
|
}
|
|
1387
|
-
console.log("[DEBUG SDK constructor] final previewMode:", previewMode);
|
|
1388
1387
|
|
|
1389
1388
|
// Set up environment with API key
|
|
1390
1389
|
const environment = {
|
|
@@ -1712,26 +1711,6 @@ class TestDriverSDK {
|
|
|
1712
1711
|
guest = false,
|
|
1713
1712
|
} = options;
|
|
1714
1713
|
|
|
1715
|
-
// If dashcam is enabled, add web logs for all websites
|
|
1716
|
-
// Note: File log and dashcam.start() are handled by the connection promise in hooks.mjs
|
|
1717
|
-
if (this.dashcamEnabled) {
|
|
1718
|
-
// get the domain from the url for more specific logging, e.g. "Web Logs - example.com"
|
|
1719
|
-
let domain = url;
|
|
1720
|
-
let protocol = "https:";
|
|
1721
|
-
try {
|
|
1722
|
-
const urlObj = new URL(url);
|
|
1723
|
-
domain = urlObj.hostname;
|
|
1724
|
-
protocol = urlObj.protocol;
|
|
1725
|
-
} catch (err) {
|
|
1726
|
-
// If URL parsing fails, fall back to using the full URL as the domain
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
// the pattern should be protocol://domain* to match all subpages of the domain
|
|
1730
|
-
const webLogPattern = `${protocol}//${domain}*`;
|
|
1731
|
-
|
|
1732
|
-
await this.dashcam.addWebLog(webLogPattern, "Web Logs");
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
1714
|
// Set up Chrome profile with preferences
|
|
1736
1715
|
const shell = this.os === "windows" ? "pwsh" : "sh";
|
|
1737
1716
|
const userDataDir =
|
|
@@ -1986,12 +1965,6 @@ with zipfile.ZipFile(io.BytesIO(zip_data)) as zf:
|
|
|
1986
1965
|
);
|
|
1987
1966
|
}
|
|
1988
1967
|
|
|
1989
|
-
// If dashcam is enabled, add web logs for all websites
|
|
1990
|
-
// Note: File log and dashcam.start() are handled by the connection promise in hooks.mjs
|
|
1991
|
-
if (this.dashcamEnabled) {
|
|
1992
|
-
await this.dashcam.addWebLog("**", "Web Logs");
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
1968
|
// Set up Chrome profile with preferences
|
|
1996
1969
|
const userDataDir =
|
|
1997
1970
|
this.os === "windows"
|
|
@@ -2112,12 +2085,6 @@ with zipfile.ZipFile(io.BytesIO(zip_data)) as zf:
|
|
|
2112
2085
|
|
|
2113
2086
|
const shell = this.os === "windows" ? "pwsh" : "sh";
|
|
2114
2087
|
|
|
2115
|
-
// If dashcam is enabled, add web logs for all websites
|
|
2116
|
-
// Note: File log and dashcam.start() are handled by the connection promise in hooks.mjs
|
|
2117
|
-
if (this.dashcamEnabled) {
|
|
2118
|
-
await this.dashcam.addWebLog("**", "Web Logs");
|
|
2119
|
-
}
|
|
2120
|
-
|
|
2121
2088
|
// Install extensions if provided
|
|
2122
2089
|
for (const extension of extensions) {
|
|
2123
2090
|
console.log(`[provision.vscode] Installing extension: ${extension}`);
|
|
@@ -2188,12 +2155,6 @@ with zipfile.ZipFile(io.BytesIO(zip_data)) as zf:
|
|
|
2188
2155
|
|
|
2189
2156
|
const shell = this.os === "windows" ? "pwsh" : "sh";
|
|
2190
2157
|
|
|
2191
|
-
// If dashcam is enabled, add web logs for all websites
|
|
2192
|
-
// Note: File log and dashcam.start() are handled by the connection promise in hooks.mjs
|
|
2193
|
-
if (this.dashcamEnabled) {
|
|
2194
|
-
await this.dashcam.addWebLog("**", "Web Logs");
|
|
2195
|
-
}
|
|
2196
|
-
|
|
2197
2158
|
// Determine download directory
|
|
2198
2159
|
const downloadDir =
|
|
2199
2160
|
this.os === "windows" ? "C:\\Users\\testdriver\\Downloads" : "/tmp";
|
|
@@ -2328,12 +2289,6 @@ with zipfile.ZipFile(io.BytesIO(zip_data)) as zf:
|
|
|
2328
2289
|
|
|
2329
2290
|
const shell = this.os === "windows" ? "pwsh" : "sh";
|
|
2330
2291
|
|
|
2331
|
-
// If dashcam is enabled, add web logs for all websites
|
|
2332
|
-
// Note: File log and dashcam.start() are handled by the connection promise in hooks.mjs
|
|
2333
|
-
if (this.dashcamEnabled) {
|
|
2334
|
-
await this.dashcam.addWebLog("**", "Web Logs");
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
2292
|
const argsString = args.join(" ");
|
|
2338
2293
|
|
|
2339
2294
|
if (this.os === "windows") {
|