@testspectra/cli 1.1.8-rc.2 → 1.1.8-rc.21

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 (216) hide show
  1. package/README.md +47 -0
  2. package/bin/.testspectra-runner.hash +1 -1
  3. package/bin/spectra.js +0 -0
  4. package/dist/.tsbuildinfo +1 -1
  5. package/dist/commands/__tests__/cloud-run.test.d.ts +1 -0
  6. package/dist/commands/__tests__/cloud-run.test.js +93 -0
  7. package/dist/commands/__tests__/run-e2e.test.js +49 -49
  8. package/dist/commands/add.js +2 -1
  9. package/dist/commands/cloud-run.d.ts +13 -0
  10. package/dist/commands/cloud-run.js +120 -0
  11. package/dist/commands/devices.js +1 -0
  12. package/dist/commands/docs.d.ts +4 -0
  13. package/dist/commands/docs.js +17 -0
  14. package/dist/commands/doctor.js +1 -0
  15. package/dist/commands/init.js +7 -160
  16. package/dist/commands/install.js +2 -0
  17. package/dist/commands/license.js +1 -0
  18. package/dist/commands/test.js +5 -3
  19. package/dist/generator/__tests__/tsconfig-isolation.test.js +2 -1
  20. package/dist/generator/__tests__/type-generator.test.js +38 -0
  21. package/dist/generator/architecture-doc-generator.d.ts +14 -0
  22. package/dist/generator/architecture-doc-generator.js +82 -0
  23. package/dist/generator/index.d.ts +1 -0
  24. package/dist/generator/index.js +1 -0
  25. package/dist/generator/tsconfig-generator.js +1 -1
  26. package/dist/generator/type-generator.d.ts +5 -2
  27. package/dist/generator/type-generator.js +14 -17
  28. package/dist/index.js +18 -11
  29. package/dist/linter/__tests__/component-test-imports.test.js +51 -51
  30. package/dist/linter/__tests__/shared-lib-boundary.test.js +15 -15
  31. package/dist/linter/__tests__/spec-schema.test.js +167 -167
  32. package/dist/linter/discovery.d.ts +3 -3
  33. package/dist/linter/discovery.js +5 -5
  34. package/dist/linter/schemas/spec.schema.d.ts +2 -2
  35. package/dist/linter/schemas/suite.schema.d.ts +4 -4
  36. package/dist/runner/bridge.js +53 -4
  37. package/package.json +34 -29
  38. package/templates/default/CLAUDE.md +16 -16
  39. package/templates/default/global-hooks/after/mobile.hook.ts +3 -3
  40. package/templates/default/global-hooks/after/web.hook.ts +3 -3
  41. package/templates/default/global-hooks/before/mobile.hook.ts +3 -3
  42. package/templates/default/global-hooks/before/web.hook.ts +3 -3
  43. package/templates/default/package.json +2 -2
  44. package/templates/default/page-objects/AuthPage/mobile.ts +5 -5
  45. package/templates/default/page-objects/AuthPage/web.ts +10 -10
  46. package/templates/default/page-objects/MatchersPage/mobile.ts +70 -70
  47. package/templates/default/page-objects/MatchersPage/web.ts +43 -43
  48. package/templates/default/page-objects/NavigationPage/mobile.ts +14 -14
  49. package/templates/default/page-objects/NavigationPage/web.ts +8 -8
  50. package/templates/default/page-objects/PlaygroundPage/mobile.ts +42 -42
  51. package/templates/default/page-objects/PlaygroundPage/web.ts +31 -31
  52. package/templates/default/specs/ApiInterception/TC-0008-fetch-mocking/mobile.test.ts +53 -53
  53. package/templates/default/specs/ApiInterception/TC-0008-fetch-mocking/spec.md +19 -19
  54. package/templates/default/specs/ApiInterception/TC-0008-fetch-mocking/web.test.ts +31 -31
  55. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/android.test.ts +3 -3
  56. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/common.test.ts +3 -3
  57. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/mobile.test.ts +27 -27
  58. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/spec.md +19 -19
  59. package/templates/default/specs/ApiInterception/TC-0009-post-mocking/web.test.ts +26 -26
  60. package/templates/default/specs/ApiInterception/TC-0012-direct-and-late-response/common.test.ts +30 -30
  61. package/templates/default/specs/ApiInterception/TC-0012-direct-and-late-response/spec.md +22 -22
  62. package/templates/default/specs/ApiInterception/TC-0013-real-network-call-recorded/common.test.ts +27 -27
  63. package/templates/default/specs/ApiInterception/TC-0013-real-network-call-recorded/spec.md +20 -20
  64. package/templates/default/specs/ApiInterception/TC-0015-mock-server-sent-events/spec.md +24 -24
  65. package/templates/default/specs/ApiInterception/TC-0015-mock-server-sent-events/web.test.ts +26 -26
  66. package/templates/default/specs/ApiInterception/TC-0016-bypass-websocket-with-app-level-mock/spec.md +37 -37
  67. package/templates/default/specs/ApiInterception/TC-0016-bypass-websocket-with-app-level-mock/web.test.ts +21 -21
  68. package/templates/default/specs/ApiInterception/TC-0017-bypass-captcha-with-test-mode-flag/spec.md +29 -29
  69. package/templates/default/specs/ApiInterception/TC-0017-bypass-captcha-with-test-mode-flag/web.test.ts +16 -16
  70. package/templates/default/specs/ApiInterception/suite.md +10 -10
  71. package/templates/default/specs/ApiSeeding/TC-0014-seed-and-cleanup-via-hooks/common.test.ts +30 -30
  72. package/templates/default/specs/ApiSeeding/TC-0014-seed-and-cleanup-via-hooks/spec.md +23 -23
  73. package/templates/default/specs/ApiSeeding/hooks/after/common.hook.ts +16 -16
  74. package/templates/default/specs/ApiSeeding/hooks/before/common.hook.ts +28 -28
  75. package/templates/default/specs/ApiSeeding/suite.md +9 -9
  76. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/mobile.test.ts +7 -7
  77. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/spec.md +19 -19
  78. package/templates/default/specs/Authentication/TC-0021-seed-authenticated-session/web.test.ts +9 -9
  79. package/templates/default/specs/Authentication/suite.md +9 -9
  80. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/mobile.test.ts +9 -9
  81. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/spec.md +17 -17
  82. package/templates/default/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +19 -19
  83. package/templates/default/specs/BrowserContext/TC-0022-history-navigation/mobile.test.ts +17 -17
  84. package/templates/default/specs/BrowserContext/TC-0022-history-navigation/spec.md +28 -28
  85. package/templates/default/specs/BrowserContext/TC-0022-history-navigation/web.test.ts +26 -26
  86. package/templates/default/specs/ContentMatchers/TC-0005-text-and-values/common.test.ts +26 -26
  87. package/templates/default/specs/ContentMatchers/TC-0005-text-and-values/spec.md +19 -19
  88. package/templates/default/specs/ContentMatchers/TC-0006-collections-and-empty/mobile.test.ts +11 -11
  89. package/templates/default/specs/ContentMatchers/TC-0006-collections-and-empty/spec.md +17 -17
  90. package/templates/default/specs/ContentMatchers/TC-0006-collections-and-empty/web.test.ts +11 -11
  91. package/templates/default/specs/ContentMatchers/TC-0020-scoped-element-access/common.test.ts +14 -14
  92. package/templates/default/specs/ContentMatchers/TC-0020-scoped-element-access/spec.md +21 -21
  93. package/templates/default/specs/DeepLink/TC-0018-navigate-via-deep-link/mobile.test.ts +28 -28
  94. package/templates/default/specs/DeepLink/TC-0018-navigate-via-deep-link/spec.md +29 -29
  95. package/templates/default/specs/DeepLink/suite.md +9 -9
  96. package/templates/default/specs/ElementMatchers/TC-0003-visibility-and-dom/mobile.test.ts +11 -11
  97. package/templates/default/specs/ElementMatchers/TC-0003-visibility-and-dom/spec.md +17 -17
  98. package/templates/default/specs/ElementMatchers/TC-0003-visibility-and-dom/web.test.ts +11 -11
  99. package/templates/default/specs/ElementMatchers/TC-0004-states-and-attributes/mobile.test.ts +29 -29
  100. package/templates/default/specs/ElementMatchers/TC-0004-states-and-attributes/spec.md +19 -19
  101. package/templates/default/specs/ElementMatchers/TC-0004-states-and-attributes/web.test.ts +29 -29
  102. package/templates/default/specs/ElementMatchers/suite.md +10 -10
  103. package/templates/default/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/common.test.ts +5 -5
  104. package/templates/default/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/spec.md +16 -16
  105. package/templates/default/specs/EnvironmentConfig/suite.md +9 -9
  106. package/templates/default/specs/PermissionRationale/TC-0010-camera-permission-allow/mobile.test.ts +26 -26
  107. package/templates/default/specs/PermissionRationale/TC-0010-camera-permission-allow/spec.md +22 -22
  108. package/templates/default/specs/PermissionRationale/TC-0011-camera-permission-deny/mobile.test.ts +13 -13
  109. package/templates/default/specs/PermissionRationale/TC-0011-camera-permission-deny/spec.md +20 -20
  110. package/templates/default/specs/PermissionRationale/suite.md +9 -9
  111. package/templates/default/specs/Playground/TC-0001-form-controls/mobile.test.ts +6 -6
  112. package/templates/default/specs/Playground/TC-0001-form-controls/spec.md +18 -18
  113. package/templates/default/specs/Playground/TC-0001-form-controls/web.test.ts +6 -6
  114. package/templates/default/specs/Playground/TC-0002-toggle-elements/mobile.test.ts +6 -6
  115. package/templates/default/specs/Playground/TC-0002-toggle-elements/spec.md +18 -18
  116. package/templates/default/specs/Playground/TC-0002-toggle-elements/web.test.ts +6 -6
  117. package/templates/default/spectra.config.ts +52 -52
  118. package/templates/default/support/actions/fillCredentials/mobile.action.ts +4 -4
  119. package/templates/default/support/actions/fillCredentials/web.action.ts +4 -4
  120. package/templates/default/support/actions/seedSession/mobile.action.ts +9 -9
  121. package/templates/default/support/actions/seedSession/web.action.ts +13 -13
  122. package/templates/default/support/steps/togglePlaygroundStates/mobile.step.ts +5 -5
  123. package/templates/default/support/steps/togglePlaygroundStates/web.step.ts +5 -5
  124. package/templates/default/support/steps/verifyPlaygroundState/mobile.step.ts +6 -6
  125. package/templates/default/support/steps/verifyPlaygroundState/web.step.ts +6 -6
  126. package/templates/docs/ARCHITECTURE.default.md +26 -0
  127. package/templates/docs/ARCHITECTURE.nx.md +119 -0
  128. package/templates/nx/.nx/workspace-data/{59842386-c7c4-44ca-b2c2-20e1700bd13d.db-shm → 70094CFD-E89B-57A1-9619-2FC5F4963C54.db-shm} +0 -0
  129. package/templates/nx/.nx/workspace-data/{59842386-c7c4-44ca-b2c2-20e1700bd13d.db-wal → 70094CFD-E89B-57A1-9619-2FC5F4963C54.db-wal} +0 -0
  130. package/templates/nx/.nx/workspace-data/d/daemon.log +1090 -1577
  131. package/templates/nx/.nx/workspace-data/d/server-process.json +1 -1
  132. package/templates/nx/.nx/workspace-data/file-map.json +56 -56
  133. package/templates/nx/.nx/workspace-data/lockfile.hash +1 -1
  134. package/templates/nx/.nx/workspace-data/nx_files.nxt +0 -0
  135. package/templates/nx/.nx/workspace-data/parsed-lock-file.json +185 -6681
  136. package/templates/nx/.nx/workspace-data/project-graph.json +190 -7434
  137. package/templates/nx/CLAUDE.md +10 -10
  138. package/templates/nx/package.json +3 -3
  139. package/templates/nx/packages/matchers/e2e/project.json +2 -2
  140. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0008-fetch-mocking/mobile.test.ts +27 -27
  141. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0008-fetch-mocking/web.test.ts +27 -27
  142. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0009-post-mocking/mobile.test.ts +24 -24
  143. package/templates/nx/packages/matchers/e2e/specs/ApiInterception/TC-0009-post-mocking/web.test.ts +24 -24
  144. package/templates/nx/packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/mobile.test.ts +3 -3
  145. package/templates/nx/packages/matchers/e2e/specs/BrowserContext/TC-0007-title-and-navigation/web.test.ts +19 -19
  146. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0005-text-and-values/mobile.test.ts +3 -3
  147. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0005-text-and-values/web.test.ts +17 -17
  148. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0006-collections-and-empty/mobile.test.ts +3 -3
  149. package/templates/nx/packages/matchers/e2e/specs/ContentMatchers/TC-0006-collections-and-empty/web.test.ts +11 -11
  150. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0003-visibility-and-dom/mobile.test.ts +3 -3
  151. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0003-visibility-and-dom/web.test.ts +11 -11
  152. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0004-states-and-attributes/mobile.test.ts +3 -3
  153. package/templates/nx/packages/matchers/e2e/specs/ElementMatchers/TC-0004-states-and-attributes/web.test.ts +29 -29
  154. package/templates/nx/packages/matchers/e2e/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/common.test.ts +5 -5
  155. package/templates/nx/packages/matchers/e2e/specs/EnvironmentConfig/TC-0019-read-custom-environment-variable/spec.md +16 -16
  156. package/templates/nx/packages/matchers/e2e/specs/EnvironmentConfig/suite.md +9 -9
  157. package/templates/nx/packages/playground/e2e/project.json +2 -2
  158. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0001-form-controls/mobile.test.ts +3 -3
  159. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0001-form-controls/web.test.ts +6 -6
  160. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/mobile.test.ts +3 -3
  161. package/templates/nx/packages/playground/e2e/specs/Playground/TC-0002-toggle-elements/web.test.ts +6 -6
  162. package/templates/nx/pnpm-lock.yaml +6663 -6663
  163. package/templates/nx/pnpm-workspace.yaml +9 -9
  164. package/templates/nx/shared/testing/page-objects/MatchersPage/mobile.ts +33 -33
  165. package/templates/nx/shared/testing/page-objects/MatchersPage/web.ts +91 -91
  166. package/templates/nx/shared/testing/page-objects/NavigationPage/mobile.ts +5 -5
  167. package/templates/nx/shared/testing/page-objects/NavigationPage/web.ts +8 -8
  168. package/templates/nx/shared/testing/page-objects/PlaygroundPage/mobile.ts +26 -26
  169. package/templates/nx/shared/testing/page-objects/PlaygroundPage/web.ts +31 -31
  170. package/templates/nx/shared/testing/project.json +18 -19
  171. package/templates/nx/shared/testing/support/actions/fillCredentials/mobile.action.ts +4 -4
  172. package/templates/nx/shared/testing/support/actions/fillCredentials/web.action.ts +4 -4
  173. package/templates/nx/shared/testing/support/steps/togglePlaygroundStates/mobile.step.ts +3 -3
  174. package/templates/nx/shared/testing/support/steps/togglePlaygroundStates/web.step.ts +5 -5
  175. package/templates/nx/shared/testing/support/steps/verifyPlaygroundState/mobile.step.ts +4 -4
  176. package/templates/nx/shared/testing/support/steps/verifyPlaygroundState/web.step.ts +6 -6
  177. package/templates/nx/spectra.config.ts +52 -52
  178. package/templates/react-component/.cursorrules +17 -17
  179. package/templates/react-component/.vscode/extensions.json +5 -5
  180. package/templates/react-component/CLAUDE.md +14 -14
  181. package/templates/react-component/README.md +69 -69
  182. package/templates/react-component/fixtures/component-mock.json +12 -12
  183. package/templates/react-component/global-hooks/after/web.hook.ts +3 -3
  184. package/templates/react-component/global-hooks/before/web.hook.ts +3 -3
  185. package/templates/react-component/package.json +27 -27
  186. package/templates/react-component/page-objects/BadgeComponent/web.ts +23 -23
  187. package/templates/react-component/page-objects/ButtonComponent/web.ts +23 -23
  188. package/templates/react-component/page-objects/InputComponent/web.ts +13 -13
  189. package/templates/react-component/specs/BadgeComponent/TC-0002-badge-severities-and-dot/spec.md +18 -18
  190. package/templates/react-component/specs/BadgeComponent/TC-0002-badge-severities-and-dot/web.test.tsx +11 -11
  191. package/templates/react-component/specs/BadgeComponent/TC-0006-badge-success-with-dot/spec.md +18 -18
  192. package/templates/react-component/specs/BadgeComponent/TC-0006-badge-success-with-dot/web.test.tsx +10 -10
  193. package/templates/react-component/specs/BadgeComponent/TC-0007-badge-by-severity-lookup/spec.md +18 -18
  194. package/templates/react-component/specs/BadgeComponent/TC-0007-badge-by-severity-lookup/web.test.tsx +16 -16
  195. package/templates/react-component/specs/BadgeComponent/suite.md +12 -12
  196. package/templates/react-component/specs/ButtonComponent/TC-0001-button-rendering-and-click/spec.md +19 -19
  197. package/templates/react-component/specs/ButtonComponent/TC-0001-button-rendering-and-click/web.test.tsx +28 -28
  198. package/templates/react-component/specs/ButtonComponent/TC-0004-disabled-button-not-clickable/spec.md +19 -19
  199. package/templates/react-component/specs/ButtonComponent/TC-0004-disabled-button-not-clickable/web.test.tsx +22 -22
  200. package/templates/react-component/specs/ButtonComponent/TC-0005-button-renders-icon/spec.md +18 -18
  201. package/templates/react-component/specs/ButtonComponent/TC-0005-button-renders-icon/web.test.tsx +8 -8
  202. package/templates/react-component/specs/ButtonComponent/suite.md +12 -12
  203. package/templates/react-component/specs/InputComponent/TC-0003-input-typing-and-clear/spec.md +20 -20
  204. package/templates/react-component/specs/InputComponent/TC-0003-input-typing-and-clear/web.test.tsx +28 -28
  205. package/templates/react-component/specs/InputComponent/TC-0008-disabled-input-not-editable/spec.md +18 -18
  206. package/templates/react-component/specs/InputComponent/TC-0008-disabled-input-not-editable/web.test.tsx +9 -9
  207. package/templates/react-component/specs/InputComponent/suite.md +12 -12
  208. package/templates/react-component/spectra.config.ts +27 -27
  209. package/templates/react-component/src/components/Badge/Badge.tsx +60 -60
  210. package/templates/react-component/src/components/Button/Button.tsx +57 -57
  211. package/templates/react-component/src/components/Input/Input.tsx +41 -41
  212. package/templates/react-component/src/test-utils.tsx +23 -23
  213. package/templates/react-component/support/actions/fillInputField/web.action.ts +9 -9
  214. package/templates/react-component/support/steps/verifyButtonState/web.step.ts +12 -12
  215. package/bin/testspectra-runner.exe +0 -0
  216. /package/templates/nx/.nx/workspace-data/{59842386-c7c4-44ca-b2c2-20e1700bd13d.db → 70094CFD-E89B-57A1-9619-2FC5F4963C54.db} +0 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.