testdriverai 7.11.221-test → 7.11.222-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.
Files changed (40) hide show
  1. package/ai/agents/testdriver.md +5 -5
  2. package/ai/skills/testdriver-aws-setup/SKILL.md +1 -1
  3. package/ai/skills/testdriver-cache/SKILL.md +1 -1
  4. package/ai/skills/testdriver-ci-cd/SKILL.md +2 -2
  5. package/ai/skills/testdriver-quickstart-manual/SKILL.md +1 -1
  6. package/ai/skills/testdriver-test-results-json/SKILL.md +2 -2
  7. package/ai/skills/testdriver-testdriver/SKILL.md +5 -5
  8. package/ai/skills/testdriver:aws-setup/SKILL.md +1 -1
  9. package/ai/skills/testdriver:cache/SKILL.md +1 -1
  10. package/ai/skills/testdriver:test-results-json/SKILL.md +2 -2
  11. package/ai/skills/testdriver:testdriver/SKILL.md +5 -5
  12. package/docs/_scripts/generate-examples.js +1 -1
  13. package/docs/aws-setup.mdx +1 -1
  14. package/docs/cache.mdx +1 -1
  15. package/docs/ci-cd.mdx +2 -2
  16. package/docs/examples/ai.mdx +1 -1
  17. package/docs/examples/assert.mdx +1 -1
  18. package/docs/examples/captcha-api.mdx +1 -1
  19. package/docs/examples/chrome-extension.mdx +1 -1
  20. package/docs/examples/drag-and-drop.mdx +1 -1
  21. package/docs/examples/element-not-found.mdx +1 -1
  22. package/docs/examples/findall-coffee-icons.mdx +1 -1
  23. package/docs/examples/formatted-logging.mdx +1 -1
  24. package/docs/examples/hover-image.mdx +1 -1
  25. package/docs/examples/hover-text-with-description.mdx +1 -1
  26. package/docs/examples/hover-text.mdx +1 -1
  27. package/docs/examples/installer.mdx +1 -1
  28. package/docs/examples/launch-vscode-linux.mdx +1 -1
  29. package/docs/examples/match-image.mdx +1 -1
  30. package/docs/examples/parse.mdx +1 -1
  31. package/docs/examples/press-keys.mdx +1 -1
  32. package/docs/examples/scroll-keyboard.mdx +1 -1
  33. package/docs/examples/scroll-until-text.mdx +1 -1
  34. package/docs/examples/scroll.mdx +1 -1
  35. package/docs/examples/type.mdx +1 -1
  36. package/docs/quickstart-manual.mdx +1 -1
  37. package/docs/test-results-json.mdx +2 -2
  38. package/lib/init-project.js +1 -1
  39. package/manual/packer-hover-image.test.mjs +1 -1
  40. package/package.json +1 -1
@@ -44,7 +44,7 @@ Use this agent when the user asks to:
44
44
  4. **⚠️ WRITE CODE IMMEDIATELY**: After EVERY successful action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the end.
45
45
  5. **Verify Actions**: Use `check` after actions to verify they succeeded (for YOUR understanding only).
46
46
  6. **Add Assertions**: Use `assert` for test conditions that should be in the final test file.
47
- 7. **⚠️ RUN THE TEST YOURSELF**: Use `vitest run <testFile>` to run the test - do NOT tell the user to run it. Iterate until it passes. **NEVER use `npx vitest`** - always use `vitest` directly.
47
+ 7. **⚠️ RUN THE TEST YOURSELF**: Use `vitest run` to run the test - do NOT tell the user to run it. Iterate until it passes.
48
48
  8. **⚠️ SHARE THE TEST REPORT**: After EVERY test run, find the `TESTDRIVER_RUN_URL` in the output (e.g., `TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...`) and share it with the user so they can view the recording and results.
49
49
 
50
50
  ## Prerequisites
@@ -255,7 +255,7 @@ TestDriver **automatically captures screenshots before and after every command**
255
255
 
