@orion-qa/orion 3.0.0 → 3.2.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 (637) hide show
  1. package/.claude/agents/automation-strategist.md +1 -0
  2. package/.claude/agents/change-agent.md +1 -0
  3. package/.claude/agents/codebase-analyst.md +2 -1
  4. package/.claude/agents/environment-discovery.md +1 -0
  5. package/.claude/agents/evidence-validator.md +1 -0
  6. package/.claude/agents/executor.md +1 -0
  7. package/.claude/agents/failure-analyst.md +2 -1
  8. package/.claude/agents/implementer.md +2 -1
  9. package/.claude/agents/requirement-analyst.md +1 -0
  10. package/.claude/agents/reviewer.md +1 -0
  11. package/.claude/agents/test-reporter.md +1 -0
  12. package/.claude/settings.json +25 -0
  13. package/.claude/skills/appium/SKILL.md +1 -1
  14. package/.claude/skills/appium/templates/README.md +6 -9
  15. package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
  16. package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
  17. package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
  18. package/.claude/skills/appium/templates/project-java/.env.example +4 -0
  19. package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
  20. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
  21. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
  22. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
  23. package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
  24. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
  25. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
  26. package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
  27. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
  28. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
  29. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
  30. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
  31. package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
  32. package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
  33. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
  34. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  35. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
  36. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
  37. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
  38. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
  39. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
  40. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
  41. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
  42. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
  43. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
  44. package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
  45. package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
  46. package/.claude/skills/architecture-analysis/SKILL.md +3 -2
  47. package/.claude/skills/automation-implementation/SKILL.md +8 -5
  48. package/.claude/skills/automation-implementation/references/patterns.md +46 -24
  49. package/.claude/skills/automation-review/references/assertion-guard.md +1 -1
  50. package/.claude/skills/code-review/SKILL.md +5 -2
  51. package/.claude/skills/code-review/references/pattern-rules.md +12 -7
  52. package/.claude/skills/documentation/SKILL.md +23 -18
  53. package/.claude/skills/execution/SKILL.md +7 -3
  54. package/.claude/skills/httpclient/templates/README.md +6 -7
  55. package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
  56. package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
  57. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
  58. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
  59. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
  60. package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
  61. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
  62. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
  63. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
  64. package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
  65. package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
  66. package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
  67. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
  68. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  69. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  70. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
  71. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
  72. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  73. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
  74. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  75. package/.claude/skills/javascript/references/sources.md +1 -1
  76. package/.claude/skills/k6/SKILL.md +1 -1
  77. package/.claude/skills/k6/templates/README.md +5 -3
  78. package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
  79. package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
  80. package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
  81. package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
  82. package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
  83. package/.claude/skills/karate/templates/README.md +4 -5
  84. package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
  85. package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
  86. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
  87. package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
  88. package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
  89. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
  90. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
  91. package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
  92. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
  93. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
  94. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
  95. package/.claude/skills/newman/templates/README.md +4 -5
  96. package/.claude/skills/newman/templates/collection/.env.example +2 -0
  97. package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
  98. package/.claude/skills/newman/templates/collection/package.json +2 -1
  99. package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
  100. package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
  101. package/.claude/skills/newman/templates/collection/run.js +41 -31
  102. package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
  103. package/.claude/skills/orion/SKILL.md +19 -12
  104. package/.claude/skills/orion/references/assess-fix.md +35 -0
  105. package/.claude/skills/orion/references/batch.md +64 -0
  106. package/.claude/skills/orion/references/blockers.md +1 -1
  107. package/.claude/skills/orion/references/capabilities.md +1 -1
  108. package/.claude/skills/orion/references/conversation.md +65 -20
  109. package/.claude/skills/orion/references/delivery-formats.md +24 -36
  110. package/.claude/skills/orion/references/doctor.md +1 -1
  111. package/.claude/skills/orion/references/hosts.md +1 -0
  112. package/.claude/skills/orion/references/modes.md +7 -3
  113. package/.claude/skills/orion/references/plain-language.md +55 -0
  114. package/.claude/skills/orion/references/project-context-files.md +8 -2
  115. package/.claude/skills/orion/references/recovery-loop.md +8 -0
  116. package/.claude/skills/orion/references/setup-card.md +29 -8
  117. package/.claude/skills/orion/references/status-lines.md +9 -4
  118. package/.claude/skills/orion/references/task-brief.md +1 -0
  119. package/.claude/skills/orion/references/work-branch.md +3 -1
  120. package/.claude/skills/orion/scripts/batch_detect.mjs +98 -0
  121. package/.claude/skills/orion/scripts/batch_state.mjs +179 -0
  122. package/.claude/skills/orion/scripts/browser_setup.mjs +41 -21
  123. package/.claude/skills/orion/scripts/cases_export.py +724 -0
  124. package/.claude/skills/orion/scripts/codemap.mjs +116 -0
  125. package/.claude/skills/orion/scripts/done_check.mjs +195 -0
  126. package/.claude/skills/orion/scripts/env_check.mjs +8 -3
  127. package/.claude/skills/orion/scripts/env_check.py +12 -5
  128. package/.claude/skills/orion/scripts/fix_plan.mjs +170 -0
  129. package/.claude/skills/orion/scripts/graph.mjs +400 -0
  130. package/.claude/skills/orion/scripts/hooks/lean_guard.mjs +162 -0
  131. package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
  132. package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
  133. package/.claude/skills/orion/scripts/lib/table.mjs +116 -0
  134. package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
  135. package/.claude/skills/orion/scripts/quiet.mjs +160 -0
  136. package/.claude/skills/orion/scripts/report_check.mjs +77 -0
  137. package/.claude/skills/orion/scripts/results_parse.mjs +209 -0
  138. package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
  139. package/.claude/skills/orion/scripts/rules.mjs +92 -0
  140. package/.claude/skills/orion/scripts/run_state.mjs +238 -0
  141. package/.claude/skills/orion/scripts/suite_check.mjs +267 -0
  142. package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
  143. package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
  144. package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
  145. package/.claude/skills/orion/templates/project-context/defects.md +5 -0
  146. package/.claude/skills/orion/templates/project-context/report.md +45 -0
  147. package/.claude/skills/orion/templates/project-context/retry-policy.md +6 -0
  148. package/.claude/skills/orion/templates/project-context/run.md +4 -1
  149. package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
  150. package/.claude/skills/orion/templates/project-context/test-design.md +24 -0
  151. package/.claude/skills/pact/SKILL.md +2 -2
  152. package/.claude/skills/pact/templates/README.md +4 -2
  153. package/.claude/skills/pact/templates/project/package.json +2 -2
  154. package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
  155. package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
  156. package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
  157. package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
  158. package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
  159. package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
  160. package/.claude/skills/playwright/SKILL.md +6 -6
  161. package/.claude/skills/playwright/templates/README.md +29 -10
  162. package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
  163. package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
  164. package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
  165. package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
  166. package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
  167. package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
  168. package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
  169. package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
  170. package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
  171. package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
  172. package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
  173. package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
  174. package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
  175. package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +63 -0
  176. package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
  177. package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
  178. package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
  179. package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
  180. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
  181. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
  182. package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
  183. package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
  184. package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
  185. package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
  186. package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
  187. package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
  188. package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
  189. package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
  190. package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
  191. package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
  192. package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
  193. package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
  194. package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
  195. package/.claude/skills/playwright/templates/javascript/fixtures/index.js +85 -0
  196. package/.claude/skills/playwright/templates/javascript/fixtures/session.js +82 -0
  197. package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
  198. package/.claude/skills/playwright/templates/javascript/jsconfig.json +12 -0
  199. package/.claude/skills/playwright/templates/javascript/package.json +7 -3
  200. package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +62 -0
  201. package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
  202. package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
  203. package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
  204. package/.claude/skills/playwright/templates/javascript/playwright.config.js +45 -24
  205. package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
  206. package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
  207. package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
  208. package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
  209. package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
  210. package/.claude/skills/playwright/templates/javascript/src/config/env.js +107 -0
  211. package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
  212. package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
  213. package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
  214. package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
  215. package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
  216. package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
  217. package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
  218. package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
  219. package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
  220. package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
  221. package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
  222. package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
  223. package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
  224. package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
  225. package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
  226. package/.claude/skills/playwright/templates/project/.env.example +8 -0
  227. package/.claude/skills/playwright/templates/project/fixtures/index.ts +86 -0
  228. package/.claude/skills/playwright/templates/project/fixtures/session.ts +78 -0
  229. package/.claude/skills/playwright/templates/project/gitignore +9 -2
  230. package/.claude/skills/playwright/templates/project/package.json +8 -6
  231. package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +57 -0
  232. package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
  233. package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
  234. package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
  235. package/.claude/skills/playwright/templates/project/playwright.config.ts +49 -23
  236. package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
  237. package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
  238. package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
  239. package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
  240. package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
  241. package/.claude/skills/playwright/templates/project/src/config/env.ts +109 -0
  242. package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
  243. package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
  244. package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
  245. package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
  246. package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
  247. package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
  248. package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
  249. package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
  250. package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
  251. package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
  252. package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
  253. package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
  254. package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
  255. package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
  256. package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
  257. package/.claude/skills/playwright/templates/python/.env.example +8 -0
  258. package/.claude/skills/playwright/templates/python/conftest.py +91 -16
  259. package/.claude/skills/playwright/templates/python/gitignore +5 -0
  260. package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
  261. package/.claude/skills/playwright/templates/python/page_objects/base_page.py +57 -0
  262. package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
  263. package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
  264. package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
  265. package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
  266. package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
  267. package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
  268. package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
  269. package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
  270. package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
  271. package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
  272. package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
  273. package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
  274. package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
  275. package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
  276. package/.claude/skills/playwright/templates/python/src/config/env.py +109 -0
  277. package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
  278. package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
  279. package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
  280. package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
  281. package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
  282. package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
  283. package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
  284. package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
  285. package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
  286. package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
  287. package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
  288. package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
  289. package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
  290. package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
  291. package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
  292. package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
  293. package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
  294. package/.claude/skills/quality-checks/SKILL.md +11 -11
  295. package/.claude/skills/quality-checks/templates/README.md +14 -12
  296. package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
  297. package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
  298. package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
  299. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
  300. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
  301. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
  302. package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
  303. package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
  304. package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
  305. package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
  306. package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
  307. package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
  308. package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
  309. package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
  310. package/.claude/skills/requests/templates/README.md +6 -7
  311. package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
  312. package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
  313. package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
  314. package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
  315. package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
  316. package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
  317. package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
  318. package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
  319. package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
  320. package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
  321. package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
  322. package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
  323. package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
  324. package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
  325. package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
  326. package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
  327. package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
  328. package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
  329. package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
  330. package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
  331. package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
  332. package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
  333. package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
  334. package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
  335. package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
  336. package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
  337. package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
  338. package/.claude/skills/requirement-analysis/SKILL.md +1 -1
  339. package/.claude/skills/rest-assured/SKILL.md +1 -1
  340. package/.claude/skills/rest-assured/templates/README.md +6 -7
  341. package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
  342. package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
  343. package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
  344. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
  345. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
  346. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
  347. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
  348. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
  349. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
  350. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
  351. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
  352. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
  353. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
  354. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
  355. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  356. package/.claude/skills/{selenium/templates/java-testng/src/test/java/automation/framework → rest-assured/templates/java-testng/src/test/java/automation/utils}/AutomationError.java +4 -4
  357. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  358. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  359. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  360. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  361. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  362. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  363. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  364. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  365. package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
  366. package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
  367. package/.claude/skills/selenium/SKILL.md +1 -1
  368. package/.claude/skills/selenium/templates/README.md +25 -13
  369. package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
  370. package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
  371. package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
  372. package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
  373. package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
  374. package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
  375. package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
  376. package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
  377. package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
  378. package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +44 -14
  379. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
  380. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
  381. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
  382. package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
  383. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
  384. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
  385. package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
  386. package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
  387. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
  388. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
  389. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  390. package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  391. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
  392. package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
  393. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
  394. package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  395. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
  396. package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  397. package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
  398. package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
  399. package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
  400. package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
  401. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
  402. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
  403. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
  404. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
  405. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
  406. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
  407. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
  408. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +41 -17
  409. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
  410. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
  411. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
  412. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
  413. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
  414. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
  415. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
  416. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
  417. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  418. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
  419. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  420. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  421. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  422. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
  423. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  424. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  425. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  426. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  427. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  428. package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
  429. package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
  430. package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
  431. package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
  432. package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
  433. package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
  434. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +20 -20
  435. package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
  436. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
  437. package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
  438. package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
  439. package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
  440. package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
  441. package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
  442. package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
  443. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
  444. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
  445. package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
  446. package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
  447. package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
  448. package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
  449. package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
  450. package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
  451. package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
  452. package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
  453. package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
  454. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
  455. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
  456. package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
  457. package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
  458. package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
  459. package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
  460. package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
  461. package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
  462. package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
  463. package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
  464. package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
  465. package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
  466. package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
  467. package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
  468. package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
  469. package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
  470. package/.claude/skills/self-healing/SKILL.md +2 -2
  471. package/.claude/skills/test-design/SKILL.md +1 -1
  472. package/.claude/skills/test-reporting/references/tool-mapping.md +13 -9
  473. package/.claude/skills/ui-observation/SKILL.md +8 -6
  474. package/.claude/skills/ui-observation/references/login-methods.md +1 -1
  475. package/.claude-plugin/plugin.json +15 -2
  476. package/.codex/agents/automation-strategist.toml +1 -0
  477. package/.codex/agents/change-agent.toml +1 -0
  478. package/.codex/agents/codebase-analyst.toml +1 -0
  479. package/.codex/agents/environment-discovery.toml +1 -0
  480. package/.codex/agents/evidence-validator.toml +1 -0
  481. package/.codex/agents/executor.toml +1 -0
  482. package/.codex/agents/failure-analyst.toml +1 -0
  483. package/.codex/agents/implementer.toml +2 -1
  484. package/.codex/agents/requirement-analyst.toml +1 -0
  485. package/.codex/agents/reviewer.toml +1 -0
  486. package/.codex/agents/test-reporter.toml +1 -0
  487. package/.codex/hooks.json +15 -0
  488. package/.cursor/commands/orion.md +1 -1
  489. package/.cursor/hooks.json +10 -0
  490. package/.devin/hooks.v1.json +13 -0
  491. package/.gemini/agents/automation-strategist.md +1 -0
  492. package/.gemini/agents/change-agent.md +1 -0
  493. package/.gemini/agents/codebase-analyst.md +1 -0
  494. package/.gemini/agents/environment-discovery.md +1 -0
  495. package/.gemini/agents/evidence-validator.md +1 -0
  496. package/.gemini/agents/executor.md +1 -0
  497. package/.gemini/agents/failure-analyst.md +1 -0
  498. package/.gemini/agents/implementer.md +2 -1
  499. package/.gemini/agents/requirement-analyst.md +1 -0
  500. package/.gemini/agents/reviewer.md +1 -0
  501. package/.gemini/agents/test-reporter.md +1 -0
  502. package/.gemini/commands/orion.toml +2 -2
  503. package/.github/hooks/orion-lean.json +13 -0
  504. package/.github/prompts/orion.prompt.md +2 -2
  505. package/.windsurf/workflows/orion.md +2 -2
  506. package/AGENTS.md +6 -6
  507. package/README.md +55 -140
  508. package/assets/architecture.svg +104 -0
  509. package/assets/run-flow.svg +1 -1
  510. package/bin/orion.mjs +6 -6
  511. package/hosts/gemini-extension/gemini-extension.json +1 -1
  512. package/hosts/gemini-extension/hooks/hooks.json +16 -0
  513. package/hosts/gemini-extension/policies/platform.toml +5 -0
  514. package/package.json +6 -1
  515. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
  516. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
  517. package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
  518. package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
  519. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
  520. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
  521. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
  522. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
  523. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
  524. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
  525. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
  526. package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
  527. package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
  528. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
  529. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
  530. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
  531. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
  532. package/.claude/skills/k6/templates/project/data/builders.js +0 -8
  533. package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
  534. package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
  535. package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
  536. package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
  537. package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
  538. package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
  539. package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
  540. package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
  541. package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
  542. package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
  543. package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
  544. package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
  545. package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
  546. package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
  547. package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
  548. package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
  549. package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
  550. package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
  551. package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
  552. package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
  553. package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
  554. package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
  555. package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
  556. package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
  557. package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
  558. package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
  559. package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
  560. package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
  561. package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
  562. package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
  563. package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
  564. package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
  565. package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
  566. package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
  567. package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
  568. package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
  569. package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
  570. package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
  571. package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
  572. package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
  573. package/.claude/skills/playwright/templates/python/framework/config.py +0 -86
  574. package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
  575. package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
  576. package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
  577. package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
  578. package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
  579. package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
  580. package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
  581. package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
  582. package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
  583. package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
  584. package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
  585. package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
  586. package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
  587. package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
  588. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
  589. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
  590. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
  591. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
  592. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
  593. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
  594. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
  595. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
  596. package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
  597. package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
  598. package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
  599. package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
  600. package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
  601. package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
  602. package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
  603. package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
  604. package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
  605. package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
  606. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
  607. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
  608. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
  609. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
  610. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
  611. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
  612. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
  613. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
  614. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
  615. package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
  616. package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
  617. package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
  618. package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
  619. package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
  620. package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
  621. package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
  622. package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
  623. package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
  624. package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
  625. package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
  626. package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
  627. /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
  628. /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
  629. /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
  630. /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
  631. /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
  632. /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
  633. /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
  634. /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
  635. /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
  636. /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
  637. /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
@@ -0,0 +1,70 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ /*
5
+ * Switches and timeouts of a run, from the environment with safe defaults; timeouts from the site's measured profile (timeouts.json) when there is one. Change behaviour here or in `.env`,
6
+ * never inside a test.
7
+ */
8
+
9
+ /**
10
+ * Reads a number from the environment.
11
+ * @param name Environment variable name.
12
+ * @param fallback The value when it isn't set or isn't a number.
13
+ * @returns The number.
14
+ */
15
+ function numberFrom(name: string, fallback: number): number {
16
+ const value = Number(process.env[name]);
17
+ return Number.isFinite(value) && value > 0 ? value : fallback;
18
+ }
19
+
20
+ /** The run's switches and timeouts. */
21
+ /**
22
+ * The site's measured timeouts (`timeouts.json` at the project root, written by Orion's timing profile from the explored
23
+ * pages and the runs); empty when there is none. Each value is `{ ms, why }`.
24
+ */
25
+ const PROFILE: Record<string, { ms: number; why: string }> = (() => {
26
+ try {
27
+ return JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'timeouts.json'), 'utf-8'));
28
+ } catch {
29
+ return {};
30
+ }
31
+ })();
32
+
33
+ /**
34
+ * A timeout: the environment variable when set, else the site's measured value, else the default.
35
+ * @param name Environment variable name, e.g. `ACTION_TIMEOUT`.
36
+ * @param key The key in timeouts.json, e.g. `actionTimeout`.
37
+ * @param fallback The default in ms.
38
+ * @returns The timeout in ms.
39
+ */
40
+ function timeout(name: string, key: string, fallback: number): number {
41
+ const measured = PROFILE[key] && Number(PROFILE[key].ms);
42
+ return numberFrom(name, measured && measured > 0 ? measured : fallback);
43
+ }
44
+
45
+ export const flags = {
46
+ /** Run tests tagged @write (they change data in the app): `RUN_WRITE_TESTS=1`. Off by default. */
47
+ runWriteTests: process.env.RUN_WRITE_TESTS === '1',
48
+ /** Also save the session's IndexedDB (apps that keep the login there, e.g. Firebase): `AUTH_INDEXEDDB=1`. */
49
+ authIndexedDb: process.env.AUTH_INDEXEDDB === '1',
50
+ /**
51
+ * Also save and restore `sessionStorage` (apps that keep the login there; Playwright's saved state doesn't
52
+ * include it): `AUTH_SESSION_STORAGE=1`.
53
+ */
54
+ authSessionStorage: process.env.AUTH_SESSION_STORAGE === '1',
55
+ /** Log level of `utils/logger.ts`: error, warn, info or debug (`LOG_LEVEL`). */
56
+ logLevel: process.env.LOG_LEVEL || 'info',
57
+ /**
58
+ * How long a saved session is trusted, in minutes (`SESSION_MAX_AGE_MINUTES`); older, the tests sign in again
59
+ * before they start (fixtures/session.ts).
60
+ */
61
+ sessionMaxAgeMinutes: numberFrom('SESSION_MAX_AGE_MINUTES', 15),
62
+ /** Longest a whole test may take, in ms (`TEST_TIMEOUT`). */
63
+ testTimeout: timeout('TEST_TIMEOUT', 'testTimeout', 90_000),
64
+ /** Longest an `expect` waits, in ms (`EXPECT_TIMEOUT`). */
65
+ expectTimeout: timeout('EXPECT_TIMEOUT', 'expectTimeout', 15_000),
66
+ /** Longest a click, fill or similar action waits, in ms (`ACTION_TIMEOUT`). */
67
+ actionTimeout: timeout('ACTION_TIMEOUT', 'actionTimeout', 15_000),
68
+ /** Longest a page navigation waits, in ms (`NAVIGATION_TIMEOUT`). */
69
+ navigationTimeout: timeout('NAVIGATION_TIMEOUT', 'navigationTimeout', 60_000),
70
+ };
@@ -0,0 +1,17 @@
1
+ import path from 'node:path';
2
+
3
+ /*
4
+ * Loads the project's one `.env` into the environment, if it exists. The runner config imports this first; it is
5
+ * the only place that reads the file. CI passes the same names as secrets instead.
6
+ */
7
+
8
+ /** Loads `.env` from the project root; does nothing when there is none. */
9
+ export function loadEnvFile(): void {
10
+ try {
11
+ process.loadEnvFile(path.join(__dirname, '..', '..', '.env'));
12
+ } catch {
13
+ // No .env: the values come from the environment (CI secrets).
14
+ }
15
+ }
16
+
17
+ loadEnvFile();
@@ -0,0 +1,19 @@
1
+ import path from 'node:path';
2
+
3
+ /** The project root (this file is `src/config/paths.ts`). */
4
+ const root = path.resolve(__dirname, '..', '..');
5
+
6
+ /** Every file location the suite uses, in one place; nothing else builds a path. */
7
+ export const paths = {
8
+ root,
9
+ /** Saved signed-in sessions; git-ignored, removed by `setup/auth.teardown.ts`. */
10
+ authDir: path.join(root, 'auth'),
11
+ /** The signed-in session `setup/auth.setup.ts` saves once per run and the UI and API projects reuse. */
12
+ userSession: path.join(root, 'auth', 'user.json'),
13
+ /** The signed-in session's `sessionStorage`, saved only when `AUTH_SESSION_STORAGE=1`. */
14
+ sessionStorage: path.join(root, 'auth', 'session-storage.json'),
15
+ /** The one-page run summary (reporters/summaryReporter.ts): verdict, tests by story, failures with screenshot and trace. */
16
+ summaryReport: path.join(root, 'test-summary', 'index.html'),
17
+ /** Playwright's HTML report. */
18
+ htmlReport: path.join(root, 'playwright-report'),
19
+ };
@@ -0,0 +1,70 @@
1
+ // @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
2
+ import type { APIRequestContext, APIResponse } from '@playwright/test';
3
+ import { AutomationError } from '../../utils/errors';
4
+ import { logger } from '../../utils/logger';
5
+
6
+ /** What a call may set: body, the expected status (default: any 2xx) and how many redirects to follow. */
7
+ export interface CallOptions {
8
+ data?: unknown;
9
+ expectStatus?: number;
10
+ maxRedirects?: number;
11
+ }
12
+
13
+ /**
14
+ * One client for the app's HTTP API, on Playwright's request context (it shares the project's base URL and, in
15
+ * the signed-in projects, the session cookies). Tests use it to check an API and to create or remove test data
16
+ * quickly instead of clicking through the UI.
17
+ */
18
+ export class ApiClient {
19
+ /**
20
+ * @param request Playwright's request fixture.
21
+ */
22
+ constructor(private readonly request: APIRequestContext) {}
23
+
24
+ /**
25
+ * Sends a request and returns the response, failing with method, path and status when it isn't the expected one.
26
+ * @param method HTTP method.
27
+ * @param path Path relative to `BASE_URL`.
28
+ * @param options Body, expected status, redirects.
29
+ * @returns The response.
30
+ * @throws AutomationError naming the call and the status that came back.
31
+ */
32
+ async send(method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', path: string, options: CallOptions = {}): Promise<APIResponse> {
33
+ const response = await this.request.fetch(path, { method, data: options.data, maxRedirects: options.maxRedirects });
34
+ const ok = options.expectStatus === undefined ? response.ok() : response.status() === options.expectStatus;
35
+ logger.debug(`${method} ${path} -> ${response.status()}`);
36
+ if (!ok) throw new AutomationError('Call', `${method} ${path}`, `HTTP ${response.status()}`);
37
+ return response;
38
+ }
39
+
40
+ /**
41
+ * GET a path.
42
+ * @param path Path relative to `BASE_URL`.
43
+ * @param options See `send`.
44
+ * @returns The response.
45
+ */
46
+ get(path: string, options?: Omit<CallOptions, 'data'>): Promise<APIResponse> {
47
+ return this.send('GET', path, options);
48
+ }
49
+
50
+ /**
51
+ * POST a JSON body.
52
+ * @param path Path relative to `BASE_URL`.
53
+ * @param data The body.
54
+ * @param options See `send`.
55
+ * @returns The response.
56
+ */
57
+ post(path: string, data: unknown, options?: Omit<CallOptions, 'data'>): Promise<APIResponse> {
58
+ return this.send('POST', path, { ...options, data });
59
+ }
60
+
61
+ /**
62
+ * DELETE a path (test data cleanup).
63
+ * @param path Path relative to `BASE_URL`.
64
+ * @param options See `send`.
65
+ * @returns The response.
66
+ */
67
+ delete(path: string, options?: Omit<CallOptions, 'data'>): Promise<APIResponse> {
68
+ return this.send('DELETE', path, options);
69
+ }
70
+ }
@@ -0,0 +1,14 @@
1
+ import { ROUTES } from '../../resources/testData/testData';
2
+ import { test, expect } from '../../fixtures';
3
+
4
+ /*
5
+ * API tests use `apiClient` with the signed-in session. This one shows the pattern; replace it with the app's own
6
+ * API checks (status, then the body), and use `apiClient` in UI tests to create and remove test data.
7
+ */
8
+
9
+ test.describe('{{STORY_KEY}} session over HTTP', () => {
10
+ test('framework check, not a story case: the saved session opens the home page without a redirect to sign-in', { tag: ['@smoke'] }, async ({ apiClient }) => {
11
+ const response = await apiClient.get(ROUTES.home, { expectStatus: 200, maxRedirects: 0 });
12
+ expect(new URL(response.url()).pathname).not.toBe(new URL(ROUTES.login, response.url()).pathname);
13
+ });
14
+ });
@@ -0,0 +1,34 @@
1
+ import { SIGN_IN } from '../../resources/desc/signIn.desc';
2
+ import { DATA } from '../../resources/testData/testData';
3
+ import { env } from '../../src/config/env';
4
+ import { titleOf, tagsOf } from '../../utils/titles';
5
+ import { test, expect } from '../../fixtures';
6
+
7
+ test.describe('{{STORY_KEY}} sign-in', () => {
8
+ const d0 = SIGN_IN['TS-0'];
9
+ test(titleOf(d0), tagsOf(d0), async ({ homePage }) => {
10
+ await homePage.open();
11
+ await expect(homePage.greeting).toHaveText(DATA.signIn.greeting);
12
+ });
13
+
14
+ test.describe('signed out', () => {
15
+ // These start without the shared session, so signing out here can't end it for the other tests.
16
+ test.use({ storageState: { cookies: [], origins: [] } });
17
+
18
+ const d1 = SIGN_IN['TS-1'];
19
+ test(titleOf(d1), tagsOf(d1), async ({ loginPage }) => {
20
+ await loginPage.open();
21
+ await loginPage.signIn({ user: env.testAccount().user, password: DATA.signIn.wrongPassword() });
22
+ await expect(loginPage.errorMessage).toHaveText(DATA.signIn.wrongPasswordMessage);
23
+ });
24
+
25
+ const d2 = SIGN_IN['TS-2'];
26
+ test(titleOf(d2), tagsOf(d2), async ({ loginPage, homePage, shellPage }) => {
27
+ await loginPage.open();
28
+ await loginPage.signIn(env.testAccount());
29
+ await homePage.waitUntilReady();
30
+ await shellPage.signOut();
31
+ await expect(loginPage.usernameInput).toBeVisible();
32
+ });
33
+ });
34
+ });
@@ -0,0 +1,33 @@
1
+ import { test, expect } from '@playwright/test';
2
+ import { renderSummary, parseTitle, verdictOf, type Row } from '../../reporters/summaryReporter';
3
+
4
+ /*
5
+ * Unit tests of the run summary page: the verdict, the title parts and the page itself, without a browser.
6
+ */
7
+
8
+ /** A passed row; fields overridden per test. */
9
+ const row = (over: Partial<Row> = {}): Row => ({ id: 'TS-1', story: 'EA-10', title: 'the user signs in', acs: ['AC-1'], project: 'regression',
10
+ file: 'tests/ui/signIn.spec.js:8', outcome: 'passed', durationMs: 1200, attempts: 1, error: '', links: [], ...over });
11
+
12
+ test.describe('summary reporter', () => {
13
+ test('parseTitle splits the case id, story and behaviour', () => {
14
+ expect(parseTitle('TS-3 [EA-10] wrong password shows an error')).toEqual({ id: 'TS-3', story: 'EA-10', title: 'wrong password shows an error' });
15
+ expect(parseTitle('a test without an id')).toEqual({ id: '', story: '', title: 'a test without an id' });
16
+ });
17
+
18
+ test('verdictOf says failed, passed with notes, or all passed', () => {
19
+ expect(verdictOf([row(), row({ outcome: 'failed' })]).label).toBe('Failed');
20
+ expect(verdictOf([row(), row({ outcome: 'flaky' })]).label).toBe('Passed, with notes');
21
+ expect(verdictOf([row(), row()]).sentence).toBe('All 2 tests passed.');
22
+ expect(verdictOf([row()], [row({ project: 'setup', title: 'sign in', outcome: 'failed' })]).label).toBe('Setup failed');
23
+ });
24
+
25
+ test('renderSummary shows the verdict first, escapes text and keeps a failure next to its test', () => {
26
+ const html = renderSummary({ rows: [row(), row({ id: 'TS-2', title: 'shows <b>', outcome: 'failed', error: 'Expected "Welcome"' })],
27
+ support: [], startedAt: new Date('2026-11-13T10:00:00Z'), durationMs: 4200, baseUrl: 'https://test.example', projects: ['regression'] });
28
+ expect(html.indexOf('❌ Failed')).toBeLessThan(html.indexOf('<section>'));
29
+ expect(html).toContain('shows &lt;b&gt;');
30
+ expect(html.indexOf('TS-2')).toBeLessThan(html.indexOf('TS-1'));
31
+ expect(html).toContain('Why it failed');
32
+ });
33
+ });
@@ -0,0 +1,30 @@
1
+ import { test, expect } from '@playwright/test';
2
+ import { addDays, isoDate } from '../../utils/date';
3
+ import { uniqueEmail, uniqueSuffix } from '../../utils/random';
4
+ import { redact } from '../../utils/redact';
5
+
6
+ /*
7
+ * Unit tests of the suite's own helpers: no browser and no app, so they run in seconds and catch a broken helper
8
+ * before it breaks every UI test.
9
+ */
10
+
11
+ test.describe('utils', () => {
12
+ test('uniqueSuffix gives a different value each call', () => {
13
+ const values = new Set(Array.from({ length: 50 }, () => uniqueSuffix()));
14
+ expect(values.size).toBe(50);
15
+ });
16
+
17
+ test('uniqueEmail keeps the base address and adds a tag', () => {
18
+ expect(uniqueEmail('qa.team@company.test')).toMatch(/^qa\.team\+[0-9a-f]{6}@company\.test$/);
19
+ });
20
+
21
+ test('redact masks secret environment values', () => {
22
+ process.env.UNIT_TEST_PASSWORD = 'pa55-word-xyz';
23
+ expect(redact('login with pa55-word-xyz failed')).toBe('login with *** failed');
24
+ delete process.env.UNIT_TEST_PASSWORD;
25
+ });
26
+
27
+ test('addDays and isoDate compute dates from a fixed day', () => {
28
+ expect(isoDate(addDays(1, new Date('2026-01-31T10:00:00Z')))).toBe('2026-02-01');
29
+ });
30
+ });
@@ -5,13 +5,8 @@
5
5
  "moduleResolution": "Bundler",
