testdriverai 4.0.44 → 4.0.46

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.
@@ -5,14 +5,42 @@ on:
5
5
 
6
6
  name: Publish to NPM
7
7
  jobs:
8
+ bump_version:
9
+ name: 'Bump Version'
10
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout code
14
+ uses: actions/checkout@v4
15
+ with:
16
+ ref: ${{ github.ref }}
17
+ persist-credentials: false
18
+ - name: Set up Node.js
19
+ uses: actions/setup-node@v3
20
+ with:
21
+ node-version: "20"
22
+ - name: Configure Git user
23
+ run: |
24
+ git config --global user.name "github-actions[bot]"
25
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
26
+ - name: 'Bump version'
27
+ run: npm version patch -m "Bump version to %s [skip ci]"
28
+
29
+ - name: Push changes to main
30
+ run: |
31
+ git push https://${{ secrets.GH_TOKEN }}@github.com/testdriverai/testdriverai.git HEAD:main --force
32
+
8
33
  publish:
9
34
  name: Publish
10
35
  runs-on: ubuntu-latest
36
+ needs: bump_version
11
37
  steps:
12
38
  - uses: actions/checkout@v4
39
+ with:
40
+ ref: ${{ github.ref }}
13
41
  - uses: actions/setup-node@v3
14
42
  with:
15
43
  node-version: "20"
16
44
  - uses: JS-DevTools/npm-publish@v3
17
45
  with:
18
- token: ${{ secrets.NPM_AUTH_TOKEN }}
46
+ token: ${{ secrets.NPM_AUTH_TOKEN }}
package/README.md CHANGED
@@ -8,7 +8,7 @@ Next generation autonomous AI agent for end-to-end testing of web & desktop
8
8
 
9
9
  ---
10
10
 
11
- TestDriver isn't like any test framework you've used before. TestDriver uses AI vision along with mouse and keyboard emulation to control the entire desktop. It's more like a QA employee than a test framework. This kind of black-box testing has some major advantages:
11
+ TestDriver isn't like any test framework you've used before. TestDriver is an OS Agent for QA. TestDriver uses AI vision along with mouse and keyboard emulation to control the entire desktop. It's more like a QA employee than a test framework. This kind of black-box testing has some major advantages:
12
12
 
13
13
  - **Easier set up:** No need to add test IDs or craft complex selectors
14
14
  - **Less Maintenance:** Tests don't break when code changes
@@ -10,10 +10,10 @@ tell application "System Events" to tell process "${windowName}"
10
10
  set frontmost to true
11
11
  end tell`;
12
12
 
13
- const appleScriptMin = () => `
13
+ const appleScriptMin = (windowName) => `
14
14
  tell application "System Events"
15
- end tell
16
- `;
15
+ set value of attribute "AXMinimized" of every window of application process "${windowName}" to true
16
+ end tell`;
17
17
 
18
18
  const appleScriptMax = (windowName) => `
19
19
  tell application "${windowName}" to activate
package/lib/init.js CHANGED
@@ -63,11 +63,11 @@ module.exports = async () => {
63
63
  console.log("");
64
64
  console.log(chalk.dim("This is a preview of the Testdriver.ai"));
65
65
  console.log(chalk.dim("Please report any issues in our Discord server: "));
66
- console.log(chalk.dim("https://discord.gg/22RdN6tp"));
66
+ console.log(chalk.dim("https://discord.com/invite/cWDFW8DzPm"));
67
67
  console.log("");
68
68
  console.log("Beginning setup...");
69
69
  console.log("");
70
-
70
+
71
71
  const response = await prompts([
72
72
  // {
73
73
  // type: 'password',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.0.44",
3
+ "version": "4.0.46",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {