@testspectra/cli 1.1.8-rc.3 → 1.1.8-rc.31

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 (243) hide show
  1. package/README.md +50 -0
  2. package/bin/spectra.js +0 -0
  3. package/dist/.tsbuildinfo +1 -1
  4. package/dist/commands/__tests__/doctor-filter.test.d.ts +1 -0
  5. package/dist/commands/__tests__/doctor-filter.test.js +37 -0
  6. package/dist/commands/__tests__/run-e2e.test.js +49 -49
  7. package/dist/commands/__tests__/test-error-streaming.test.d.ts +1 -0
  8. package/dist/commands/__tests__/test-error-streaming.test.js +85 -0
  9. package/dist/commands/__tests__/test-scaffolding.test.d.ts +1 -0
  10. package/dist/commands/__tests__/test-scaffolding.test.js +32 -0
  11. package/dist/commands/__tests__/upgrade.test.d.ts +1 -0
  12. package/dist/commands/__tests__/upgrade.test.js +95 -0
  13. package/dist/commands/add.js +5 -4
  14. package/dist/commands/devices.js +1 -0
  15. package/dist/commands/docs.d.ts +4 -0
  16. package/dist/commands/docs.js +17 -0
  17. package/dist/commands/doctor.d.ts +9 -1
  18. package/dist/commands/doctor.js +17 -3
  19. package/dist/commands/init.js +7 -160
  20. package/dist/commands/install.js +5 -0
  21. package/dist/commands/license.js +1 -0
  22. package/dist/commands/run.d.ts +2 -0
  23. package/dist/commands/run.js +22 -0
  24. package/dist/commands/test.d.ts +13 -0
  25. package/dist/commands/test.js +115 -21
  26. package/dist/commands/upgrade.d.ts +12 -0
  27. package/dist/commands/upgrade.js +197 -0
  28. package/dist/config/schema.d.ts +53 -0
  29. package/dist/config/schema.js +2 -0
  30. package/dist/generator/__tests__/tsconfig-isolation.test.js +2 -1
  31. package/dist/generator/__tests__/type-generator.test.js +38 -0
  32. package/dist/generator/architecture-doc-generator.d.ts +14 -0
  33. package/dist/generator/architecture-doc-generator.js +80 -0
  34. package/dist/generator/index.d.ts +1 -0
  35. package/dist/generator/index.js +1 -0
  36. package/dist/generator/tsconfig-generator.js +1 -1
  37. package/dist/generator/type-generator.d.ts +5 -2
  38. package/dist/generator/type-generator.js +14 -17
  39. package/dist/index.js +56 -26
  40. package/dist/linter/__tests__/component-test-imports.test.js +51 -51
  41. package/dist/linter/__tests__/shared-lib-boundary.test.js +15 -15
  42. package/dist/linter/__tests__/spec-schema.test.js +167 -167
  43. package/dist/linter/discovery.d.ts +3 -3
  44. package/dist/linter/discovery.js +7 -7
  45. package/dist/linter/schemas/spec.schema.d.ts +8 -8
  46. package/dist/linter/schemas/suite.schema.d.ts +4 -4
  47. package/dist/runner/bridge.d.ts +1 -1
  48. package/dist/runner/bridge.js +101 -11
  49. package/dist/runner/reporter.d.ts +1 -0
  50. package/dist/runner/reporter.js +12 -6
  51. package/dist/utils/__tests__/dev-server-manager.test.d.ts +1 -0
  52. package/dist/utils/__tests__/dev-server-manager.test.js +72 -0
  53. package/dist/utils/background-update-check.d.ts +1 -0
  54. package/dist/utils/background-update-check.js +43 -0
  55. package/dist/utils/dependency-updates.d.ts +15 -0
  56. package/dist/utils/dependency-updates.js +107 -0
  57. package/dist/utils/dev-server-manager.d.ts +40 -0
  58. package/dist/utils/dev-server-manager.js +257 -0
  59. package/dist/utils/update-notifier.d.ts +2 -0
  60. package/dist/utils/update-notifier.js +67 -0
  61. package/package.json +36 -30
  62. package/templates/default/CLAUDE.md +16 -16
  63. package/templates/default/global-hooks/after/mobile.hook.ts +3 -3
  64. package/templates/default/global-hooks/after/web.hook.ts +3 -3
  65. package/templates/default/global-hooks/before/mobile.hook.ts +3 -3
  66. package/templates/default/global-hooks/before/web.hook.ts +3 -3
  67. package/templates/default/package.json +2 -2
  68. package/templates/default/page-objects/AuthPage/mobile.ts +5 -5
  69. package/templates/default/page-objects/AuthPage/web.ts +10 -10
  70. package/templates/default/page-objects/MatchersPage/mobile.ts +70 -70
  71. package/templates/default/page-objects/MatchersPage/web.ts +43 -43
  72. package/templates/default/page-objects/NavigationPage/mobile.ts +14 -14
  73. package/templates/default/page-objects/NavigationPage/web.ts +8 -8
  74. package/templates/default/page-objects/PlaygroundPage/mobile.ts +42 -42
  75. package/templates/default/page-objects/PlaygroundPage/web.ts +31 -31
  76. package/templates/default/specs/ApiInterception/TC-0008-fetch-mocking/mobile.test.ts +53 -53
  77. package/templates/default/specs/ApiInterception/TC-0008-fetch-mocking/spec.md +19 -19
  78. package/templates/default/specs/ApiInterception/TC-0008-fetch-mocking/web.test.ts +31 -31
  79. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/android.test.ts +3 -3
  80. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/common.test.ts +3 -3
  81. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/mobile.test.ts +27 -27
  82. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/spec.md +19 -19
  83. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/web.test.ts +26 -26
  84. package/templates/default/specs/ApiInterception/TC-0012-direct-and-late-response/common.test.ts +30 -30
  85. package/templates/default/specs/ApiInterception/TC-0012-direct-and-late-response/spec.md +22 -22
  86. package/templates/default/specs/ApiInterception/TC-0013-real-network-call-recorded/common.test.ts +27 -27
  87. package/templates/default/specs/ApiInterception/TC-0013-real-network-call-recorded/spec.md +20 -20
  88. package/templates/default/specs/ApiInterception/TC-0015-mock-server-sent-events/spec.md +24 -24
  89. package/templates/default/specs/ApiInterception/TC-0015-mock-server-sent-events/web.test.ts +26 -26
  90. package/templates/default/specs/ApiInterception/TC-0016-bypass-websocket-with-app-level-mock/spec.md +37 -37
  91. package/templates/default/specs/ApiInterception/TC-0016-bypass-websocket-with-app-level-mock/web.test.ts +21 -21
  92. package/templates/default/specs/ApiInterception/TC-0017-bypass-captcha-with-test-mode-flag/spec.md +29 -29
  93. package/templates/default/specs/ApiInterception/TC-0017-bypass-captcha-with-test-mode-flag/web.test.ts +16 -16
  94. package/templates/default/specs/ApiInterception/suite.md +10 -10
  95. package/templates/default/specs/ApiSeeding/TC-0014-seed-and-cleanup-via-hooks/common.test.ts +30 -30
  96. package/templates/default/specs/ApiSeeding/TC-0014-seed-and-cleanup-via-hooks/spec.md +23 -23
  97. package/templates/default/specs/ApiSeeding/hooks/after/common.hook.ts +16 -16
  98. package/templates/default/specs/ApiSeeding/hooks/before/common.hook.ts +28 -28
  99. package/templates/default/specs/ApiSeeding/suite.md +9 -9
  100. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/mobile.test.ts +7 -7
  101. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/spec.md +19 -19
  102. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/web.test.ts +9 -9
  103. package/templates/default/specs/Authentication/suite.md +9 -9
  104. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/mobile.test.ts +9 -9
  105. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/spec.md +17 -17
  106. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +19 -19
  107. package/templates/default/specs/BrowserContext/TC-0022-history-navigation/mobile.test.ts +17 -17
  108. package/templates/default/specs/BrowserContext/TC-0022-history-navigation/spec.md +28 -28
  109. package/templates/default/specs/BrowserContext/TC-0022-history-navigation/web.test.ts +26 -26
  110. package/templates/default/specs/ContentMatchers/TC-0005-text-and-values/common.test.ts +26 -26
  111. package/templates/default/specs/ContentMatchers/TC-0005-text-and-values/spec.md +19 -19
  112. package/templates/default/specs/ContentMatchers/TC-0006-collections-and-empty/mobile.test.ts +11 -11
  113. package/templates/default/specs/ContentMatchers/TC-0006-collections-and-empty/spec.md +17 -17
  114. package/templates/default/specs/ContentMatchers/TC-0006-collections-and-empty/web.test.ts +11 -11
  115. package/templates/default/specs/ContentMatchers/TC-0020-scoped-element-access/common.test.ts +14 -14
  116. package/templates/default/specs/ContentMatchers/TC-0020-scoped-element-access/spec.md +21 -21
  117. package/templates/default/specs/DeepLink/TC-0018-navigate-via-deep-link/mobile.test.ts +28 -28
  118. package/templates/default/specs/DeepLink/TC-0018-navigate-via-deep-link/spec.md +29 -29
  119. package/templates/default/specs/DeepLink/suite.md +9 -9
  120. package/templates/default/specs/ElementMatchers/TC-0003-visibility-and-dom/mobile.test.ts +11 -11
  121. package/templates/default/specs/ElementMatchers/TC-0003-visibility-and-dom/spec.md +17 -17
  122. package/templates/default/specs/ElementMatchers/TC-0003-visibility-and-dom/web.test.ts +11 -11
  123. package/templates/default/specs/ElementMatchers/TC-0004-states-and-attributes/mobile.test.ts +29 -29
  124. package/templates/default/specs/ElementMatchers/TC-0004-states-and-attributes/spec.md +19 -19
  125. package/templates/default/specs/ElementMatchers/TC-0004-states-and-attributes/web.test.ts +29 -29
  126. package/templates/default/specs/ElementMatchers/suite.md +10 -10
  127. package/templates/default/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/common.test.ts +5 -5
  128. package/templates/default/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/spec.md +16 -16
  129. package/templates/default/specs/EnvironmentConfig/suite.md +9 -9
  130. package/templates/default/specs/PermissionRationale/TC-0010-camera-permission-allow/mobile.test.ts +26 -26
  131. package/templates/default/specs/PermissionRationale/TC-0010-camera-permission-allow/spec.md +22 -22
  132. package/templates/default/specs/PermissionRationale/TC-0011-camera-permission-deny/mobile.test.ts +13 -13
  133. package/templates/default/specs/PermissionRationale/TC-0011-camera-permission-deny/spec.md +20 -20
  134. package/templates/default/specs/PermissionRationale/suite.md +9 -9
  135. package/templates/default/specs/Playground/TC-0001-form-controls/mobile.test.ts +6 -6
  136. package/templates/default/specs/Playground/TC-0001-form-controls/spec.md +18 -18
  137. package/templates/default/specs/Playground/TC-0001-form-controls/web.test.ts +6 -6
  138. package/templates/default/specs/Playground/TC-0002-toggle-elements/mobile.test.ts +6 -6
  139. package/templates/default/specs/Playground/TC-0002-toggle-elements/spec.md +18 -18
  140. package/templates/default/specs/Playground/TC-0002-toggle-elements/web.test.ts +6 -6
  141. package/templates/default/spectra.config.ts +52 -52
  142. package/templates/default/support/actions/fillCredentials/mobile.action.ts +4 -4
  143. package/templates/default/support/actions/fillCredentials/web.action.ts +4 -4
  144. package/templates/default/support/actions/seedSession/mobile.action.ts +9 -9
  145. package/templates/default/support/actions/seedSession/web.action.ts +13 -13
  146. package/templates/default/support/steps/togglePlaygroundStates/mobile.step.ts +5 -5
  147. package/templates/default/support/steps/togglePlaygroundStates/web.step.ts +5 -5
  148. package/templates/default/support/steps/verifyPlaygroundState/mobile.step.ts +6 -6
  149. package/templates/default/support/steps/verifyPlaygroundState/web.step.ts +6 -6
  150. package/templates/docs/ARCHITECTURE.default.md +26 -0
  151. package/templates/docs/ARCHITECTURE.nx.md +119 -0
  152. package/templates/nx/.nx/workspace-data/{59842386-c7c4-44ca-b2c2-20e1700bd13d.db-shm → 70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm} +0 -0
  153. package/templates/nx/.nx/workspace-data/70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal +0 -0
  154. package/templates/nx/.nx/workspace-data/d/daemon.log +6343 -1612
  155. package/templates/nx/.nx/workspace-data/d/server-process.json +1 -1
  156. package/templates/nx/.nx/workspace-data/file-map.json +116 -130
  157. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  158. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  159. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +504 -504
  160. package/templates/nx/.nx/workspace-data/project-graph.json +560 -559
  161. package/templates/nx/.nx/workspace-data/source-maps.json +336 -0
  162. package/templates/nx/CLAUDE.md +10 -10
  163. package/templates/nx/package.json +3 -3
  164. package/templates/nx/packages/matchers/e2e/project.json +2 -2
  165. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0008-fetch-mocking/mobile.test.ts +27 -27
  166. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0008-fetch-mocking/web.test.ts +27 -27
  167. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0009-post-mocking/mobile.test.ts +24 -24
  168. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0009-post-mocking/web.test.ts +24 -24
  169. package/templates/nx/packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/mobile.test.ts +3 -3
  170. package/templates/nx/packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +19 -19
  171. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0005-text-and-values/mobile.test.ts +3 -3
  172. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0005-text-and-values/web.test.ts +17 -17
  173. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0006-collections-and-empty/mobile.test.ts +3 -3
  174. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0006-collections-and-empty/web.test.ts +11 -11
  175. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0003-visibility-and-dom/mobile.test.ts +3 -3
  176. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0003-visibility-and-dom/web.test.ts +11 -11
  177. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0004-states-and-attributes/mobile.test.ts +3 -3
  178. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0004-states-and-attributes/web.test.ts +29 -29
  179. package/templates/nx/packages/matchers/e2e/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/common.test.ts +5 -5
  180. package/templates/nx/packages/matchers/e2e/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/spec.md +16 -16
  181. package/templates/nx/packages/matchers/e2e/specs/EnvironmentConfig/suite.md +9 -9
  182. package/templates/nx/packages/playground/e2e/project.json +2 -2
  183. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0001-form-controls/mobile.test.ts +3 -3
  184. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts +6 -6
  185. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/mobile.test.ts +3 -3
  186. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/web.test.ts +6 -6
  187. package/templates/nx/pnpm-lock.yaml +6663 -6663
  188. package/templates/nx/pnpm-workspace.yaml +9 -9
  189. package/templates/nx/shared/testing/page-objects/MatchersPage/mobile.ts +33 -33
  190. package/templates/nx/shared/testing/page-objects/MatchersPage/web.ts +91 -91
  191. package/templates/nx/shared/testing/page-objects/NavigationPage/mobile.ts +5 -5
  192. package/templates/nx/shared/testing/page-objects/NavigationPage/web.ts +8 -8
  193. package/templates/nx/shared/testing/page-objects/PlaygroundPage/mobile.ts +26 -26
  194. package/templates/nx/shared/testing/page-objects/PlaygroundPage/web.ts +31 -31
  195. package/templates/nx/shared/testing/project.json +18 -19
  196. package/templates/nx/shared/testing/support/actions/fillCredentials/mobile.action.ts +4 -4
  197. package/templates/nx/shared/testing/support/actions/fillCredentials/web.action.ts +4 -4
  198. package/templates/nx/shared/testing/support/steps/togglePlaygroundStates/mobile.step.ts +3 -3
  199. package/templates/nx/shared/testing/support/steps/togglePlaygroundStates/web.step.ts +5 -5
  200. package/templates/nx/shared/testing/support/steps/verifyPlaygroundState/mobile.step.ts +4 -4
  201. package/templates/nx/shared/testing/support/steps/verifyPlaygroundState/web.step.ts +6 -6
  202. package/templates/nx/spectra.config.ts +65 -52
  203. package/templates/react-component/.cursorrules +17 -17
  204. package/templates/react-component/.vscode/extensions.json +5 -5
  205. package/templates/react-component/CLAUDE.md +14 -14
  206. package/templates/react-component/README.md +69 -69
  207. package/templates/react-component/fixtures/component-mock.json +12 -12
  208. package/templates/react-component/global-hooks/after/web.hook.ts +3 -3
  209. package/templates/react-component/global-hooks/before/web.hook.ts +3 -3
  210. package/templates/react-component/package.json +27 -27
  211. package/templates/react-component/page-objects/BadgeComponent/web.ts +23 -23
  212. package/templates/react-component/page-objects/ButtonComponent/web.ts +23 -23
  213. package/templates/react-component/page-objects/InputComponent/web.ts +13 -13
  214. package/templates/react-component/specs/BadgeComponent/TC-0002-badge-severities-and-dot/spec.md +18 -18
  215. package/templates/react-component/specs/BadgeComponent/TC-0002-badge-severities-and-dot/web.test.tsx +11 -11
  216. package/templates/react-component/specs/BadgeComponent/TC-0006-badge-success-with-dot/spec.md +18 -18
  217. package/templates/react-component/specs/BadgeComponent/TC-0006-badge-success-with-dot/web.test.tsx +10 -10
  218. package/templates/react-component/specs/BadgeComponent/TC-0007-badge-by-severity-lookup/spec.md +18 -18
  219. package/templates/react-component/specs/BadgeComponent/TC-0007-badge-by-severity-lookup/web.test.tsx +16 -16
  220. package/templates/react-component/specs/BadgeComponent/suite.md +12 -12
  221. package/templates/react-component/specs/ButtonComponent/TC-0001-button-rendering-and-click/spec.md +19 -19
  222. package/templates/react-component/specs/ButtonComponent/TC-0001-button-rendering-and-click/web.test.tsx +25 -28
  223. package/templates/react-component/specs/ButtonComponent/TC-0004-disabled-button-not-clickable/spec.md +19 -19
  224. package/templates/react-component/specs/ButtonComponent/TC-0004-disabled-button-not-clickable/web.test.tsx +13 -22
  225. package/templates/react-component/specs/ButtonComponent/TC-0005-button-renders-icon/spec.md +18 -18
  226. package/templates/react-component/specs/ButtonComponent/TC-0005-button-renders-icon/web.test.tsx +8 -8
  227. package/templates/react-component/specs/ButtonComponent/suite.md +12 -12
  228. package/templates/react-component/specs/InputComponent/TC-0003-input-typing-and-clear/spec.md +20 -20
  229. package/templates/react-component/specs/InputComponent/TC-0003-input-typing-and-clear/web.test.tsx +24 -28
  230. package/templates/react-component/specs/InputComponent/TC-0008-disabled-input-not-editable/spec.md +18 -18
  231. package/templates/react-component/specs/InputComponent/TC-0008-disabled-input-not-editable/web.test.tsx +9 -9
  232. package/templates/react-component/specs/InputComponent/suite.md +12 -12
  233. package/templates/react-component/spectra.config.ts +17 -27
  234. package/templates/react-component/src/components/Badge/Badge.tsx +60 -60
  235. package/templates/react-component/src/components/Button/Button.tsx +59 -57
  236. package/templates/react-component/src/components/Input/Input.tsx +40 -41
  237. package/templates/react-component/src/test-utils.tsx +23 -23
  238. package/templates/react-component/support/actions/fillInputField/web.action.ts +9 -9
  239. package/templates/react-component/support/steps/verifyButtonState/web.step.ts +12 -12
  240. package/bin/.testspectra-runner.hash +0 -1
  241. package/bin/testspectra-runner.exe +0 -0
  242. package/templates/nx/.nx/workspace-data/59842386-c7c4-44ca-b2c2-20e1700bd13d.db-wal +0 -0
  243. /package/templates/nx/.nx/workspace-data/{59842386-c7c4-44ca-b2c2-20e1700bd13d.db → 70094CFD-E89B-57A1-9619-2FC5F4963C54.db} +0 -0
