testdriverai 7.9.30-test → 7.9.32-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "7.9.30-test",
3
+ "version": "7.9.32-canary",
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,39 +0,0 @@
1
- /**
2
- * TestDriver SDK - Web Logs Test (Vitest)
3
- * Opens Notion, adds web logs via dashcam, then navigates to several URLs.
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
- /**
11
- * Navigate Chrome to a new URL using Ctrl+L
12
- * @param {import('../../sdk.js').default} client - TestDriver client instance
13
- * @param {string} url - URL to navigate to
14
- */
15
- async function navigateTo(client, url) {
16
- await client.pressKeys(["ctrl", "l"]);
17
- await client.type(url);
18
- await client.pressKeys(["enter"]);
19
- }
20
-
21
- describe("Web Logs Test", () => {
22
- it("should open Notion, add web logs, and navigate to multiple URLs", async (context) => {
23
- const testdriver = TestDriver(context, { ...getDefaults(context) });
24
-
25
- // Add web logs for all domains
26
- await testdriver.dashcam.addWebLog("http*://*github.com*");
27
-
28
- // Launch Chrome to notion.so
29
- await testdriver.provision.chrome({
30
- url: "https://www.notion.so",
31
- });
32
-
33
- // Navigate to GitHub
34
- await navigateTo(testdriver, "https://github.com");
35
- const githubLoaded = await testdriver.assert("the GitHub homepage is visible");
36
- expect(githubLoaded).toBeTruthy();
37
-
38
- });
39
- });