@autifyhq/autify-cli-integration-test 0.27.0 → 0.28.0

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.
Files changed (33) hide show
  1. package/__recordings__/mobile%20build%20upload%20--json%20--workspace-id%3D4yyFEL%20android.apk/polly-proxy_3343057686/recording.har +5 -5
  2. package/__recordings__/mobile%20build%20upload%20--workspace-id%3D4yyFEL%20android.apk/polly-proxy_3343057686/recording.har +5 -5
  3. package/__recordings__/mobile%20build%20upload%20--workspace-id%3D4yyFEL%20ios.app/polly-proxy_3343057686/recording.har +5 -5
  4. package/__recordings__/mobile%20test%20run%20--build-id%3Dd1ulrD%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FWptd97/polly-proxy_3343057686/recording.har +1411 -140
  5. package/__recordings__/mobile%20test%20run%20--build-id%3Dd1ulrD%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FWptd97/polly-proxy_3343057686/recording.har +4 -4
  6. package/__recordings__/mobile%20test%20run%20--build-path%3Dandroid.apk%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FWptd97/polly-proxy_3343057686/recording.har +803 -147
  7. package/__recordings__/mobile%20test%20run%20--build-path%3Dandroid.apk%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FWptd97/polly-proxy_3343057686/recording.har +11 -11
  8. package/__recordings__/mobile%20test%20run%20--build-path%3Dios.app%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FkYtlRR/polly-proxy_3343057686/recording.har +611 -652
  9. package/__recordings__/mobile%20test%20run%20--build-path%3Dios.app%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FkYtlRR/polly-proxy_3343057686/recording.har +11 -11
  10. package/__recordings__/web%20test%20run%20--autify-connect-client%20--wait%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Fscenarios%2F91437/polly-proxy_3343057686/recording.har +148 -107
  11. package/__recordings__/web%20test%20run%20--autify-connect-client%20--wait%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Ftest_plans%2F169408/polly-proxy_3343057686/recording.har +145 -104
  12. package/__recordings__/web%20test%20run%20--wait%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Fscenarios%2F91437/polly-proxy_3343057686/recording.har +178 -96
  13. package/__recordings__/web%20test%20run%20--wait%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Ftest_plans%2F169408/polly-proxy_3343057686/recording.har +154 -72
  14. package/__recordings__/web%20test%20run%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Fscenarios%2F91437/polly-proxy_3343057686/recording.har +15 -15
  15. package/__recordings__/web%20test%20run%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Ftest_plans%2F169408/polly-proxy_3343057686/recording.har +4 -4
  16. package/__snapshots__/golden/mobileBuildUpload.test.js.snap +2 -2
  17. package/__snapshots__/golden/mobileBuildUploadIos.test.js.snap +2 -2
  18. package/__snapshots__/golden/mobileBuildUploadJson.test.js.snap +2 -2
  19. package/__snapshots__/golden/mobileTestRun.test.js.snap +3 -3
  20. package/__snapshots__/golden/mobileTestRunAndroid.test.js.snap +4 -4
  21. package/__snapshots__/golden/mobileTestRunAndroidWait.test.js.snap +21 -5
  22. package/__snapshots__/golden/mobileTestRunIos.test.js.snap +4 -4
  23. package/__snapshots__/golden/mobileTestRunIosWait.test.js.snap +6 -7
  24. package/__snapshots__/golden/mobileTestRunWait.test.js.snap +35 -4
  25. package/__snapshots__/golden/webTestRun.test.js.snap +3 -3
  26. package/__snapshots__/golden/webTestRunAutifyConnectClient.test.js.snap +11 -10
  27. package/__snapshots__/golden/webTestRunTestPlan.test.js.snap +3 -3
  28. package/__snapshots__/golden/webTestRunTestPlanAutifyConnectClient.test.js.snap +10 -9
  29. package/__snapshots__/golden/webTestRunTestPlanWait.test.js.snap +7 -5
  30. package/__snapshots__/golden/webTestRunWait.test.js.snap +8 -6
  31. package/dist/bin/autify-with-proxy.js +2 -2
  32. package/dist/test/helpers/execAutifyCli.js +2 -1
  33. package/package.json +6 -6