256
256
  **Every MCP tool response includes "ACTION REQUIRED: Append this code..." - you MUST write that code to the test file IMMEDIATELY before proceeding to the next action.**
257
257
 
258
- **When ready to validate, RUN THE TEST YOURSELF using `vitest run`. Do NOT tell the user to run it. NEVER use `npx vitest`.**
258
+ **When ready to validate, RUN THE TEST YOURSELF using `vitest run`. Do NOT tell the user to run it.**
259
259
 
260
260
  ### Step 1: Start a Session
261
261
 
@@ -312,7 +312,7 @@ assert({ assertion: "the dashboard is visible" })
312
312
 
313
313
  ### Step 5: Run the Test Yourself
314
314
 
315
- **⚠️ YOU must run the test - do NOT tell the user to run it. NEVER use `npx vitest` - always use `vitest` directly:**
315
+ **⚠️ YOU must run the test - do NOT tell the user to run it. Use `vitest run`:**
316
316
 
317
317
  ```bash
318
318
  vitest run tests/login.test.mjs
@@ -455,7 +455,7 @@ list_local_screenshots({ directory: "checkout.test", phase: "before", limit: 10
455
455
  ### Tips for MCP Workflow
456
456
 
457
457
  1. **⚠️ Write code IMMEDIATELY** - After EVERY action, append generated code to test file RIGHT AWAY
458
- 2. **⚠️ Run tests YOURSELF** - Use `vitest run` (NEVER `npx vitest`) - do NOT tell user to run tests
458
+ 2. **⚠️ Run tests YOURSELF** - Use `vitest run` - do NOT tell user to run tests
459
459
  3. **⚠️ Add screenshots liberally** - Include `await testdriver.screenshot()` after every significant action for debugging
460
460
  4. **⚠️ Use screenshot viewing for debugging** - When tests fail, use `list_local_screenshots` and `view_local_screenshot` to understand what went wrong
461
461
  5. **Work incrementally** - Don't try to build the entire test at once
@@ -610,7 +610,7 @@ await testdriver.screenshot(1, false, true);
610
610
  ## Tips for Agents
611
611
 
612
612
  1. **⚠️ WRITE CODE IMMEDIATELY** - After EVERY successful MCP action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the session ends.
613
- 2. **⚠️ RUN TESTS YOURSELF** - Do NOT tell the user to run tests. YOU must run the tests using `vitest run <testFile>` (NEVER use `npx vitest`). Analyze the output and iterate until the test passes.
613
+ 2. **⚠️ RUN TESTS YOURSELF** - Do NOT tell the user to run tests. YOU must run the tests using `vitest run <testFile>`. Analyze the output and iterate until the test passes.
614
614
  3. **⚠️ SHARE THE TEST REPORT URL** - After EVERY test run, find `TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...` in the output and share it with the user. This is CRITICAL - users need to view the recording to understand what happened.
615
615
  3. **Screenshots are automatic** - TestDriver captures screenshots before/after every command by default. Each screenshot filename includes the line number (e.g., `001-click-before-L42-submit-button.png`) making it easy to trace issues.
616
616
  4. **⚠️ USE SCREENSHOT VIEWING FOR DEBUGGING** - When tests fail, use `list_local_screenshots` and `view_local_screenshot` MCP commands to see exactly what the UI looked like. The filenames tell you which line of code triggered each screenshot.
@@ -256,7 +256,7 @@ jobs:
256
256
  run: npm ci
257
257
 
258
258
  - name: Run Windows tests with self-hosted instances
259
- run: npx vitest run examples/*.test.mjs
259
+ run: vitest run examples/*.test.mjs
260
260
  env:
261
261
  TD_API_KEY: ${{ secrets.TD_API_KEY }}
262
262
  TD_OS: windows
@@ -93,7 +93,7 @@ const testdriver = new TestDriver({
93
93
  const testdriver = new TestDriver({ cache: false });
94
94
 
95
95
  // Via environment variable
96
- // TD_NO_CACHE=true npx vitest run
96
+ // TD_NO_CACHE=true vitest run
97
97
  ```
98
98
 
99
99
  When cache is disabled, all thresholds are set to `-1` internally, causing the API to skip cache lookups.
@@ -65,7 +65,7 @@ Add it as a `TD_API_KEY` secret in the settings of your CI provider.
65
65
  api-key: ${{ secrets.TD_API_KEY }} # optional fallback if OIDC isn't set up
66
66
 
67
67
  - name: Run TestDriver tests
68
- run: npx vitest run
68
+ run: vitest run
69
69
  ```
70
70
 
71
71
  ### Stored-key fallback
@@ -664,7 +664,7 @@ and the realtime slot-approval handshake.
664
664
  env:
665
665
  TD_API_KEY: ${{ secrets.TD_API_KEY }}
666
666
  TD_CONCURRENCY_MAX_WAIT: "300"
667
- run: npx vitest run
667
+ run: vitest run
668
668
  ```
669
669
 
670
670
  <Tip>
@@ -104,7 +104,7 @@ If you only want to drive TestDriver from chat, [MCP Setup](/mcp-setup) is a sin
104
104
  <Step title="Run the test">
105
105
 
106
106
  ```bash
107
- npx vitest run
107
+ vitest run
108
108
  ```
109
109
 
110
110
  A sandbox starts, Chrome opens, and a live preview appears in your browser. When the run finishes, open the `TESTDRIVER_RUN_URL` printed at the end of the output to see the recording and step-by-step screenshots.
@@ -175,7 +175,7 @@ Use `fromJSON` to parse a result file into a GitHub Actions expression you can r
175
175
 
176
176
  ```yaml
177
177
  - name: Run tests
178
- run: npx vitest run tests/login.test.mjs
178
+ run: vitest run tests/login.test.mjs
179
179
 
180
180
  - name: Parse result
181
181
  id: result
@@ -210,7 +210,7 @@ You can also load all results into a matrix or iterate over them:
210
210
 
211
211
  ```yaml
212
212
  - name: Run tests
