@testdriverai/mcp 7.11.7-test → 7.11.8-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testdriverai/mcp",
3
- "version": "7.11.7-test",
3
+ "version": "7.11.8-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,31 +0,0 @@
1
- /**
2
- * TestDriver SDK - AI Test (Vitest)
3
- * Tests the AI exploratory loop (ai) functionality
4
- */
5
-
6
- import { describe, expect, it } from "vitest";
7
- import { TestDriver } from "../lib/vitest/hooks.mjs";
8
- import { getDefaults } from "./config.mjs";
9
-
10
- describe("AI Test", () => {
11
- it("should use ai to search for testdriver on Google", async (context) => {
12
- const testdriver = TestDriver(context, { ...getDefaults(context) });
13
-
14
- // provision.chrome() automatically calls ready() and starts dashcam
15
- await testdriver.provision.chrome({
16
- url: 'https://duckduckgo.com',
17
- });
18
-
19
- // Use ai to search for testdriver
20
- let aiRes = await testdriver.ai("click on the empty search box, type 'testdriver', and hit enter.");
21
-
22
- console.log("AI response:", aiRes);
23
-
24
- // Assert the search results are displayed
25
- const result = await testdriver.assert(
26
- "search results for testdriver are visible",
27
- );
28
-
29
- expect(result).toBeTruthy();
30
- });
31
- });