@@ -1,20 +1,20 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`autify web test run https://app.autify.com/projects/0000/test_plans/0000 --wait --autify-connect-client 1`] = `
4
- Object {
4
+ {
5
5
  "stderr": "",
6
6
  "stdout": "[HPM] Proxy created: / -> https://app.autify.com
7
7
  [HPM] Proxy created: / -> https://mobile-app.autify.com
8
- [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was created: autify-cli-4e5f836c-390b-4ca7-9974-a8c3171da087
8
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was created: autify-cli-96a7357b-44ad-4a50-8ab8-8688303302f4
9
9
  Starting Autify Connect Client...
10
- [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Starting Autify Connect Client (accessPoint: autify-cli-4e5f836c-390b-4ca7-9974-a8c3171da087, debugServerPort: <random>, path: /path/to/autifyconnect, version: Autify Connect version v1.0.0, build ff5dfc4)
10
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Starting Autify Connect Client (accessPoint: autify-cli-96a7357b-44ad-4a50-8ab8-8688303302f4, debugServerPort: <random>, path: /path/to/autifyconnect, version: Autify Connect version v1.0.2, build 71c6d81)
11
11
  Waiting until Autify Connect Client is ready...
12
- [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info start serving a debug server on http://localhost:<random>
13
- [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Starting to establish a secure connection with the Autify connect server. Your session ID is \\"fake\\".
12
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info start serving a debug server on http://127.0.0.1:<random>
13
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Starting to establish a secure connection with the Autify connect server. Your session ID is "fake".
14
14
  [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Successfully connected!
15
15
  Autify Connect Client is ready!
16
- ✅ Successfully started: https://app.autify.com/projects/743/results/1444853 (Capability is configured by test plan)
17
- 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1444853
16
+ ✅ Successfully started: https://app.autify.com/projects/743/results/1822040 (Capability is configured by test plan)
17
+ 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1822040
18
18
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
19
19
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
20
20
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
@@ -27,13 +27,14 @@ Autify Connect Client is ready!
27
27
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
28
28
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
29
29
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
30
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
30
31
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
31
32
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
32
- ✅ Test passed!: https://app.autify.com/projects/743/results/1444853
33
+ ✅ Test passed!: https://app.autify.com/projects/743/results/1822040
33
34
  Waiting until Autify Connect Client exits...
34
35
  [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Interrupt received.
35
36
  [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Shutdown completed.
36
- [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was deleted: autify-cli-4e5f836c-390b-4ca7-9974-a8c3171da087
37
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was deleted: autify-cli-96a7357b-44ad-4a50-8ab8-8688303302f4
37
38
  [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Autify Connect Client exited (code: 0, signal: null)
38
39
  Autify Connect Client exited.
39
40
  [HPM] server close signal received: closing proxy server
@@ -1,14 +1,16 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`autify web test run https://app.autify.com/projects/0000/test_plans/0000 --wait 1`] = `
4
- Object {
4
+ {
5
5
  "stderr": "",
6
6
  "stdout": "[HPM] Proxy created: / -> https://app.autify.com
7
7
  [HPM] Proxy created: / -> https://mobile-app.autify.com
8
- ✅ Successfully started: https://app.autify.com/projects/743/results/1222373 (Capability is configured by test plan)
9
- 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1222373
8
+ ✅ Successfully started: https://app.autify.com/projects/743/results/1822037 (Capability is configured by test plan)
9
+ 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1822037
10
10
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
11
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
11
+ [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: 🚗 Running
12
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
12
14
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
15
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
14
16
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
@@ -20,7 +22,7 @@ Object {
20
22
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
21
23
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
22
24
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
23
- ✅ Test passed!: https://app.autify.com/projects/743/results/1222373
25
+ ✅ Test passed!: https://app.autify.com/projects/743/results/1822037
24
26
  [HPM] server close signal received: closing proxy server
25
27
  ",
26
28
  }
@@ -1,15 +1,17 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait 1`] = `
4
- Object {
4
+ {
5
5
  "stderr": "",
6
6
  "stdout": "[HPM] Proxy created: / -> https://app.autify.com
7
7
  [HPM] Proxy created: / -> https://mobile-app.autify.com
8
- ✅ Successfully started: https://app.autify.com/projects/743/results/1109244 (Capability is Linux Chrome 104.0)
9
- 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1109244
8
+ ✅ Successfully started: https://app.autify.com/projects/743/results/1822038 (Capability is Linux Chrome 110.0)
9
+ 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1822038
10
10
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
11
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
12
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
11
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
12
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
14
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
15
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
14
16
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
15
17
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
@@ -20,7 +22,7 @@ Object {
20
22
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
21
23
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
22
24
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
23
- ✅ Test passed!: https://app.autify.com/projects/743/results/1109244
25
+ ✅ Test passed!: https://app.autify.com/projects/743/results/1822038
24
26
  [HPM] server close signal received: closing proxy server
25
27
  ",
26
28
  }
@@ -93,8 +93,8 @@ const autifyWithProxy = async (originalArgs) => {
93
93
  env: {
94
94
  AUTIFY_CONNECT_CLIENT_MODE: "fake",
95
95
  ...node_process_1.env,
96
- AUTIFY_WEB_BASE_PATH: `http://localhost:${webProxy.port}/api/v1/`,
97
- AUTIFY_MOBILE_BASE_PATH: `http://localhost:${mobileProxy.port}/api/v1/`,
96
+ AUTIFY_WEB_BASE_PATH: `http://127.0.0.1:${webProxy.port}/api/v1/`,
97
+ AUTIFY_MOBILE_BASE_PATH: `http://127.0.0.1:${mobileProxy.port}/api/v1/`,
98
98
  },
99
99
  stdio: "inherit",
100
100
  shell: true,
@@ -12,7 +12,8 @@ const normalize = (stdout) => stdout
12
12
  .replace(/path: .+autifyconnect[^,]*,/g, "path: /path/to/autifyconnect,")
13
13
  .replace(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z/g, "YYYY-MM-DDTHH:MM:SS.MMMZ")
14
14
  .replace(/debugServerPort: \d+,/g, "debugServerPort: <random>,")
15
- .replace(/debug server on http:\/\/localhost:\d+/g, "debug server on http://localhost:<random>")
15
+ .replace(/debug server on http:\/\/localhost:\d+/g, "debug server on http://127.0.0.1:<random>")
16
+ .replace(/debug server on http:\/\/127.0.0.1:\d+/g, "debug server on http://127.0.0.1:<random>")
16
17
  .replace(/Your session ID is "[^"]+"/, 'Your session ID is "fake"');
17
18
  const execAutifyCli = async (args) => {
18
19
  const command = `autify-with-proxy ${args}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-cli-integration-test",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "Autify Command Line Interface (CLI) Integration Test",
5
5
  "author": "Autify",
6
6
  "bin": {
@@ -30,15 +30,15 @@
30
30
  "cross-env": "^7.0.3",
31
31
  "express": "^4.18.2",
32
32
  "http-proxy-middleware": "^2.0.6",
33
- "jest": "^28.1.3",
33
+ "jest": "^29.5.0",
34
34
  "strip-ansi": "^6.0.1",
35
35
  "tslib": "^2.5.0",
36
- "which": "^2.0.2"
36
+ "which": "^3.0.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/express": "^4.17.17",
40
- "@types/jest": "^28.1.8",
41
- "@types/node": "^16.18.12",
40
+ "@types/jest": "^29.4.0",
41
+ "@types/node": "^18.14.2",
42
42
  "@types/which": "^2.0.1",
43
43
  "shx": "^0.3.4",
44
44
  "ts-node": "^10.9.1",
@@ -51,7 +51,7 @@
51
51
  "test:record": "AUTIFY_POLLY_RECORD=1 jest --testMatch **/dist/test/**/*.test.js --updateSnapshot"
52
52
  },
53
53
  "engines": {
54
- "node": ">=12.0.0"
54
+ "node": ">=v18.14.2"
55
55
  },
56
56
  "bugs": {
57
57
  "url": "https://github.com/autifyhq/autify-cli/issues"