213
- run: npx vitest run tests/*.test.mjs
213
+ run: vitest run tests/*.test.mjs
214
214
 
215
215
  - name: Collect results
216
216
  id: results
@@ -34,7 +34,7 @@ Use this agent when the user asks to:
34
34
  4. **⚠️ WRITE CODE IMMEDIATELY**: After EVERY successful action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the end.
35
35
  5. **Verify Actions**: Use `check` after actions to verify they succeeded (for YOUR understanding only).
36
36
  6. **Add Assertions**: Use `assert` for test conditions that should be in the final test file.
37
- 7. **⚠️ RUN THE TEST YOURSELF**: Use `vitest run <testFile>` to run the test - do NOT tell the user to run it. Iterate until it passes. **NEVER use `npx vitest`** - always use `vitest` directly.
37
+ 7. **⚠️ RUN THE TEST YOURSELF**: Use `vitest run` to run the test - do NOT tell the user to run it. Iterate until it passes.
38
38
  8. **⚠️ SHARE THE TEST REPORT**: After EVERY test run, find the `TESTDRIVER_RUN_URL` in the output (e.g., `TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...`) and share it with the user so they can view the recording and results.
39
39
 
40
40
  ## Prerequisites
@@ -245,7 +245,7 @@ TestDriver **automatically captures screenshots before and after every command**
245
245
 
246
246
  **Every MCP tool response includes "ACTION REQUIRED: Append this code..." - you MUST write that code to the test file IMMEDIATELY before proceeding to the next action.**
247
247
 
248
- **When ready to validate, RUN THE TEST YOURSELF using `vitest run`. Do NOT tell the user to run it. NEVER use `npx vitest`.**
248
+ **When ready to validate, RUN THE TEST YOURSELF using `vitest run`. Do NOT tell the user to run it.**
249
249
 
250
250
  ### Step 1: Start a Session
251
251
 
@@ -302,7 +302,7 @@ assert({ assertion: "the dashboard is visible" })
302
302
 
303
303
  ### Step 5: Run the Test Yourself
304
304
 
305
- **⚠️ YOU must run the test - do NOT tell the user to run it. NEVER use `npx vitest` - always use `vitest` directly:**
305
+ **⚠️ YOU must run the test - do NOT tell the user to run it. Use `vitest run`:**
306
306
 
307
307
  ```bash
308
308
  vitest run tests/login.test.mjs
@@ -445,7 +445,7 @@ list_local_screenshots({ directory: "checkout.test", phase: "before", limit: 10
445
445
  ### Tips for MCP Workflow
446
446
 
447
447
  1. **⚠️ Write code IMMEDIATELY** - After EVERY action, append generated code to test file RIGHT AWAY
448
- 2. **⚠️ Run tests YOURSELF** - Use `vitest run` (NEVER `npx vitest`) - do NOT tell user to run tests
448
+ 2. **⚠️ Run tests YOURSELF** - Use `vitest run` - do NOT tell user to run tests
449
449
  3. **⚠️ Add screenshots liberally** - Include `await testdriver.screenshot()` after every significant action for debugging
450
450
  4. **⚠️ Use screenshot viewing for debugging** - When tests fail, use `list_local_screenshots` and `view_local_screenshot` to understand what went wrong
451
451
  5. **Work incrementally** - Don't try to build the entire test at once
@@ -600,7 +600,7 @@ await testdriver.screenshot(1, false, true);
600
600
  ## Tips for Agents
601
601
 
602
602
  1. **⚠️ WRITE CODE IMMEDIATELY** - After EVERY successful MCP action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the session ends.
603
- 2. **⚠️ RUN TESTS YOURSELF** - Do NOT tell the user to run tests. YOU must run the tests using `vitest run <testFile>` (NEVER use `npx vitest`). Analyze the output and iterate until the test passes.
603
+ 2. **⚠️ RUN TESTS YOURSELF** - Do NOT tell the user to run tests. YOU must run the tests using `vitest run <testFile>`. Analyze the output and iterate until the test passes.
604
604
  3. **⚠️ SHARE THE TEST REPORT URL** - After EVERY test run, find `TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...` in the output and share it with the user. This is CRITICAL - users need to view the recording to understand what happened.
605
605
  3. **Screenshots are automatic** - TestDriver captures screenshots before/after every command by default. Each screenshot filename includes the line number (e.g., `001-click-before-L42-submit-button.png`) making it easy to trace issues.
606
606
  4. **⚠️ USE SCREENSHOT VIEWING FOR DEBUGGING** - When tests fail, use `list_local_screenshots` and `view_local_screenshot` MCP commands to see exactly what the UI looked like. The filenames tell you which line of code triggered each screenshot.
@@ -256,7 +256,7 @@ jobs:
256
256
  run: npm ci
257
257
 
258
258
  - name: Run Windows tests with self-hosted instances
259
- run: npx vitest run examples/*.test.mjs
259
+ run: vitest run examples/*.test.mjs
260
260
  env:
261
261
  TD_API_KEY: ${{ secrets.TD_API_KEY }}
262
262
  TD_OS: windows
@@ -93,7 +93,7 @@ const testdriver = new TestDriver({
93
93
  const testdriver = new TestDriver({ cache: false });
94
94
 
95
95
  // Via environment variable
96
- // TD_NO_CACHE=true npx vitest run
96
+ // TD_NO_CACHE=true vitest run
97
97
  ```
98
98
 
99
99
  When cache is disabled, all thresholds are set to `-1` internally, causing the API to skip cache lookups.
@@ -175,7 +175,7 @@ Use `fromJSON` to parse a result file into a GitHub Actions expression you can r
175
175
 
176
176
  ```yaml
177
177
  - name: Run tests
178
- run: npx vitest run tests/login.test.mjs
178
+ run: vitest run tests/login.test.mjs
179
179
 
180
180
  - name: Parse result
181
181
  id: result
@@ -210,7 +210,7 @@ You can also load all results into a matrix or iterate over them:
210
210
 
211
211
  ```yaml
212
212
  - name: Run tests
213
- run: npx vitest run tests/*.test.mjs
213
+ run: vitest run tests/*.test.mjs
214
214
 
215
215
  - name: Collect results
216
216
  id: results
@@ -34,7 +34,7 @@ Use this agent when the user asks to:
34
34
  4. **⚠️ WRITE CODE IMMEDIATELY**: After EVERY successful action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the end.
35
35
  5. **Verify Actions**: Use `check` after actions to verify they succeeded (for YOUR understanding only).
36
36
  6. **Add Assertions**: Use `assert` for test conditions that should be in the final test file.
37
- 7. **⚠️ RUN THE TEST YOURSELF**: Use `vitest run <testFile>` to run the test - do NOT tell the user to run it. Iterate until it passes. **NEVER use `npx vitest`** - always use `vitest` directly.
37
+ 7. **⚠️ RUN THE TEST YOURSELF**: Use `vitest run` to run the test - do NOT tell the user to run it. Iterate until it passes.
38
38
  8. **⚠️ SHARE THE TEST REPORT**: After EVERY test run, find the `TESTDRIVER_RUN_URL` in the output (e.g., `TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...`) and share it with the user so they can view the recording and results.
39
39
 
40
40
  ## Prerequisites
@@ -245,7 +245,7 @@ TestDriver **automatically captures screenshots before and after every command**
245
245
 
246
246
  **Every MCP tool response includes "ACTION REQUIRED: Append this code..." - you MUST write that code to the test file IMMEDIATELY before proceeding to the next action.**
247
247
 
248
- **When ready to validate, RUN THE TEST YOURSELF using `vitest run`. Do NOT tell the user to run it. NEVER use `npx vitest`.**
248
+ **When ready to validate, RUN THE TEST YOURSELF using `vitest run`. Do NOT tell the user to run it.**
249
249
 
250
250
  ### Step 1: Start a Session
251
251
 
@@ -302,7 +302,7 @@ assert({ assertion: "the dashboard is visible" })
302
302
 
303
303
  ### Step 5: Run the Test Yourself
304
304
 
305
- **⚠️ YOU must run the test - do NOT tell the user to run it. NEVER use `npx vitest` - always use `vitest` directly:**
305
+ **⚠️ YOU must run the test - do NOT tell the user to run it. Use `vitest run`:**
306
306
 
307
307
  ```bash
308
308
  vitest run tests/login.test.mjs
@@ -445,7 +445,7 @@ list_local_screenshots({ directory: "checkout.test", phase: "before", limit: 10
445
445
  ### Tips for MCP Workflow
446
446
 
447
447
  1. **⚠️ Write code IMMEDIATELY** - After EVERY action, append generated code to test file RIGHT AWAY
448
- 2. **⚠️ Run tests YOURSELF** - Use `vitest run` (NEVER `npx vitest`) - do NOT tell user to run tests
448
+ 2. **⚠️ Run tests YOURSELF** - Use `vitest run` - do NOT tell user to run tests
449
449
  3. **⚠️ Add screenshots liberally** - Include `await testdriver.screenshot()` after every significant action for debugging
450
450
  4. **⚠️ Use screenshot viewing for debugging** - When tests fail, use `list_local_screenshots` and `view_local_screenshot` to understand what went wrong
451
451
  5. **Work incrementally** - Don't try to build the entire test at once
@@ -600,7 +600,7 @@ await testdriver.screenshot(1, false, true);
600
600
  ## Tips for Agents
601
601
 
602
602
  1. **⚠️ WRITE CODE IMMEDIATELY** - After EVERY successful MCP action, append the generated code to the test file RIGHT AWAY. Do NOT wait until the session ends.
603
- 2. **⚠️ RUN TESTS YOURSELF** - Do NOT tell the user to run tests. YOU must run the tests using `vitest run <testFile>` (NEVER use `npx vitest`). Analyze the output and iterate until the test passes.
603
+ 2. **⚠️ RUN TESTS YOURSELF** - Do NOT tell the user to run tests. YOU must run the tests using `vitest run <testFile>`. Analyze the output and iterate until the test passes.
604
604
  3. **⚠️ SHARE THE TEST REPORT URL** - After EVERY test run, find `TESTDRIVER_RUN_URL=https://console.testdriver.ai/runs/...` in the output and share it with the user. This is CRITICAL - users need to view the recording to understand what happened.
605
605
  3. **Screenshots are automatic** - TestDriver captures screenshots before/after every command by default. Each screenshot filename includes the line number (e.g., `001-click-before-L42-submit-button.png`) making it easy to trace issues.
606
606
  4. **⚠️ USE SCREENSHOT VIEWING FOR DEBUGGING** - When tests fail, use `list_local_screenshots` and `view_local_screenshot` MCP commands to see exactly what the UI looked like. The filenames tell you which line of code triggered each screenshot.
@@ -447,7 +447,7 @@ cd testdriverai
447
447
  npm install
448
448
 
449
449
  # Run this specific example
450
- npx vitest run examples/${testMeta.filename}
450
+ vitest run examples/${testMeta.filename}
451
451
  \`\`\`
452
452
 
453
453
  <Note>
@@ -257,7 +257,7 @@ jobs:
257
257
  run: npm ci
258
258
 
259
259
  - name: Run Windows tests with self-hosted instances
260
- run: npx vitest run examples/*.test.mjs
260
+ run: vitest run examples/*.test.mjs
261
261
  env:
262
262
  TD_API_KEY: ${{ secrets.TD_API_KEY }}
263
263
  TD_OS: windows
package/docs/cache.mdx CHANGED
@@ -95,7 +95,7 @@ const testdriver = new TestDriver({
95
95
  const testdriver = new TestDriver({ cache: false });
96
96
 
97
97
  // Via environment variable
98
- // TD_NO_CACHE=true npx vitest run
98
+ // TD_NO_CACHE=true vitest run
99
99
  ```
100
100
 
101
101
  When cache is disabled, all thresholds are set to `-1` internally, causing the API to skip cache lookups.
package/docs/ci-cd.mdx CHANGED
@@ -66,7 +66,7 @@ Add it as a `TD_API_KEY` secret in the settings of your CI provider.
66
66
  api-key: ${{ secrets.TD_API_KEY }} # optional fallback if OIDC isn't set up
67
67
 
68
68
  - name: Run TestDriver tests
69
- run: npx vitest run
69
+ run: vitest run
70
70
  ```
71
71
 
72
72
  ### Stored-key fallback
@@ -665,7 +665,7 @@ and the realtime slot-approval handshake.
665
665
  env:
666
666
  TD_API_KEY: ${{ secrets.TD_API_KEY }}
667
667
  TD_CONCURRENCY_MAX_WAIT: "300"
668
- run: npx vitest run
668
+ run: vitest run
669
669
  ```
670
670
 
671
671
  <Tip>
@@ -70,7 +70,7 @@ cd testdriverai
70
70
  npm install
71
71
 
72
72
  # Run this specific example
73
- npx vitest run examples/ai.test.mjs
73
+ vitest run examples/ai.test.mjs
74
74
  ```
75
75
 
76
76
  <Note>
@@ -79,7 +79,7 @@ cd testdriverai
79
79
  npm install
80
80
 
81
81
  # Run this specific example
82
- npx vitest run examples/assert.test.mjs
82
+ vitest run examples/assert.test.mjs
83
83
  ```
84
84
 
85
85
  <Note>
@@ -84,7 +84,7 @@ cd testdriverai
84
84
  npm install
85
85
 
86
86
  # Run this specific example
87
- npx vitest run examples/captcha-api.test.mjs
87
+ vitest run examples/captcha-api.test.mjs
88
88
  ```
89
89
 
90
90
  <Note>
@@ -148,7 +148,7 @@ cd testdriverai
148
148
  npm install
149
149
 
150
150
  # Run this specific example
151
- npx vitest run examples/chrome-extension.test.mjs
151
+ vitest run examples/chrome-extension.test.mjs
152
152
  ```
153
153
 
154
154
  <Note>
@@ -92,7 +92,7 @@ cd testdriverai
92
92
  npm install
93
93
 
94
94
  # Run this specific example
95
- npx vitest run examples/drag-and-drop.test.mjs
95
+ vitest run examples/drag-and-drop.test.mjs
96
96
  ```
97
97
 
98
98
  <Note>
@@ -60,7 +60,7 @@ cd testdriverai
60
60
  npm install
61
61
 
62
62
  # Run this specific example
63
- npx vitest run examples/element-not-found.test.mjs
63
+ vitest run examples/element-not-found.test.mjs
64
64
  ```
65
65
 
66
66
  <Note>
@@ -81,7 +81,7 @@ cd testdriverai
81
81
  npm install
82
82
 
83
83
  # Run this specific example
84
- npx vitest run examples/findall-coffee-icons.test.mjs
84
+ vitest run examples/findall-coffee-icons.test.mjs
85
85
  ```
86
86
 
87
87
  <Note>
@@ -66,7 +66,7 @@ cd testdriverai
66
66
  npm install
67
67
 
68
68
  # Run this specific example
69
- npx vitest run examples/formatted-logging.test.mjs
69
+ vitest run examples/formatted-logging.test.mjs
70
70
  ```
71
71
 
72
72
  <Note>
@@ -87,7 +87,7 @@ cd testdriverai
87
87
  npm install
88
88
 
89
89
  # Run this specific example
90
- npx vitest run examples/hover-image.test.mjs
90
+ vitest run examples/hover-image.test.mjs
91
91
  ```
92
92
 
93
93
  <Note>
@@ -96,7 +96,7 @@ cd testdriverai
96
96
  npm install
97
97
 
98
98
  # Run this specific example
99
- npx vitest run examples/hover-text-with-description.test.mjs
99
+ vitest run examples/hover-text-with-description.test.mjs
100
100
  ```
101
101
 
102
102
  <Note>
@@ -62,7 +62,7 @@ cd testdriverai
62
62
  npm install
63
63
 
64
64
  # Run this specific example
65
- npx vitest run examples/hover-text.test.mjs
65
+ vitest run examples/hover-text.test.mjs
66
66
  ```
67
67
 
68
68
  <Note>
@@ -84,7 +84,7 @@ cd testdriverai
84
84
  npm install
85
85
 
86
86
  # Run this specific example
87
- npx vitest run examples/installer.test.mjs
87
+ vitest run examples/installer.test.mjs
88
88
  ```
89
89
 
90
90
  <Note>
@@ -89,7 +89,7 @@ cd testdriverai
89
89
  npm install
90
90
 
91
91
  # Run this specific example
92
- npx vitest run examples/launch-vscode-linux.test.mjs
92
+ vitest run examples/launch-vscode-linux.test.mjs
93
93
  ```
94
94
 
95
95
  <Note>
@@ -89,7 +89,7 @@ cd testdriverai
89
89
  npm install
90
90
 
91
91
  # Run this specific example
92
- npx vitest run examples/match-image.test.mjs
92
+ vitest run examples/match-image.test.mjs
93
93
  ```
94
94
 
95
95
  <Note>
@@ -59,7 +59,7 @@ cd testdriverai
59
59
  npm install
60
60
 
61
61
  # Run this specific example
62
- npx vitest run examples/parse.test.mjs
62
+ vitest run examples/parse.test.mjs
63
63
  ```
64
64
 
65
65
  <Note>
@@ -78,7 +78,7 @@ cd testdriverai
78
78
  npm install
79
79
 
80
80
  # Run this specific example
81
- npx vitest run examples/press-keys.test.mjs
81
+ vitest run examples/press-keys.test.mjs
82
82
  ```
83
83
 
84
84
  <Note>
@@ -72,7 +72,7 @@ cd testdriverai
72
72
  npm install
73
73
 
74
74
  # Run this specific example
75
- npx vitest run examples/scroll-keyboard.test.mjs
75
+ vitest run examples/scroll-keyboard.test.mjs
76
76
  ```
77
77
 
78
78
  <Note>
@@ -101,7 +101,7 @@ cd testdriverai
101
101
  npm install
102
102
 
103
103
  # Run this specific example
104
- npx vitest run examples/scroll-until-text.test.mjs
104
+ vitest run examples/scroll-until-text.test.mjs
105
105
  ```
106
106
 
107
107
  <Note>
@@ -65,7 +65,7 @@ cd testdriverai
65
65
  npm install
66
66
 
67
67
  # Run this specific example
68
- npx vitest run examples/scroll.test.mjs
68
+ vitest run examples/scroll.test.mjs
69
69
  ```
70
70
 
71
71
  <Note>
@@ -80,7 +80,7 @@ cd testdriverai
80
80
  npm install
81
81
 
82
82
  # Run this specific example
83
- npx vitest run examples/type.test.mjs
83
+ vitest run examples/type.test.mjs
84
84
  ```
85
85
 
86
86
  <Note>
@@ -105,7 +105,7 @@ If you only want to drive TestDriver from chat, [MCP Setup](/mcp-setup) is a sin
105
105
  <Step title="Run the test">
106
106
 
107
107
  ```bash
108
- npx vitest run
108
+ vitest run
109
109
  ```
110
110
 
111
111
  A sandbox starts, Chrome opens, and a live preview appears in your browser. When the run finishes, open the `TESTDRIVER_RUN_URL` printed at the end of the output to see the recording and step-by-step screenshots.
@@ -176,7 +176,7 @@ Use `fromJSON` to parse a result file into a GitHub Actions expression you can r
176
176
 
177
177
  ```yaml
178
178
  - name: Run tests
179
- run: npx vitest run tests/login.test.mjs
179
+ run: vitest run tests/login.test.mjs
180
180
 
181
181
  - name: Parse result
182
182
  id: result
@@ -211,7 +211,7 @@ You can also load all results into a matrix or iterate over them:
211
211
 
212
212
  ```yaml
213
213
  - name: Run tests
214
- run: npx vitest run tests/*.test.mjs
214
+ run: vitest run tests/*.test.mjs
215
215
 
216
216
  - name: Collect results
217
217
  id: results
@@ -289,7 +289,7 @@ jobs:
289
289
  api-key: \${{ secrets.TD_API_KEY }}
290
290
 
291
291
  - name: Run TestDriver.ai tests
292
- run: npx vitest run
292
+ run: vitest run
293
293
 
294
294
  - name: Upload test results
295
295
  if: always()
@@ -8,7 +8,7 @@
8
8
  * Usage:
9
9
  * TD_API_ROOT=http://localhost:1337 \
10
10
  * TD_API_KEY=<key> \
11
- * npx vitest run examples/packer-hover-image.test.mjs
11
+ * vitest run examples/packer-hover-image.test.mjs
12
12
  *
13
13
  * The packer build takes ~25 minutes, and the hover-image test ~5-10 minutes,
14
14
  * so the overall test timeout is set to 60 minutes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.11.221-test",
3
+ "version": "7.11.222-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",