testdriverai 5.7.13 → 5.7.15
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/.github/workflows/testdriver.yml +1 -2
- package/index.js +20 -0
- package/lib/overlay.js +4 -4
- package/package.json +1 -1
|
@@ -96,7 +96,6 @@ jobs:
|
|
|
96
96
|
name: Commit Snippets
|
|
97
97
|
needs: run-tests
|
|
98
98
|
runs-on: ubuntu-latest
|
|
99
|
-
if: github.event_name != 'pull_request'
|
|
100
99
|
steps:
|
|
101
100
|
- name: Check out current branch
|
|
102
101
|
uses: actions/checkout@v3
|
|
@@ -116,4 +115,4 @@ jobs:
|
|
|
116
115
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
|
117
116
|
git add docs/snippets/tests
|
|
118
117
|
git diff --cached --quiet && echo "No changes to commit" || git commit -m "Update test snippets [skip ci]"
|
|
119
|
-
git push
|
|
118
|
+
git push
|
package/index.js
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
// being called on server with
|
|
4
|
+
// {
|
|
5
|
+
// TD_SPEAK: false,
|
|
6
|
+
// TD_ANALYTICS: true,
|
|
7
|
+
// TD_NOTIFY: false,
|
|
8
|
+
// TD_MINIMIZE: false,
|
|
9
|
+
// TD_API_ROOT: 'https://api.testdriver.ai',
|
|
10
|
+
// TD_API_KEY: 'xxx',
|
|
11
|
+
// TD_DEV: undefined,
|
|
12
|
+
// TD_PROFILE: false,
|
|
13
|
+
// TD_OVERLAY: true,
|
|
14
|
+
// TD_SECRET: 'xxx',
|
|
15
|
+
// TD_VM: true,
|
|
16
|
+
// TD_OVERLAY_ID: null,
|
|
17
|
+
// TD_VM_RESOLUTION: [ 1920, 1080 ],
|
|
18
|
+
// TD_IPC_ID: 'testdriverai_4708',
|
|
19
|
+
// TD_INTERPOLATION_VARS: '{"TD_WEBSITE":"https://testdriver-sandbox.vercel.app","TD_VM_RESOLUTION":"1920x1080"}',
|
|
20
|
+
// TD_WEBSITE: 'https://testdriver-sandbox.vercel.app'
|
|
21
|
+
// }
|
|
22
|
+
|
|
3
23
|
const config = require("./lib/config.js");
|
|
4
24
|
|
|
5
25
|
// We need to initialize the IPC server quickly
|
package/lib/overlay.js
CHANGED
|
@@ -24,7 +24,7 @@ module.exports.createOverlayProcess = ({ id, detached = false } = {}) => {
|
|
|
24
24
|
|
|
25
25
|
// Fork the Electron process with overlay.js as an argument
|
|
26
26
|
electronProcess = fork(electronCliPath, args, {
|
|
27
|
-
stdio: "
|
|
27
|
+
stdio: "inherit",
|
|
28
28
|
env: {
|
|
29
29
|
...process.env,
|
|
30
30
|
TD_OVERLAY_ID: id,
|
|
@@ -37,9 +37,9 @@ module.exports.createOverlayProcess = ({ id, detached = false } = {}) => {
|
|
|
37
37
|
}
|
|
38
38
|
return new Promise((resolve, reject) => {
|
|
39
39
|
electronProcess.on("spawn", () => {
|
|
40
|
-
electronProcess.stdout.on("data", (data) => {
|
|
41
|
-
|
|
42
|
-
});
|
|
40
|
+
// electronProcess.stdout.on("data", (data) => {
|
|
41
|
+
// logger.info(`ELECTRON: ${data.toString()}`);
|
|
42
|
+
// });
|
|
43
43
|
resolve(electronProcess);
|
|
44
44
|
});
|
|
45
45
|
electronProcess.on("error", reject);
|