testdriverai 7.2.48 → 7.2.49
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/examples/ai.test.mjs +1 -1
- package/examples/assert.test.mjs +1 -1
- package/examples/chrome-extension.test.mjs +1 -1
- package/examples/drag-and-drop.test.mjs +1 -1
- package/examples/element-not-found.test.mjs +1 -1
- package/examples/exec-output.test.mjs +1 -1
- package/examples/exec-pwsh.test.mjs +1 -1
- package/examples/focus-window.test.mjs +1 -1
- package/examples/formatted-logging.test.mjs +1 -1
- package/examples/hover-image.test.mjs +1 -1
- package/examples/hover-text-with-description.test.mjs +1 -1
- package/examples/hover-text.test.mjs +1 -1
- package/examples/installer.test.mjs +1 -1
- package/examples/launch-vscode-linux.test.mjs +1 -1
- package/examples/match-image.test.mjs +1 -1
- package/examples/press-keys.test.mjs +1 -1
- package/examples/prompt.test.mjs +1 -1
- package/examples/scroll-keyboard.test.mjs +1 -1
- package/examples/scroll-until-image.test.mjs +1 -1
- package/examples/scroll-until-text.test.mjs +1 -1
- package/examples/scroll.test.mjs +1 -1
- package/examples/type.test.mjs +1 -1
- package/examples/windows-installer.test.mjs +1 -1
- package/package.json +1 -1
package/examples/ai.test.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("AI Test", () => {
|
|
10
10
|
it("should use ai to search for testdriver on Google", async (context) => {
|
package/examples/assert.test.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Assert Test", () => {
|
|
10
10
|
it("should assert the testdriver login page shows", async (context) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { describe, expect, it } from "vitest";
|
|
11
|
-
import { TestDriver } from "
|
|
11
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
12
12
|
|
|
13
13
|
describe("Chrome Extension Test", () => {
|
|
14
14
|
it("should load hello-world Chrome extension from local path", async (context) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Element Not Found Test", () => {
|
|
10
10
|
it("should handle non-existent element gracefully without timing out", async (context) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Formatted Logging Test", () => {
|
|
10
10
|
it("should demonstrate formatted logs in dashcam replay", async (context) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Hover Text Test", () => {
|
|
10
10
|
it("should click Sign In and verify error message", async (context) => {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import path, { dirname } from "path";
|
|
7
7
|
import { fileURLToPath } from "url";
|
|
8
8
|
import { describe, expect, it } from "vitest";
|
|
9
|
-
import { TestDriver } from "
|
|
9
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Perform login flow for SauceLabs demo app
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Press Keys Test", () => {
|
|
10
10
|
it("should create tabs and navigate using keyboard shortcuts", async (context) => {
|
package/examples/prompt.test.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe.skip("Prompt Test", () => {
|
|
10
10
|
it("should execute AI-driven prompts", async (context) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Scroll Keyboard Test", () => {
|
|
10
10
|
it("should navigate to webhamster.com and scroll with keyboard", async (context) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { TestDriver } from "
|
|
7
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
9
|
describe("Scroll Until Image Test", () => {
|
|
10
10
|
it.skip("should scroll until brown colored house image appears", async (context) => {
|
package/examples/scroll.test.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { describe, expect, it } from "vitest";
|
|
9
|
-
import { TestDriver } from "
|
|
9
|
+
import { TestDriver } from "../lib/vitest/hooks.mjs";
|
|
10
10
|
|
|
11
11
|
describe("Scroll Test", () => {
|
|
12
12
|
it("should navigate and scroll down the page", async (context) => {
|
package/examples/type.test.mjs
CHANGED