6
6
  "strict": true,
7
7
  "noEmit": true,
8
- "types": [
9
- "node"
10
- ]
8
+ "skipLibCheck": true,
9
+ "types": ["node"]
11
10
  },
12
- "include": [
13
- "src",
14
- "tests",
15
- "playwright.config.ts"
16
- ]
11
+ "include": ["fixtures", "pageObjects", "resources", "setup", "src", "tests", "utils", "playwright.config.ts"]
17
12
  }
@@ -0,0 +1,25 @@
1
+ // @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
2
+ /*
3
+ * Dates as tests need them: computed from today, so data stays valid on any day the suite runs.
4
+ */
5
+
6
+ /**
7
+ * A date a number of days from today (negative for the past), at midnight UTC.
8
+ * @param days Days to add.
9
+ * @param from The start date (default today).
10
+ * @returns The new date.
11
+ */
12
+ export function addDays(days: number, from: Date = new Date()): Date {
13
+ const d = new Date(Date.UTC(from.getUTCFullYear(), from.getUTCMonth(), from.getUTCDate()));
14
+ d.setUTCDate(d.getUTCDate() + days);
15
+ return d;
16
+ }
17
+
18
+ /**
19
+ * A date as `YYYY-MM-DD`, the format most date inputs and APIs accept.
20
+ * @param date The date.
21
+ * @returns The ISO date.
22
+ */
23
+ export function isoDate(date: Date): string {
24
+ return date.toISOString().slice(0, 10);
25
+ }
@@ -0,0 +1,27 @@
1
+ // @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
2
+ import type { Locator, Page } from '@playwright/test';
3
+
4
+ /*
5
+ * Fills a form from data: one call for any number of fields, keyed by the field's visible label. Pages use it in
6
+ * their actions; tests pass the values.
7
+ */
8
+
9
+ /**
10
+ * Fills each field whose value is given; fields with `undefined` are left as they are.
11
+ * Text fields are filled, `<select>` options chosen by label, check boxes set to the boolean.
12
+ * @param scope The page or the form.
13
+ * @param values Field label → value.
14
+ */
15
+ export async function fillForm(scope: Page | Locator, values: Record<string, string | boolean | undefined>): Promise<void> {
16
+ for (const [label, value] of Object.entries(values)) {
17
+ if (value === undefined) continue;
18
+ const field = scope.getByLabel(label, { exact: true });
19
+ if (typeof value === 'boolean') {
20
+ await field.setChecked(value);
21
+ } else if ((await field.evaluate((el) => el.tagName)) === 'SELECT') {
22
+ await field.selectOption({ label: value });
23
+ } else {
24
+ await field.fill(value);
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,32 @@
1
+ import { flags } from '../src/config/flags';
2
+ import { redact } from './redact';
3
+
4
+ /** Log levels, most severe first. */
5
+ const LEVELS = ['error', 'warn', 'info', 'debug'] as const;
6
+
7
+ /** One of the log levels. */
8
+ type Level = (typeof LEVELS)[number];
9
+
10
+ /**
11
+ * Writes one log line when its level is enabled (`LOG_LEVEL`), with secrets masked.
12
+ * @param level One of `LEVELS`.
13
+ * @param message The message.
14
+ */
15
+ function write(level: Level, message: string): void {
16
+ if (LEVELS.indexOf(level) > LEVELS.indexOf(flags.logLevel as Level)) return;
17
+ const line = `${new Date().toISOString()} ${level.toUpperCase()} ${redact(message)}`;
18
+ if (level === 'error') console.error(line);
19
+ else console.log(line);
20
+ }
21
+
22
+ /** The suite's logger: use it instead of `console.log`, so every line is levelled and masked. */
23
+ export const logger = {
24
+ /** What failed. */
25
+ error: (message: string): void => write('error', message),
26
+ /** What looks wrong but didn't fail. */
27
+ warn: (message: string): void => write('warn', message),
28
+ /** A step worth seeing in a normal run. */
29
+ info: (message: string): void => write('info', message),
30
+ /** Detail for debugging only. */
31
+ debug: (message: string): void => write('debug', message),
32
+ };
@@ -0,0 +1,34 @@
1
+ // @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
2
+ import { randomBytes } from 'node:crypto';
3
+
4
+ /*
5
+ * Run-unique values for data a test creates, so repeated and parallel runs never collide with each other's data.
6
+ */
7
+
8
+ /**
9
+ * A short suffix unique to this call, e.g. `k3f9a2`.
10
+ * @param length Number of characters (default 6).
11
+ * @returns Lower-case letters and digits.
12
+ */
13
+ export function uniqueSuffix(length = 6): string {
14
+ return randomBytes(Math.ceil(length / 2)).toString('hex').slice(0, length);
15
+ }
16
+
17
+ /**
18
+ * A unique test e-mail address on a reserved domain, or on the user's own base address (`name+suffix@domain`).
19
+ * @param base An address the user gave, e.g. `qa.team@company.test`; default `qa@example.test`.
20
+ * @returns The address with a run-unique tag.
21
+ */
22
+ export function uniqueEmail(base = 'qa@example.test'): string {
23
+ const [name, domain] = base.split('@');
24
+ return `${name}+${uniqueSuffix()}@${domain}`;
25
+ }
26
+
27
+ /**
28
+ * A unique name with a readable prefix, e.g. `Customer k3f9a2`.
29
+ * @param prefix What the value is.
30
+ * @returns The prefix and a run-unique suffix.
31
+ */
32
+ export function uniqueName(prefix: string): string {
33
+ return `${prefix} ${uniqueSuffix()}`;
34
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Masks secret values before anything is logged or attached: the values of every environment variable whose name
3
+ * marks it as a secret (password, token, secret, key, cookie), plus any value passed in.
4
+ */
5
+
6
+ /** Names that mark an environment variable as a secret. */
7
+ export const SECRET_NAME = /(PASSWORD|PASSWD|TOKEN|SECRET|API_KEY|COOKIE|SESSION)/i;
8
+
9
+ /**
10
+ * The current secret values from the environment (empty and very short values are skipped).
11
+ * @returns The values, longest first so a longer secret is masked before a shorter one inside it.
12
+ */
13
+ function secretValues(): string[] {
14
+ return Object.entries(process.env)
15
+ .filter((entry): entry is [string, string] => SECRET_NAME.test(entry[0]) && typeof entry[1] === 'string' && entry[1].length >= 4)
16
+ .map(([, value]) => value)
17
+ .sort((a, b) => b.length - a.length);
18
+ }
19
+
20
+ /**
21
+ * Replaces every secret value in a text with `***`.
22
+ * @param text The text to clean.
23
+ * @param extra More values to mask, e.g. a token read at run time.
24
+ * @returns The text with the secrets masked.
25
+ */
26
+ export function redact(text: string, extra: string[] = []): string {
27
+ let out = String(text);
28
+ for (const value of [...extra, ...secretValues()]) {
29
+ if (value) out = out.split(value).join('***');
30
+ }
31
+ return out;
32
+ }
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Builds a test's title and tags from its description in `resources/desc`, so every result traces back to its
3
+ * case id and acceptance criterion, and `--grep @smoke` / `@write` select tests by their description.
4
+ */
5
+
6
+ /** One test description. */
7
+ export interface TestDescription {
8
+ /** Case id, e.g. `TS-0`. */
9
+ id: string;
10
+ /** The acceptance criterion it covers, e.g. `AC-1`. */
11
+ ac: string;
12
+ /** The story or issue key, e.g. `EA-10`. */
13
+ story?: string;
14
+ /** The behaviour, in the requirement's words. */
15
+ title: string;
16
+ /** What must be true before the steps. */
17
+ preconditions: string[];
18
+ /** What the test does. */
19
+ steps: string[];
20
+ /** The result the test asserts. */
21
+ expected: string;
22
+ /** `@smoke` (quick check), `@write` (changes data in the app). */
23
+ tags?: string[];
24
+ }
25
+
26
+ /**
27
+ * The title a test is registered under: case id, story, behaviour.
28
+ * @param d The description.
29
+ * @returns e.g. `TS-0 [EA-10] the test account signs in and is greeted`.
30
+ */
31
+ export function titleOf(d: TestDescription): string {
32
+ return `${d.id}${d.story ? ` [${d.story}]` : ''} ${d.title}`;
33
+ }
34
+
35
+ /**
36
+ * The tags a test is registered with: its acceptance criterion plus its own tags.
37
+ * @param d The description.
38
+ * @returns Playwright's test details, e.g. `{ tag: ['@AC-1', '@smoke'] }`.
39
+ */
40
+ export function tagsOf(d: TestDescription): { tag: string[] } {
41
+ return { tag: [`@${d.ac}`, ...(d.tags ?? [])] };
42
+ }
@@ -5,3 +5,11 @@ E2E_PASSWORD=
5
5
  # Only when the browser's own login prompt (HTTP Basic) takes a different login than the account above:
6
6
  HTTP_USER=
7
7
  HTTP_PASSWORD=
8
+ # Optional switches (src/config/flags.py and env.py):
9
+ APP_LANGUAGE=en
10
+ RUN_WRITE_TESTS=
11
+ LOG_LEVEL=info
12
+ PW_CHANNEL=
13
+ # Apps that keep the login outside cookies: AUTH_INDEXEDDB=1 (e.g. Firebase), AUTH_SESSION_STORAGE=1
14
+ AUTH_INDEXEDDB=
15
+ AUTH_SESSION_STORAGE=
@@ -1,33 +1,108 @@
1
- """Runner entry: loads the project's one `.env`, configures the browser context, and provides pages and flows."""
2
- import pytest
1
+ """Runner entry and fixtures: loads the project's one `.env` first, signs in once per run, gives every test that
2
+ starts signed in the saved session, and provides the page objects and the API client. Tests ask for these by name."""
3
+ from src.config.load_env import load_env_file
3
4
 
4
- from flows.sign_in import SignInFlow
5
- from framework.config import http_credentials, load_env_file, required
6
- from pages.login_page import LoginPage
5
+ load_env_file() # first, so every setting below sees the .env
7
6
 
8
- load_env_file()
7
+ import json # noqa: E402
8
+ from urllib.parse import urlparse # noqa: E402
9
+
10
+ import pytest # noqa: E402
11
+ from playwright.sync_api import expect # noqa: E402
12
+
13
+ from page_objects.home_page import HomePage # noqa: E402
14
+ from page_objects.login_page import LoginPage # noqa: E402
15
+ from page_objects.shell_page import ShellPage # noqa: E402
16
+ from setup import auth # noqa: E402
17
+ from src.config import env, flags # noqa: E402
18
+ from src.services.api_client import ApiClient # noqa: E402
19
+
20
+ def pytest_collection_modifyitems(config, items):
21
+ """Skip tests marked `write` unless RUN_WRITE_TESTS=1; add each case id to `-k` and its title to the report."""
22
+ skip_write = pytest.mark.skip(reason="changes data in the app; set RUN_WRITE_TESTS=1 to run it")
23
+ for item in items:
24
+ if item.get_closest_marker("write") and not flags.run_write_tests():
25
+ item.add_marker(skip_write)
26
+ description = getattr(getattr(item, "function", None), "test_description", None)
27
+ if description is not None:
28
+ item.extra_keyword_matches.add(description.id)
29
+ item.user_properties.append(("title", item.function.__doc__))
9
30
 
10
31
 
11
32
  @pytest.fixture(scope="session")
12
33
  def base_url() -> str:
13
- """Return the test environment's base URL (`BASE_URL`); pytest-playwright uses it for relative `goto` paths."""
14
- return required("BASE_URL")
34
+ """Return the test environment's base URL (`BASE_URL`); pytest-playwright uses it for relative paths."""
35
+ return env.base_url()
36
+
37
+
38
+ @pytest.fixture(scope="session")
39
+ def browser_type_launch_args(browser_type_launch_args: dict) -> dict:
40
+ """Use the installed Chrome or Edge (`PW_CHANNEL`) when Playwright's own browser can't be downloaded."""
41
+ channel = env.browser_channel()
42
+ return {**browser_type_launch_args, **({"channel": channel} if channel else {})}
43
+
44
+
45
+ def _signed_out_args(base_url: str) -> dict:
46
+ """Return the context options for signing in: the base URL and the browser login prompt's credentials (if any)."""
47
+ credentials = env.http_credentials()
48
+ return {"base_url": base_url, **({"http_credentials": credentials} if credentials else {})}
49
+
50
+
51
+ @pytest.fixture(scope="session")
52
+ def signed_in_state(browser, base_url: str):
53
+ """Sign in once for the whole run and yield the saved session's path; remove it when the run ends."""
54
+ path = auth.sign_in_and_save(browser, _signed_out_args(base_url))
55
+ yield path
56
+ auth.remove_session()
15
57
 
16
58
 
17
59
  @pytest.fixture(scope="session")
18
- def browser_context_args(browser_context_args: dict) -> dict:
19
- """Add the browser login prompt's credentials (if any) after pytest-playwright's defaults, so nothing overwrites them."""
20
- credentials = http_credentials()
21
- return {**browser_context_args, **({"http_credentials": credentials} if credentials else {})}
60
+ def browser_context_args(browser_context_args: dict, base_url: str, signed_in_state: str) -> dict:
61
+ """Start every browser test signed in, from the saved session (SIGNED_OUT overrides it per test), after
62
+ pytest-playwright's own options so nothing overwrites them."""
63
+ return {**browser_context_args, **_signed_out_args(base_url), "storage_state": signed_in_state}
64
+
65
+
66
+ @pytest.fixture
67
+ def context(context, request):
68
+ """Playwright's context, with the run's timeouts and, with AUTH_SESSION_STORAGE=1, the saved `sessionStorage`
69
+ restored for signed-in tests (Playwright's saved state doesn't include it; this is its documented workaround)."""
70
+ context.set_default_timeout(flags.action_timeout())
71
+ context.set_default_navigation_timeout(flags.navigation_timeout())
72
+ marker = request.node.get_closest_marker("browser_context_args")
73
+ signed_out = marker is not None and marker.kwargs.get("storage_state", "") is None
74
+ entries = auth.session_storage_entries() if flags.auth_session_storage() and not signed_out else {}
75
+ if entries:
76
+ parsed = urlparse(env.base_url())
77
+ script = ("(([origin, entries]) => { if (window.location.origin === origin) "
78
+ "for (const [k, v] of Object.entries(entries)) window.sessionStorage.setItem(k, String(v)); })")
79
+ context.add_init_script(f"{script}({json.dumps([f'{parsed.scheme}://{parsed.netloc}', entries])})")
80
+ expect.set_options(timeout=flags.expect_timeout())
81
+ yield context
22
82
 
23
83
 
24
84
  @pytest.fixture
25
85
  def login_page(page) -> LoginPage:
26
- """Return the sign-in page object for the test's page."""
86
+ """Return the sign-in page."""
27
87
  return LoginPage(page)
28
88
 
29
89
 
30
90
  @pytest.fixture
31
- def sign_in_flow(page) -> SignInFlow:
32
- """Return the sign-in flow for the test's page."""
33
- return SignInFlow(page)
91
+ def home_page(page) -> HomePage:
92
+ """Return the page a signed-in user lands on."""
93
+ return HomePage(page)
94
+
95
+
96
+ @pytest.fixture
97
+ def shell_page(page) -> ShellPage:
98
+ """Return the app's shell (header, navigation, account menu)."""
99
+ return ShellPage(page)
100
+
101
+
102
+ @pytest.fixture
103
+ def api_client(playwright, base_url: str, signed_in_state: str):
104
+ """Return the app's HTTP API client with the base URL and the saved session's cookies."""
105
+ request = playwright.request.new_context(base_url=base_url, storage_state=signed_in_state,
106
+ http_credentials=env.http_credentials())
107
+ yield ApiClient(request)
108
+ request.dispose()