testdriverai 7.2.27 → 7.2.28
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
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
import { describe, expect, it } from "vitest";
|
|
11
11
|
import { TestDriver } from "../../lib/vitest/hooks.mjs";
|
|
12
12
|
|
|
13
|
+
const isLinux = (process.env.TD_OS || "linux") === "linux";
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
describe("Chrome Extension Test", () => {
|
|
14
|
-
|
|
17
|
+
it.skipIf(!isLinux)("should load hello-world Chrome extension from local path", async (context) => {
|
|
15
18
|
const testdriver = TestDriver(context, { headless: false, newSandbox: true });
|
|
16
19
|
|
|
17
20
|
// Wait for connection to be ready before running exec
|
|
@@ -51,7 +54,7 @@ describe("Chrome Extension Test", () => {
|
|
|
51
54
|
expect(popupResult).toBeTruthy();
|
|
52
55
|
});
|
|
53
56
|
|
|
54
|
-
|
|
57
|
+
it.skipIf(!isLinux)("should load Loom from Chrome Web Store by extensionId", async (context) => {
|
|
55
58
|
const testdriver = TestDriver(context, { headless: false, newSandbox: true});
|
|
56
59
|
|
|
57
60
|
// Launch Chrome with Loom loaded by its Chrome Web Store ID
|
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
7
|
import { TestDriver } from "../../lib/vitest/hooks.mjs";
|
|
8
8
|
|
|
9
|
+
const isLinux = (process.env.TD_OS || "linux") === "linux";
|
|
10
|
+
|
|
9
11
|
describe("Provision Installer", () => {
|
|
10
|
-
it(
|
|
12
|
+
it.skipIf(!isLinux)(
|
|
11
13
|
"should download and install a .deb package on Linux",
|
|
12
14
|
async (context) => {
|
|
13
15
|
const testdriver = TestDriver(context, { newSandbox: true });
|
|
@@ -25,7 +27,7 @@ describe("Provision Installer", () => {
|
|
|
25
27
|
},
|
|
26
28
|
);
|
|
27
29
|
|
|
28
|
-
it(
|
|
30
|
+
it.skipIf(!isLinux)(
|
|
29
31
|
"should download a shell script and verify it exists",
|
|
30
32
|
async (context) => {
|
|
31
33
|
const testdriver = TestDriver(context, { newSandbox: true });
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { TestDriver } from "../../lib/vitest/hooks.mjs";
|
|
3
3
|
|
|
4
|
+
const isLinux = (process.env.TD_OS || "linux") === "linux";
|
|
5
|
+
|
|
4
6
|
describe("Launch VS Code on Linux", () => {
|
|
5
|
-
it(
|
|
7
|
+
it.skipIf(!isLinux)(
|
|
6
8
|
"should launch VS Code on Debian/Ubuntu",
|
|
7
9
|
async (context) => {
|
|
8
10
|
const testdriver = TestDriver(context, { newSandbox: true });
|
|
@@ -19,7 +21,7 @@ describe("Launch VS Code on Linux", () => {
|
|
|
19
21
|
},
|
|
20
22
|
);
|
|
21
23
|
|
|
22
|
-
it(
|
|
24
|
+
it.skipIf(!isLinux)(
|
|
23
25
|
"should install and use a VS Code extension",
|
|
24
26
|
async (context) => {
|
|
25
27
|
const testdriver = TestDriver(context, { newSandbox: true });
|