@autifyhq/autify-cli-integration-test 0.10.1 → 0.12.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 (38) hide show
  1. package/__recordings__/{mobile%20build%20upload%20--json%20--workspace-id%3DnYmF1n%20android.apk → mobile%20build%20upload%20--json%20--workspace-id%3D4yyFEL%20android.apk}/polly-proxy_3343057686/recording.har +8 -8
  2. package/__recordings__/{mobile%20build%20upload%20--workspace-id%3DnYmF1n%20android.apk → mobile%20build%20upload%20--workspace-id%3D4yyFEL%20android.apk}/polly-proxy_3343057686/recording.har +8 -8
  3. package/__recordings__/{mobile%20build%20upload%20--workspace-id%3DnYmF1n%20ios.app → mobile%20build%20upload%20--workspace-id%3D4yyFEL%20ios.app}/polly-proxy_3343057686/recording.har +8 -8
  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 +757 -0
  5. package/__recordings__/{mobile%20test%20run%20--build-id%3D8DuzpG%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g → mobile%20test%20run%20--build-id%3Dd1ulrD%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2F4yyFEL%2Ftest_plans%2FWptd97}/polly-proxy_3343057686/recording.har +10 -10
  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 +802 -0
  7. package/__recordings__/{mobile%20test%20run%20--build-path%3Dandroid.apk%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g → 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 +18 -18
  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 +3221 -0
  9. package/__recordings__/{mobile%20test%20run%20--build-path%3Dios.app%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDPjteo → 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 +18 -18
  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 +80 -531
  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 +521 -0
  12. package/__recordings__/web%20test%20run%20--wait%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Ftest_plans%2F169408/polly-proxy_3343057686/recording.har +511 -0
  13. package/__recordings__/web%20test%20run%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Ftest_plans%2F169408/polly-proxy_3343057686/recording.har +60 -0
  14. package/__snapshots__/golden/mobileBuildUpload.test.js.snap +1 -1
  15. package/__snapshots__/golden/mobileBuildUploadIos.test.js.snap +1 -1
  16. package/__snapshots__/golden/mobileBuildUploadJson.test.js.snap +1 -1
  17. package/__snapshots__/golden/mobileTestRun.test.js.snap +2 -2
  18. package/__snapshots__/golden/mobileTestRunAndroid.test.js.snap +3 -3
  19. package/__snapshots__/golden/mobileTestRunAndroidWait.test.js.snap +7 -4
  20. package/__snapshots__/golden/mobileTestRunIos.test.js.snap +3 -3
  21. package/__snapshots__/golden/mobileTestRunIosWait.test.js.snap +4 -73
  22. package/__snapshots__/golden/mobileTestRunWait.test.js.snap +5 -3
  23. package/__snapshots__/golden/webTestRunAutifyConnectClient.test.js.snap +14 -22
  24. package/__snapshots__/golden/webTestRunTestPlan.test.js.snap +14 -0
  25. package/__snapshots__/golden/webTestRunTestPlanAutifyConnectClient.test.js.snap +39 -0
  26. package/__snapshots__/golden/webTestRunTestPlanWait.test.js.snap +27 -0
  27. package/dist/commands.js +12 -5
  28. package/dist/test/golden/webTestRunTestPlan.test.d.ts +1 -0
  29. package/dist/test/golden/webTestRunTestPlan.test.js +5 -0
  30. package/dist/test/golden/webTestRunTestPlanAutifyConnectClient.test.d.ts +1 -0
  31. package/dist/test/golden/webTestRunTestPlanAutifyConnectClient.test.js +5 -0
  32. package/dist/test/golden/webTestRunTestPlanWait.test.d.ts +1 -0
  33. package/dist/test/golden/webTestRunTestPlanWait.test.js +5 -0
  34. package/dist/test/helpers/execAutifyCli.js +5 -4
  35. package/package.json +4 -4
  36. package/__recordings__/mobile%20test%20run%20--build-id%3D8DuzpG%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g/polly-proxy_3343057686/recording.har +0 -675
  37. package/__recordings__/mobile%20test%20run%20--build-path%3Dandroid.apk%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g/polly-proxy_3343057686/recording.har +0 -679
  38. package/__recordings__/mobile%20test%20run%20--build-path%3Dios.app%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDPjteo/polly-proxy_3343057686/recording.har +0 -6050
@@ -5,9 +5,9 @@ Object {
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 uploaded android.apk (ID: YxukWO). See https://mobile-app.autify.com/projects/nYmF1n/builds?os=android&selectedBuildId=YxukWO&page=1
9
- ✅ Successfully started: https://mobile-app.autify.com/projects/nYmF1n/results/9xtQ6x
10
- 🕐 Waiting for the test result: https://mobile-app.autify.com/projects/nYmF1n/results/9xtQ6x
8
+ ✅ Successfully uploaded android.apk (ID: p7ulJ4). See https://mobile-app.autify.com/projects/4yyFEL/builds?os=android&selectedBuildId=p7ulJ4&page=1
9
+ ✅ Successfully started: https://mobile-app.autify.com/projects/4yyFEL/results/d3tqnb
10
+ 🕐 Waiting for the test result: https://mobile-app.autify.com/projects/4yyFEL/results/d3tqnb
11
11
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
12
12
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
13
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
@@ -22,9 +22,12 @@ Object {
22
22
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
23
23
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
24
24
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
25
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
26
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
27
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
25
28
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
26
29
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
27
- ✅ Test passed!: https://mobile-app.autify.com/projects/nYmF1n/results/9xtQ6x
30
+ ✅ Test passed!: https://mobile-app.autify.com/projects/4yyFEL/results/d3tqnb
28
31
  [HPM] server close signal received: closing proxy server
29
32
  ",
30
33
  }
@@ -5,10 +5,10 @@ Object {
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 uploaded ios.app (ID: neub06). See https://mobile-app.autify.com/projects/nYmF1n/builds?os=ios&selectedBuildId=neub06&page=1
9
- ✅ Successfully started: https://mobile-app.autify.com/projects/nYmF1n/results/VPtWpO
8
+ ✅ Successfully uploaded ios.app (ID: neu9lZ). See https://mobile-app.autify.com/projects/4yyFEL/builds?os=ios&selectedBuildId=neu9lZ&page=1
9
+ ✅ Successfully started: https://mobile-app.autify.com/projects/4yyFEL/results/RGt3JR
10
10
  To wait for the test result, run the command below:
11
- 💻 $ autify mobile test wait https://mobile-app.autify.com/projects/nYmF1n/results/VPtWpO
11
+ 💻 $ autify mobile test wait https://mobile-app.autify.com/projects/4yyFEL/results/RGt3JR
12
12
  [HPM] server close signal received: closing proxy server
13
13
  ",
14
14
  }
@@ -5,9 +5,9 @@ Object {
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 uploaded ios.app (ID: xwuZo1). See https://mobile-app.autify.com/projects/nYmF1n/builds?os=ios&selectedBuildId=xwuZo1&page=1
9
- ✅ Successfully started: https://mobile-app.autify.com/projects/nYmF1n/results/d3tqYR
10
- 🕐 Waiting for the test result: https://mobile-app.autify.com/projects/nYmF1n/results/d3tqYR
8
+ ✅ Successfully uploaded ios.app (ID: EoujYL). See https://mobile-app.autify.com/projects/4yyFEL/builds?os=ios&selectedBuildId=EoujYL&page=1
9
+ ✅ Successfully started: https://mobile-app.autify.com/projects/4yyFEL/results/9xtQ0m
10
+ 🕐 Waiting for the test result: https://mobile-app.autify.com/projects/4yyFEL/results/9xtQ0m
11
11
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
12
12
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
13
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
@@ -79,75 +79,6 @@ Object {
79
79
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
80
80
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
81
81
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
82
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
83
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
84
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
85
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
86
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
87
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
88
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
89
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
90
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
91
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
92
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
93
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
94
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
95
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
96
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
97
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
98
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
99
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
100
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
101
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
102
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
103
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
104
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
105
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
106
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
107
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
108
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
109
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
110
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
111
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
112
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
113
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
114
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
115
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
116
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
117
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
118
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
119
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
120
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
121
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
122
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
123
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
124
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
125
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
126
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
127
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
128
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
129
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
130
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
131
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
132
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
133
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
134
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
135
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
136
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
137
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
138
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
139
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
140
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
141
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
142
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
143
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
144
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
145
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
146
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
147
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
148
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
149
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
150
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
151
82
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 👍 Passed
152
83
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 👍 Passed
153
84
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 👍 Passed
@@ -155,7 +86,7 @@ Object {
155
86
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 👍 Passed
156
87
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
157
88
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
158
- ✅ Test passed!: https://mobile-app.autify.com/projects/nYmF1n/results/d3tqYR
89
+ ✅ Test passed!: https://mobile-app.autify.com/projects/4yyFEL/results/9xtQ0m
159
90
  [HPM] server close signal received: closing proxy server
160
91
  ",
161
92
  }
@@ -5,9 +5,11 @@ Object {
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://mobile-app.autify.com/projects/nYmF1n/results/b5tOvG
9
- 🕐 Waiting for the test result: https://mobile-app.autify.com/projects/nYmF1n/results/b5tOvG
8
+ ✅ Successfully started: https://mobile-app.autify.com/projects/4yyFEL/results/QBtLoD
9
+ 🕐 Waiting for the test result: https://mobile-app.autify.com/projects/4yyFEL/results/QBtLoD
10
10
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
11
+ [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
12
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
11
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
@@ -24,7 +26,7 @@ Object {
24
26
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
25
27
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
26
28
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
27
- ✅ Test passed!: https://mobile-app.autify.com/projects/nYmF1n/results/b5tOvG
29
+ ✅ Test passed!: https://mobile-app.autify.com/projects/4yyFEL/results/QBtLoD
28
30
  [HPM] server close signal received: closing proxy server
29
31
  ",
30
32
  }
@@ -5,26 +5,17 @@ Object {
5
5
  "stderr": "",
6
6
  "stdout": "[HPM] Proxy created: / -> https://app.autify.com
7
7
  [HPM] Proxy created: / -> https://mobile-app.autify.com
8
- Starting Autify Connect Client for Access Point \\"autify-cli-07edc5fc-89cb-41f1-ab09-3f3d55d170fa\\" (Autify Connect version fake)...
8
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was created: autify-cli-8e85b827-ad1f-47d4-9fc7-b2f70f577766
9
+ Starting Autify Connect Client...
10
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Starting Autify Connect Client (accessPoint: autify-cli-8e85b827-ad1f-47d4-9fc7-b2f70f577766, debugServerPort: <random>, path: /path/to/autifyconnect-fake, version: Autify Connect version v0.6.3, build 7da4a94)
9
11
  Waiting until Autify Connect Client is ready...
10
- [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info start serving a debug server on http://localhost:3000
11
- [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 Successfully connected!
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\\".
14
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Successfully connected!
13
15
  Autify Connect Client is ready!
14
- ✅ Successfully started: https://app.autify.com/projects/743/results/1172732 (Capability is Linux Chrome 104.0)
15
- 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1172732
16
+ ✅ Successfully started: https://app.autify.com/projects/743/results/1189177 (Capability is Linux Chrome 104.0)
17
+ 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1189177
16
18
  [HH:MM:SS] Waiting... (timeout: 300 s) [started]
17
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
18
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
19
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
20
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
21
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
22
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
23
- [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
24
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
25
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
26
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
27
- [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
28
19
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
29
20
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
30
21
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
@@ -35,12 +26,13 @@ Autify Connect Client is ready!
35
26
  [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
36
27
  [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
37
28
  [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
38
- ✅ Test passed!: https://app.autify.com/projects/743/results/1172732
29
+ ✅ Test passed!: https://app.autify.com/projects/743/results/1189177
39
30
  Waiting until Autify Connect Client exits...
40
- [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Interrupt received.
41
- [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Shutdown completed.
42
- Autify Connect Access Point was deleted: \\"autify-cli-07edc5fc-89cb-41f1-ab09-3f3d55d170fa\\"
43
- Autify Connect Client exited
31
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Interrupt received.
32
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Shutdown completed.
33
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was deleted: autify-cli-8e85b827-ad1f-47d4-9fc7-b2f70f577766
34
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Autify Connect Client exited (code: 0, signal: null)
35
+ Autify Connect Client exited.
44
36
  [HPM] server close signal received: closing proxy server
45
37
  ",
46
38
  }
@@ -0,0 +1,14 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`autify web test run https://app.autify.com/projects/0000/test_plans/0000 1`] = `
4
+ Object {
5
+ "stderr": "",
6
+ "stdout": "[HPM] Proxy created: / -> https://app.autify.com
7
+ [HPM] Proxy created: / -> https://mobile-app.autify.com
8
+ ✅ Successfully started: https://app.autify.com/projects/743/results/1222367 (Capability is configured by test plan)
9
+ To wait for the test result, run the command below:
10
+ 💻 $ autify web test wait https://app.autify.com/projects/743/results/1222367
11
+ [HPM] server close signal received: closing proxy server
12
+ ",
13
+ }
14
+ `;
@@ -0,0 +1,39 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`autify web test run https://app.autify.com/projects/0000/test_plans/0000 --wait --autify-connect-client 1`] = `
4
+ Object {
5
+ "stderr": "",
6
+ "stdout": "[HPM] Proxy created: / -> https://app.autify.com
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-576f4b9e-2bb5-4c65-8820-586d92b60c81
9
+ Starting Autify Connect Client...
10
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Starting Autify Connect Client (accessPoint: autify-cli-576f4b9e-2bb5-4c65-8820-586d92b60c81, debugServerPort: <random>, path: /path/to/autifyconnect-fake, version: Autify Connect version v0.6.3, build 7da4a94)
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\\".
14
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Successfully connected!
15
+ Autify Connect Client is ready!
16
+ ✅ Successfully started: https://app.autify.com/projects/743/results/1222374 (Capability is configured by test plan)
17
+ 🕐 Waiting for the test result: https://app.autify.com/projects/743/results/1222374
18
+ [HH:MM:SS] Waiting... (timeout: 300 s) [started]
19
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
20
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
21
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
22
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
23
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
24
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
25
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
26
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
27
+ [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
28
+ [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
29
+ ✅ Test passed!: https://app.autify.com/projects/743/results/1222374
30
+ Waiting until Autify Connect Client exits...
31
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Interrupt received.
32
+ [Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ info Shutdown completed.
33
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Ephemeral Access Point was deleted: autify-cli-576f4b9e-2bb5-4c65-8820-586d92b60c81
34
+ [Autify Connect Manager] YYYY-MM-DDTHH:MM:SS.MMMZ info Autify Connect Client exited (code: 0, signal: null)
35
+ Autify Connect Client exited.
36
+ [HPM] server close signal received: closing proxy server
37
+ ",
38
+ }
39
+ `;
@@ -0,0 +1,27 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`autify web test run https://app.autify.com/projects/0000/test_plans/0000 --wait 1`] = `
4
+ Object {
5
+ "stderr": "",
6
+ "stdout": "[HPM] Proxy created: / -> https://app.autify.com
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
10
+ [HH:MM:SS] Waiting... (timeout: 300 s) [started]
11
+ [HH:MM:SS] → TestPlan: ⏳ Waiting, TestCases: ⏳ Waiting
12
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
13
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
14
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
15
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
16
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
17
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
18
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
19
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
20
+ [HH:MM:SS] → TestPlan: 🚗 Running, TestCases: 🚗 Running
21
+ [HH:MM:SS] → TestPlan: 👍 Passed , TestCases: 👍 Passed
22
+ [HH:MM:SS] Waiting... (timeout: 300 s) [completed]
23
+ ✅ Test passed!: https://app.autify.com/projects/743/results/1222373
24
+ [HPM] server close signal received: closing proxy server
25
+ ",
26
+ }
27
+ `;
package/dist/commands.js CHANGED
@@ -4,10 +4,11 @@ exports.normalizeCommand = exports.androidBuildPath = exports.iosBuildPath = voi
4
4
  exports.iosBuildPath = "ios.app";
5
5
  exports.androidBuildPath = "android.apk";
6
6
  const webTestScenarioUrl = "https://app.autify.com/projects/743/scenarios/91437";
7
- const mobileAndroidTestPlanUrl = "https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g";
8
- const mobileIosTestPlanUrl = "https://mobile-app.autify.com/projects/nYmF1n/test_plans/DPjteo";
9
- const mobileWorkspaceId = "nYmF1n";
10
- const mobileAndroidBuildId = "8DuzpG";
7
+ const webTestPlanUrl = "https://app.autify.com/projects/743/test_plans/169408";
8
+ const mobileAndroidTestPlanUrl = "https://mobile-app.autify.com/projects/4yyFEL/test_plans/Wptd97";
9
+ const mobileIosTestPlanUrl = "https://mobile-app.autify.com/projects/4yyFEL/test_plans/kYtlRR";
10
+ const mobileWorkspaceId = "4yyFEL";
11
+ const mobileAndroidBuildId = "d1ulrD";
11
12
  const concatFlagAndValue = (args) => {
12
13
  const newArgs = [];
13
14
  let flag = null;
@@ -38,6 +39,10 @@ const replaceWebTestScenarioUrl = (arg) => {
38
39
  const regExp = /^https:\/\/app.autify.com\/projects\/\d+\/scenarios\/\d+\/?$/;
39
40
  return regExp.test(arg) ? webTestScenarioUrl : arg;
40
41
  };
42
+ const replaceWebTestPlanUrl = (arg) => {
43
+ const regExp = /^https:\/\/app.autify.com\/projects\/\d+\/test_plans\/\d+\/?$/;
44
+ return regExp.test(arg) ? webTestPlanUrl : arg;
45
+ };
41
46
  const replaceMobileTetsPlanUrl = (arg, os) => {
42
47
  const regExp = /^https:\/\/mobile-app.autify.com\/projects\/[^/]+\/test_plans\/[^/]+\/?$/;
43
48
  if (regExp.test(arg)) {
@@ -64,7 +69,9 @@ const sortParameters = (args) => {
64
69
  const isIos = (args) => args.some((a) => a.endsWith(".app"));
65
70
  const replaceConstants = (args) => {
66
71
  if (args[0] === "web") {
67
- return args.map((a) => replaceWebTestScenarioUrl(a));
72
+ return args
73
+ .map((a) => replaceWebTestScenarioUrl(a))
74
+ .map((a) => replaceWebTestPlanUrl(a));
68
75
  }
69
76
  if (args[0] === "mobile") {
70
77
  return isIos(args)
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable unicorn/filename-case */
4
+ const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("web test run https://app.autify.com/projects/0000/test_plans/0000");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable unicorn/filename-case */
4
+ const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("web test run https://app.autify.com/projects/0000/test_plans/0000 --wait --autify-connect-client");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /* eslint-disable unicorn/filename-case */
4
+ const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("web test run https://app.autify.com/projects/0000/test_plans/0000 --wait");
@@ -9,10 +9,11 @@ const strip_ansi_1 = tslib_1.__importDefault(require("strip-ansi"));
9
9
  const node_process_1 = require("node:process");
10
10
  const normalize = (stdout) => stdout
11
11
  .replace(/\[\d{2}:\d{2}:\d{2}]/g, "[HH:MM:SS]")
12
- .replace(/\(Autify Connect version .+\)/, "(Autify Connect version fake)")
13
- .replace(/\[Autify Connect Client] \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z/g, "[Autify Connect Client] YYYY-MM-DDTHH:MM:SS.MMMZ")
14
- .replace(/Your session ID is "[^"]+"/, 'Your session ID is "fake"')
15
- .replace(/Autify Connect Client exited .+/, "Autify Connect Client exited");
12
+ .replace(/path: .+autifyconnect-fake(\.exe)?,/g, "path: /path/to/autifyconnect-fake,")
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
+ .replace(/debugServerPort: \d+,/g, "debugServerPort: <random>,")
15
+ .replace(/debug server on http:\/\/localhost:\d+/g, "debug server on http://localhost:<random>")
16
+ .replace(/Your session ID is "[^"]+"/, 'Your session ID is "fake"');
16
17
  const execAutifyCli = async (args) => {
17
18
  const command = `autify-with-proxy ${args}`;
18
19
  const { stdout, stderr } = await (0, node_util_1.promisify)(node_child_process_1.exec)(command, { env: node_process_1.env });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-cli-integration-test",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "Autify Command Line Interface (CLI) Integration Test",
5
5
  "author": "Autify",
6
6
  "bin": {
@@ -36,13 +36,13 @@
36
36
  "which": "^2.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/express": "^4.17.13",
39
+ "@types/express": "^4.17.14",
40
40
  "@types/jest": "^28.1.7",
41
- "@types/node": "^16.11.58",
41
+ "@types/node": "^16.11.62",
42
42
  "@types/which": "^2.0.1",
43
43
  "shx": "^0.3.4",
44
44
  "ts-node": "^10.9.1",
45
- "typescript": "^4.7.4"
45
+ "typescript": "^4.8.3"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "shx rm -rf dist && tsc -b",