@@ -0,0 +1,336 @@
1
+ {
2
+ "packages/matchers/e2e": {
3
+ "root": [
4
+ "packages/matchers/e2e/project.json",
5
+ "nx/core/project-json"
6
+ ],
7
+ "name": [
8
+ "packages/matchers/e2e/project.json",
9
+ "nx/core/project-json"
10
+ ],
11
+ "$schema": [
12
+ "packages/matchers/e2e/project.json",
13
+ "nx/core/project-json"
14
+ ],
15
+ "projectType": [
16
+ "packages/matchers/e2e/project.json",
17
+ "nx/core/project-json"
18
+ ],
19
+ "sourceRoot": [
20
+ "packages/matchers/e2e/project.json",
21
+ "nx/core/project-json"
22
+ ],
23
+ "tags": [
24
+ "packages/matchers/e2e/project.json",
25
+ "nx/core/project-json"
26
+ ],
27
+ "tags.testspectra:e2e": [
28
+ "packages/matchers/e2e/project.json",
29
+ "nx/core/project-json"
30
+ ],
31
+ "tags.testspectra:scope:matchers": [
32
+ "packages/matchers/e2e/project.json",
33
+ "nx/core/project-json"
34
+ ],
35
+ "targets": [
36
+ "packages/matchers/e2e/project.json",
37
+ "nx/core/project-json"
38
+ ],
39
+ "targets.e2e": [
40
+ "packages/matchers/e2e/project.json",
41
+ "nx/core/project-json"
42
+ ],
43
+ "targets.e2e.executor": [
44
+ "packages/matchers/e2e/project.json",
45
+ "nx/core/project-json"
46
+ ],
47
+ "targets.e2e.options": [
48
+ "packages/matchers/e2e/project.json",
49
+ "nx/core/project-json"
50
+ ],
51
+ "targets.e2e.configurations": [
52
+ "packages/matchers/e2e/project.json",
53
+ "nx/core/project-json"
54
+ ],
55
+ "targets.e2e.options.command": [
56
+ "packages/matchers/e2e/project.json",
57
+ "nx/core/project-json"
58
+ ],
59
+ "targets.e2e.options.cwd": [
60
+ "packages/matchers/e2e/project.json",
61
+ "nx/core/project-json"
62
+ ],
63
+ "targets.e2e.configurations.android": [
64
+ "packages/matchers/e2e/project.json",
65
+ "nx/core/project-json"
66
+ ],
67
+ "targets.e2e.configurations.android.command": [
68
+ "packages/matchers/e2e/project.json",
69
+ "nx/core/project-json"
70
+ ],
71
+ "targets.e2e.configurations.ios": [
72
+ "packages/matchers/e2e/project.json",
73
+ "nx/core/project-json"
74
+ ],
75
+ "targets.e2e.configurations.ios.command": [
76
+ "packages/matchers/e2e/project.json",
77
+ "nx/core/project-json"
78
+ ],
79
+ "targets.e2e.configurations.headless": [
80
+ "packages/matchers/e2e/project.json",
81
+ "nx/core/project-json"
82
+ ],
83
+ "targets.e2e.configurations.headless.command": [
84
+ "packages/matchers/e2e/project.json",
85
+ "nx/core/project-json"
86
+ ],
87
+ "targets.type-check": [
88
+ "packages/matchers/e2e/project.json",
89
+ "nx/core/project-json"
90
+ ],
91
+ "targets.type-check.executor": [
92
+ "packages/matchers/e2e/project.json",
93
+ "nx/core/project-json"
94
+ ],
95
+ "targets.type-check.options": [
96
+ "packages/matchers/e2e/project.json",
97
+ "nx/core/project-json"
98
+ ],
99
+ "targets.type-check.options.command": [
100
+ "packages/matchers/e2e/project.json",
101
+ "nx/core/project-json"
102
+ ],
103
+ "targets.type-check.options.cwd": [
104
+ "packages/matchers/e2e/project.json",
105
+ "nx/core/project-json"
106
+ ],
107
+ "targets.e2e.cache": [
108
+ "nx.json",
109
+ "nx/target-defaults"
110
+ ],
111
+ "targets.e2e.inputs": [
112
+ "nx.json",
113
+ "nx/target-defaults"
114
+ ],
115
+ "targets.e2e.dependsOn": [
116
+ "nx.json",
117
+ "nx/target-defaults"
118
+ ],
119
+ "targets.e2e.parallelism": [
120
+ "nx.json",
121
+ "nx/target-defaults"
122
+ ],
123
+ "targets.type-check.cache": [
124
+ "nx.json",
125
+ "nx/target-defaults"
126
+ ],
127
+ "targets.type-check.inputs": [
128
+ "nx.json",
129
+ "nx/target-defaults"
130
+ ],
131
+ "targets.type-check.parallelism": [
132
+ "nx.json",
133
+ "nx/target-defaults"
134
+ ]
135
+ },
136
+ "packages/playground/e2e": {
137
+ "root": [
138
+ "packages/playground/e2e/project.json",
139
+ "nx/core/project-json"
140
+ ],
141
+ "name": [
142
+ "packages/playground/e2e/project.json",
143
+ "nx/core/project-json"
144
+ ],
145
+ "$schema": [
146
+ "packages/playground/e2e/project.json",
147
+ "nx/core/project-json"
148
+ ],
149
+ "projectType": [
150
+ "packages/playground/e2e/project.json",
151
+ "nx/core/project-json"
152
+ ],
153
+ "sourceRoot": [
154
+ "packages/playground/e2e/project.json",
155
+ "nx/core/project-json"
156
+ ],
157
+ "tags": [
158
+ "packages/playground/e2e/project.json",
159
+ "nx/core/project-json"
160
+ ],
161
+ "tags.testspectra:e2e": [
162
+ "packages/playground/e2e/project.json",
163
+ "nx/core/project-json"
164
+ ],
165
+ "tags.testspectra:scope:playground": [
166
+ "packages/playground/e2e/project.json",
167
+ "nx/core/project-json"
168
+ ],
169
+ "targets": [
170
+ "packages/playground/e2e/project.json",
171
+ "nx/core/project-json"
172
+ ],
173
+ "targets.e2e": [
174
+ "packages/playground/e2e/project.json",
175
+ "nx/core/project-json"
176
+ ],
177
+ "targets.e2e.executor": [
178
+ "packages/playground/e2e/project.json",
179
+ "nx/core/project-json"
180
+ ],
181
+ "targets.e2e.options": [
182
+ "packages/playground/e2e/project.json",
183
+ "nx/core/project-json"
184
+ ],
185
+ "targets.e2e.configurations": [
186
+ "packages/playground/e2e/project.json",
187
+ "nx/core/project-json"
188
+ ],
189
+ "targets.e2e.options.command": [
190
+ "packages/playground/e2e/project.json",
191
+ "nx/core/project-json"
192
+ ],
193
+ "targets.e2e.options.cwd": [
194
+ "packages/playground/e2e/project.json",
195
+ "nx/core/project-json"
196
+ ],
197
+ "targets.e2e.configurations.android": [
198
+ "packages/playground/e2e/project.json",
199
+ "nx/core/project-json"
200
+ ],
201
+ "targets.e2e.configurations.android.command": [
202
+ "packages/playground/e2e/project.json",
203
+ "nx/core/project-json"
204
+ ],
205
+ "targets.e2e.configurations.ios": [
206
+ "packages/playground/e2e/project.json",
207
+ "nx/core/project-json"
208
+ ],
209
+ "targets.e2e.configurations.ios.command": [
210
+ "packages/playground/e2e/project.json",
211
+ "nx/core/project-json"
212
+ ],
213
+ "targets.e2e.configurations.headless": [
214
+ "packages/playground/e2e/project.json",
215
+ "nx/core/project-json"
216
+ ],
217
+ "targets.e2e.configurations.headless.command": [
218
+ "packages/playground/e2e/project.json",
219
+ "nx/core/project-json"
220
+ ],
221
+ "targets.type-check": [
222
+ "packages/playground/e2e/project.json",
223
+ "nx/core/project-json"
224
+ ],
225
+ "targets.type-check.executor": [
226
+ "packages/playground/e2e/project.json",
227
+ "nx/core/project-json"
228
+ ],
229
+ "targets.type-check.options": [
230
+ "packages/playground/e2e/project.json",
231
+ "nx/core/project-json"
232
+ ],
233
+ "targets.type-check.options.command": [
234
+ "packages/playground/e2e/project.json",
235
+ "nx/core/project-json"
236
+ ],
237
+ "targets.type-check.options.cwd": [
238
+ "packages/playground/e2e/project.json",
239
+ "nx/core/project-json"
240
+ ],
241
+ "targets.e2e.cache": [
242
+ "nx.json",
243
+ "nx/target-defaults"
244
+ ],
245
+ "targets.e2e.inputs": [
246
+ "nx.json",
247
+ "nx/target-defaults"
248
+ ],
249
+ "targets.e2e.dependsOn": [
250
+ "nx.json",
251
+ "nx/target-defaults"
252
+ ],
253
+ "targets.e2e.parallelism": [
254
+ "nx.json",
255
+ "nx/target-defaults"
256
+ ],
257
+ "targets.type-check.cache": [
258
+ "nx.json",
259
+ "nx/target-defaults"
260
+ ],
261
+ "targets.type-check.inputs": [
262
+ "nx.json",
263
+ "nx/target-defaults"
264
+ ],
265
+ "targets.type-check.parallelism": [
266
+ "nx.json",
267
+ "nx/target-defaults"
268
+ ]
269
+ },
270
+ "shared/testing": {
271
+ "root": [
272
+ "shared/testing/project.json",
273
+ "nx/core/project-json"
274
+ ],
275
+ "name": [
276
+ "shared/testing/project.json",
277
+ "nx/core/project-json"
278
+ ],
279
+ "$schema": [
280
+ "shared/testing/project.json",
281
+ "nx/core/project-json"
282
+ ],
283
+ "projectType": [
284
+ "shared/testing/project.json",
285
+ "nx/core/project-json"
286
+ ],
287
+ "sourceRoot": [
288
+ "shared/testing/project.json",
289
+ "nx/core/project-json"
290
+ ],
291
+ "tags": [
292
+ "shared/testing/project.json",
293
+ "nx/core/project-json"
294
+ ],
295
+ "tags.testspectra:shared": [
296
+ "shared/testing/project.json",
297
+ "nx/core/project-json"
298
+ ],
299
+ "targets": [
300
+ "shared/testing/project.json",
301
+ "nx/core/project-json"
302
+ ],
303
+ "targets.type-check": [
304
+ "shared/testing/project.json",
305
+ "nx/core/project-json"
306
+ ],
307
+ "targets.type-check.executor": [
308
+ "shared/testing/project.json",
309
+ "nx/core/project-json"
310
+ ],
311
+ "targets.type-check.options": [
312
+ "shared/testing/project.json",
313
+ "nx/core/project-json"
314
+ ],
315
+ "targets.type-check.options.command": [
316
+ "shared/testing/project.json",
317
+ "nx/core/project-json"
318
+ ],
319
+ "targets.type-check.options.cwd": [
320
+ "shared/testing/project.json",
321
+ "nx/core/project-json"
322
+ ],
323
+ "targets.type-check.cache": [
324
+ "nx.json",
325
+ "nx/target-defaults"
326
+ ],
327
+ "targets.type-check.inputs": [
328
+ "nx.json",
329
+ "nx/target-defaults"
330
+ ],
331
+ "targets.type-check.parallelism": [
332
+ "nx.json",
333
+ "nx/target-defaults"
334
+ ]
335
+ }
336
+ }
@@ -1,10 +1,10 @@
1
- # CLAUDE.md - TestSpectra Framework Conventions
2
-
3
- ## Commands
4
- - Run all Web tests: `pnpm spectra run -t web`
5
- - Run specific spec: `pnpm spectra run "packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts" -t web`
6
- - Run Nx monorepo E2E targets: `pnpm nx run-many -t e2e`
7
- - Run Mobile tests: `pnpm spectra run --target android` or `pnpm spectra run --target ios`
8
- - Type checking: `pnpm type-check` (or `tsc -b`)
9
- - Preflight doctor: `pnpm spectra doctor`
10
- - List devices: `pnpm spectra devices`
1
+ # CLAUDE.md - TestSpectra Framework Conventions
2
+
3
+ ## Commands
4
+ - Run all Web tests: `pnpm spectra run -t web`
5
+ - Run specific spec: `pnpm spectra run "packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts" -t web`
6
+ - Run Nx monorepo E2E targets: `pnpm nx run-many -t e2e`
7
+ - Run Mobile tests: `pnpm spectra run --target android` or `pnpm spectra run --target ios`
8
+ - Type checking: `pnpm type-check` (or `tsc -b`)
9
+ - Preflight doctor: `pnpm spectra doctor`
10
+ - List devices: `pnpm spectra devices`
@@ -12,8 +12,8 @@
12
12
  "postinstall": "spectra sync-types"
13
13
  },
14
14
  "devDependencies": {
15
- "@testspectra/cli": "^1.1.8-rc.3",
16
- "@testspectra/matchers": "^1.1.8-rc.3",
15
+ "@testspectra/cli": "^1.1.8-rc.31",
16
+ "@testspectra/matchers": "^1.1.8-rc.31",
17
17
  "@types/node": "^20.14.0",
18
18
  "@wdio/cli": "^9.2.8",
19
19
  "@wdio/local-runner": "^9.2.8",
@@ -21,7 +21,7 @@
21
21
  "@wdio/devtools-service": "^8.46.0",
22
22
  "@wdio/globals": "^9.2.8",
23
23
  "@wdio/mocha-framework": "^9.2.8",
24
- "nx": "19.8.4",
24
+ "nx": "^20.8.4",
25
25
  "typescript": "^5.4.5",
26
26
  "webdriverio": "^9.2.8"
27
27
  }
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "tags": [
34
- "scope:matchers",
35
- "type:e2e"
34
+ "testspectra:e2e",
35
+ "testspectra:scope:matchers"
36
36
  ]
37
37
  }
@@ -1,27 +1,27 @@
1
- it("Mock and assert GET API requests using browser.intercept", async () => {
2
- // Navigate to API Fetch section
3
- await MatchersPage.open("api-fetch");
4
-
5
- // Setup API interception with Fixture data
6
- const mock = await Spectra.intercept(
7
- "/api/posts",
8
- "GET",
9
- Fixture.apiData.mockPosts
10
- );
11
-
12
- // Trigger fetch button in mobile demo app
13
- await MatchersPage.fetchApiButton.click();
14
-
15
- // Assert status and mocked elements
16
- await MatchersPage.fetchStatusBadge.shouldHaveText("200 OK");
17
- await MatchersPage.fetchedItems.shouldHaveLength(Fixture.apiData.mockPosts.length);
18
- await MatchersPage.fetchedItems.first().shouldContainText(Fixture.apiData.mockPosts[0].title);
19
-
20
- // Dynamically update fixture response
21
- await mock.respondWith([
22
- { id: 99, title: "Dynamic Updated Mock Title", body: "Updated on the fly" }
23
- ]);
24
- await MatchersPage.fetchApiButton.click();
25
- await MatchersPage.fetchedItems.shouldHaveLength(1);
26
- await MatchersPage.fetchedItems.first().shouldContainText("Dynamic Updated Mock Title");
27
- });
1
+ it("Mock and assert GET API requests using browser.intercept", async () => {
2
+ // Navigate to API Fetch section
3
+ await MatchersPage.open("api-fetch");
4
+
5
+ // Setup API interception with Fixture data
6
+ const mock = await Spectra.intercept(
7
+ "/api/posts",
8
+ "GET",
9
+ Fixture.apiData.mockPosts
10
+ );
11
+
12
+ // Trigger fetch button in mobile demo app
13
+ await MatchersPage.fetchApiButton.click();
14
+
15
+ // Assert status and mocked elements
16
+ await MatchersPage.fetchStatusBadge.shouldHaveText("200 OK");
17
+ await MatchersPage.fetchedItems.shouldHaveLength(Fixture.apiData.mockPosts.length);
18
+ await MatchersPage.fetchedItems.first().shouldContainText(Fixture.apiData.mockPosts[0].title);
19
+
20
+ // Dynamically update fixture response
21
+ await mock.respondWith([
22
+ { id: 99, title: "Dynamic Updated Mock Title", body: "Updated on the fly" }
23
+ ]);
24
+ await MatchersPage.fetchApiButton.click();
25
+ await MatchersPage.fetchedItems.shouldHaveLength(1);
26
+ await MatchersPage.fetchedItems.first().shouldContainText("Dynamic Updated Mock Title");
27
+ });
@@ -1,27 +1,27 @@
1
- it("Mock and assert GET API requests using browser.intercept", async () => {
2
- // Navigate to API Fetch section
3
- await MatchersPage.open("api-fetch");
4
-
5
- // Setup API interception with Fixture data
6
- const mock = await Spectra.intercept(
7
- "/api/posts",
8
- "GET",
9
- Fixture.apiData.mockPosts
10
- );
11
-
12
- // Trigger fetch button
13
- await MatchersPage.fetchApiButton.click();
14
-
15
- // Assert status and mocked elements
16
- await MatchersPage.fetchStatusBadge.shouldHaveText("200 OK");
17
- await MatchersPage.fetchedItems.shouldHaveLength(Fixture.apiData.mockPosts.length);
18
- await MatchersPage.fetchedItems.first().shouldContainText(Fixture.apiData.mockPosts[0].title);
19
-
20
- // Dynamically update fixture response
21
- await mock.respondWith([
22
- { id: 99, title: "Dynamic Updated Mock Title", body: "Updated on the fly" }
23
- ]);
24
- await MatchersPage.fetchApiButton.click();
25
- await MatchersPage.fetchedItems.shouldHaveLength(1);
26
- await MatchersPage.fetchedItems.first().shouldContainText("Dynamic Updated Mock Title");
27
- });
1
+ it("Mock and assert GET API requests using browser.intercept", async () => {
2
+ // Navigate to API Fetch section
3
+ await MatchersPage.open("api-fetch");
4
+
5
+ // Setup API interception with Fixture data
6
+ const mock = await Spectra.intercept(
7
+ "/api/posts",
8
+ "GET",
9
+ Fixture.apiData.mockPosts
10
+ );
11
+
12
+ // Trigger fetch button
13
+ await MatchersPage.fetchApiButton.click();
14
+
15
+ // Assert status and mocked elements
16
+ await MatchersPage.fetchStatusBadge.shouldHaveText("200 OK");
17
+ await MatchersPage.fetchedItems.shouldHaveLength(Fixture.apiData.mockPosts.length);
18
+ await MatchersPage.fetchedItems.first().shouldContainText(Fixture.apiData.mockPosts[0].title);
19
+
20
+ // Dynamically update fixture response
21
+ await mock.respondWith([
22
+ { id: 99, title: "Dynamic Updated Mock Title", body: "Updated on the fly" }
23
+ ]);
24
+ await MatchersPage.fetchApiButton.click();
25
+ await MatchersPage.fetchedItems.shouldHaveLength(1);
26
+ await MatchersPage.fetchedItems.first().shouldContainText("Dynamic Updated Mock Title");
27
+ });
@@ -1,24 +1,24 @@
1
- it("Mock and assert POST API requests using browser.intercept", async () => {
2
- // Navigate to API POST section
3
- await MatchersPage.open("api-post");
4
-
5
- // Setup POST API interception with status 201
6
- await Spectra.intercept(
7
- "/api/posts",
8
- "POST",
9
- Fixture.apiData.mockPostResponse,
10
- { statusCode: 201 }
11
- );
12
-
13
- // Fill in form fields from Fixture
14
- await MatchersPage.postTitleInput.type(Fixture.apiData.mockNewPost.title);
15
- await MatchersPage.postBodyInput.type(Fixture.apiData.mockNewPost.body);
16
-
17
- // Submit POST form
18
- await MatchersPage.submitPostButton.click();
19
-
20
- // Assert response elements and status
21
- await MatchersPage.postStatusBadge.shouldHaveText("201 Created");
22
- await MatchersPage.postSuccessBanner.shouldBeVisible();
23
- await MatchersPage.postResponseJson.shouldContainText(Fixture.apiData.mockNewPost.title);
24
- });
1
+ it("Mock and assert POST API requests using browser.intercept", async () => {
2
+ // Navigate to API POST section
3
+ await MatchersPage.open("api-post");
4
+
5
+ // Setup POST API interception with status 201
6
+ await Spectra.intercept(
7
+ "/api/posts",
8
+ "POST",
9
+ Fixture.apiData.mockPostResponse,
10
+ { statusCode: 201 }
11
+ );
12
+
13
+ // Fill in form fields from Fixture
14
+ await MatchersPage.postTitleInput.type(Fixture.apiData.mockNewPost.title);
15
+ await MatchersPage.postBodyInput.type(Fixture.apiData.mockNewPost.body);
16
+
17
+ // Submit POST form
18
+ await MatchersPage.submitPostButton.click();
19
+
20
+ // Assert response elements and status
21
+ await MatchersPage.postStatusBadge.shouldHaveText("201 Created");
22
+ await MatchersPage.postSuccessBanner.shouldBeVisible();
23
+ await MatchersPage.postResponseJson.shouldContainText(Fixture.apiData.mockNewPost.title);
24
+ });
@@ -1,24 +1,24 @@
1
- it("Mock and assert POST API requests using browser.intercept", async () => {
2
- // Navigate to API POST section
3
- await MatchersPage.open("api-post");
4
-
5
- // Setup POST API interception with status 201
6
- await Spectra.intercept(
7
- "/api/posts",
8
- "POST",
9
- Fixture.apiData.mockPostResponse,
10
- { statusCode: 201 }
11
- );
12
-
13
- // Fill in form fields from Fixture
14
- await MatchersPage.postTitleInput.type(Fixture.apiData.mockNewPost.title);
15
- await MatchersPage.postBodyInput.type(Fixture.apiData.mockNewPost.body);
16
-
17
- // Submit POST form
18
- await MatchersPage.submitPostButton.click();
19
-
20
- // Assert response elements and status
21
- await MatchersPage.postStatusBadge.shouldHaveText("201 Created");
22
- await MatchersPage.postSuccessBanner.shouldBeVisible();
23
- await MatchersPage.postResponseJson.shouldContainText(Fixture.apiData.mockNewPost.title);
24
- });
1
+ it("Mock and assert POST API requests using browser.intercept", async () => {
2
+ // Navigate to API POST section
3
+ await MatchersPage.open("api-post");
4
+
5
+ // Setup POST API interception with status 201
6
+ await Spectra.intercept(
7
+ "/api/posts",
8
+ "POST",
9
+ Fixture.apiData.mockPostResponse,
10
+ { statusCode: 201 }
11
+ );
12
+
13
+ // Fill in form fields from Fixture
14
+ await MatchersPage.postTitleInput.type(Fixture.apiData.mockNewPost.title);
15
+ await MatchersPage.postBodyInput.type(Fixture.apiData.mockNewPost.body);
16
+
17
+ // Submit POST form
18
+ await MatchersPage.submitPostButton.click();
19
+
20
+ // Assert response elements and status
21
+ await MatchersPage.postStatusBadge.shouldHaveText("201 Created");
22
+ await MatchersPage.postSuccessBanner.shouldBeVisible();
23
+ await MatchersPage.postResponseJson.shouldContainText(Fixture.apiData.mockNewPost.title);
24
+ });
@@ -1,3 +1,3 @@
1
- it("Verify page title and sidebar navigation links", async () => {
2
- await MatchersPage.open();
3
- });
1
+ it("Verify page title and sidebar navigation links", async () => {
2
+ await MatchersPage.open();
3
+ });
@@ -1,19 +1,19 @@
1
- it("Verify page title and sidebar navigation links", async () => {
2
- await MatchersPage.open();
3
-
4
- // Browser title assertions
5
- await Spectra.browser.shouldHaveTitle("TestSpectra — Matchers API Reference");
6
- await Spectra.browser.shouldContainTitle("TestSpectra");
7
-
8
- // Browser URL assertions
9
- const currentUrl = await browser.getUrl();
10
- await Spectra.browser.shouldHaveUrl(currentUrl);
11
- await Spectra.browser.shouldContainUrl("localhost:5173");
12
-
13
- // Page lifecycle and console error diagnostics
14
- await Spectra.browser.shouldBeLoaded();
15
- await Spectra.browser.shouldHaveNoConsoleErrors();
16
-
17
- // Navigation sidebar collection verification
18
- await NavigationPage.sidebarLinks.shouldHaveLengthGreaterThan(0);
19
- });
1
+ it("Verify page title and sidebar navigation links", async () => {
2
+ await MatchersPage.open();
3
+
4
+ // Browser title assertions
5
+ await Spectra.browser.shouldHaveTitle("TestSpectra — Matchers API Reference");
6
+ await Spectra.browser.shouldContainTitle("TestSpectra");
7
+
8
+ // Browser URL assertions
9
+ const currentUrl = await browser.getUrl();
10
+ await Spectra.browser.shouldHaveUrl(currentUrl);
11
+ await Spectra.browser.shouldContainUrl("localhost:5173");
12
+
13
+ // Page lifecycle and console error diagnostics
14
+ await Spectra.browser.shouldBeLoaded();
15
+ await Spectra.browser.shouldHaveNoConsoleErrors();
16
+
17
+ // Navigation sidebar collection verification
18
+ await NavigationPage.sidebarLinks.shouldHaveLengthGreaterThan(0);
19
+ });
@@ -1,3 +1,3 @@
1
- it("Verify exact text, substring text, and input values", async () => {
2
- await MatchersPage.open("text");
3
- });
1
+ it("Verify exact text, substring text, and input values", async () => {
2
+ await MatchersPage.open("text");
3
+ });