@orion-qa/orion 3.0.0 → 3.1.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 (578) hide show
  1. package/.claude/agents/codebase-analyst.md +1 -1
  2. package/.claude/settings.json +9 -0
  3. package/.claude/skills/appium/SKILL.md +1 -1
  4. package/.claude/skills/appium/templates/README.md +6 -9
  5. package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
  6. package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
  7. package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
  8. package/.claude/skills/appium/templates/project-java/.env.example +4 -0
  9. package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
  10. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
  11. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
  12. package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
  13. package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
  14. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
  15. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
  16. package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
  17. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
  18. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
  19. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
  20. package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
  21. package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
  22. package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
  23. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
  24. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  25. package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
  26. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
  27. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
  28. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
  29. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
  30. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
  31. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
  32. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
  33. package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
  34. package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
  35. package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
  36. package/.claude/skills/architecture-analysis/SKILL.md +2 -1
  37. package/.claude/skills/automation-implementation/SKILL.md +2 -1
  38. package/.claude/skills/automation-implementation/references/patterns.md +46 -24
  39. package/.claude/skills/code-review/SKILL.md +3 -2
  40. package/.claude/skills/code-review/references/pattern-rules.md +12 -7
  41. package/.claude/skills/documentation/SKILL.md +23 -18
  42. package/.claude/skills/execution/SKILL.md +6 -3
  43. package/.claude/skills/httpclient/templates/README.md +6 -7
  44. package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
  45. package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
  46. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
  47. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
  48. package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
  49. package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
  50. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
  51. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
  52. package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
  53. package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
  54. package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
  55. package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
  56. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
  57. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  58. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  59. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
  60. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
  61. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  62. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
  63. package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  64. package/.claude/skills/javascript/references/sources.md +1 -1
  65. package/.claude/skills/k6/SKILL.md +1 -1
  66. package/.claude/skills/k6/templates/README.md +5 -3
  67. package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
  68. package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
  69. package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
  70. package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
  71. package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
  72. package/.claude/skills/karate/templates/README.md +4 -5
  73. package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
  74. package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
  75. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
  76. package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
  77. package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
  78. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
  79. package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
  80. package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
  81. package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
  82. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
  83. package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
  84. package/.claude/skills/newman/templates/README.md +4 -5
  85. package/.claude/skills/newman/templates/collection/.env.example +2 -0
  86. package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
  87. package/.claude/skills/newman/templates/collection/package.json +2 -1
  88. package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
  89. package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
  90. package/.claude/skills/newman/templates/collection/run.js +41 -31
  91. package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
  92. package/.claude/skills/orion/SKILL.md +9 -7
  93. package/.claude/skills/orion/references/assess-fix.md +34 -0
  94. package/.claude/skills/orion/references/capabilities.md +1 -1
  95. package/.claude/skills/orion/references/conversation.md +9 -8
  96. package/.claude/skills/orion/references/delivery-formats.md +1 -1
  97. package/.claude/skills/orion/references/modes.md +3 -1
  98. package/.claude/skills/orion/references/project-context-files.md +6 -1
  99. package/.claude/skills/orion/references/setup-card.md +12 -6
  100. package/.claude/skills/orion/references/status-lines.md +6 -2
  101. package/.claude/skills/orion/references/task-brief.md +1 -0
  102. package/.claude/skills/orion/references/work-branch.md +3 -1
  103. package/.claude/skills/orion/scripts/browser_setup.mjs +30 -15
  104. package/.claude/skills/orion/scripts/env_check.mjs +8 -3
  105. package/.claude/skills/orion/scripts/env_check.py +12 -5
  106. package/.claude/skills/orion/scripts/fix_plan.mjs +149 -0
  107. package/.claude/skills/orion/scripts/graph.mjs +400 -0
  108. package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
  109. package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
  110. package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
  111. package/.claude/skills/orion/scripts/report_check.mjs +77 -0
  112. package/.claude/skills/orion/scripts/results_parse.mjs +203 -0
  113. package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
  114. package/.claude/skills/orion/scripts/run_state.mjs +171 -0
  115. package/.claude/skills/orion/scripts/suite_check.mjs +228 -0
  116. package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
  117. package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
  118. package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
  119. package/.claude/skills/orion/templates/project-context/defects.md +5 -0
  120. package/.claude/skills/orion/templates/project-context/report.md +45 -0
  121. package/.claude/skills/orion/templates/project-context/run.md +4 -1
  122. package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
  123. package/.claude/skills/orion/templates/project-context/test-design.md +18 -0
  124. package/.claude/skills/pact/SKILL.md +2 -2
  125. package/.claude/skills/pact/templates/README.md +4 -2
  126. package/.claude/skills/pact/templates/project/package.json +2 -2
  127. package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
  128. package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
  129. package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
  130. package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
  131. package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
  132. package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
  133. package/.claude/skills/playwright/SKILL.md +6 -6
  134. package/.claude/skills/playwright/templates/README.md +29 -10
  135. package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
  136. package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
  137. package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
  138. package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
  139. package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
  140. package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
  141. package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
  142. package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
  143. package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
  144. package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
  145. package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
  146. package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
  147. package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
  148. package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +59 -0
  149. package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
  150. package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
  151. package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
  152. package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
  153. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
  154. package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
  155. package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
  156. package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
  157. package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
  158. package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
  159. package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
  160. package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
  161. package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
  162. package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
  163. package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
  164. package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
  165. package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
  166. package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
  167. package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
  168. package/.claude/skills/playwright/templates/javascript/fixtures/index.js +83 -0
  169. package/.claude/skills/playwright/templates/javascript/fixtures/session.js +79 -0
  170. package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
  171. package/.claude/skills/playwright/templates/javascript/jsconfig.json +11 -0
  172. package/.claude/skills/playwright/templates/javascript/package.json +7 -3
  173. package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +58 -0
  174. package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
  175. package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
  176. package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
  177. package/.claude/skills/playwright/templates/javascript/playwright.config.js +42 -24
  178. package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
  179. package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
  180. package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
  181. package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
  182. package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
  183. package/.claude/skills/playwright/templates/javascript/src/config/env.js +79 -0
  184. package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
  185. package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
  186. package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
  187. package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
  188. package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
  189. package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
  190. package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
  191. package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
  192. package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
  193. package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
  194. package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
  195. package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
  196. package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
  197. package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
  198. package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
  199. package/.claude/skills/playwright/templates/project/.env.example +8 -0
  200. package/.claude/skills/playwright/templates/project/fixtures/index.ts +84 -0
  201. package/.claude/skills/playwright/templates/project/fixtures/session.ts +76 -0
  202. package/.claude/skills/playwright/templates/project/gitignore +9 -2
  203. package/.claude/skills/playwright/templates/project/package.json +8 -6
  204. package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +53 -0
  205. package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
  206. package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
  207. package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
  208. package/.claude/skills/playwright/templates/project/playwright.config.ts +46 -23
  209. package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
  210. package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
  211. package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
  212. package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
  213. package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
  214. package/.claude/skills/playwright/templates/project/src/config/env.ts +81 -0
  215. package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
  216. package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
  217. package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
  218. package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
  219. package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
  220. package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
  221. package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
  222. package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
  223. package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
  224. package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
  225. package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
  226. package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
  227. package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
  228. package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
  229. package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
  230. package/.claude/skills/playwright/templates/python/.env.example +8 -0
  231. package/.claude/skills/playwright/templates/python/conftest.py +91 -16
  232. package/.claude/skills/playwright/templates/python/gitignore +5 -0
  233. package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
  234. package/.claude/skills/playwright/templates/python/page_objects/base_page.py +54 -0
  235. package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
  236. package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
  237. package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
  238. package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
  239. package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
  240. package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
  241. package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
  242. package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
  243. package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
  244. package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
  245. package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
  246. package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
  247. package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
  248. package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
  249. package/.claude/skills/playwright/templates/python/{framework/config.py → src/config/env.py} +24 -33
  250. package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
  251. package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
  252. package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
  253. package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
  254. package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
  255. package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
  256. package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
  257. package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
  258. package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
  259. package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
  260. package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
  261. package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
  262. package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
  263. package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
  264. package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
  265. package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
  266. package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
  267. package/.claude/skills/quality-checks/SKILL.md +11 -11
  268. package/.claude/skills/quality-checks/templates/README.md +14 -12
  269. package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
  270. package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
  271. package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
  272. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
  273. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
  274. package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
  275. package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
  276. package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
  277. package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
  278. package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
  279. package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
  280. package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
  281. package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
  282. package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
  283. package/.claude/skills/requests/templates/README.md +6 -7
  284. package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
  285. package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
  286. package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
  287. package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
  288. package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
  289. package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
  290. package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
  291. package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
  292. package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
  293. package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
  294. package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
  295. package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
  296. package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
  297. package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
  298. package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
  299. package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
  300. package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
  301. package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
  302. package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
  303. package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
  304. package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
  305. package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
  306. package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
  307. package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
  308. package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
  309. package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
  310. package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
  311. package/.claude/skills/requirement-analysis/SKILL.md +1 -1
  312. package/.claude/skills/rest-assured/SKILL.md +1 -1
  313. package/.claude/skills/rest-assured/templates/README.md +6 -7
  314. package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
  315. package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
  316. package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
  317. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
  318. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
  319. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
  320. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
  321. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
  322. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
  323. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
  324. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
  325. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
  326. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
  327. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
  328. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  329. 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
  330. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  331. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  332. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  333. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  334. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  335. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  336. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  337. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  338. package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
  339. package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
  340. package/.claude/skills/selenium/SKILL.md +1 -1
  341. package/.claude/skills/selenium/templates/README.md +25 -13
  342. package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
  343. package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
  344. package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
  345. package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
  346. package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
  347. package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
  348. package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
  349. package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
  350. package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
  351. package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +40 -14
  352. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
  353. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
  354. package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
  355. package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
  356. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
  357. package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
  358. package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
  359. package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
  360. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
  361. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
  362. package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
  363. package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
  364. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
  365. package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
  366. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
  367. package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
  368. package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
  369. package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
  370. package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
  371. package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
  372. package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
  373. package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
  374. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
  375. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
  376. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
  377. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
  378. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
  379. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
  380. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
  381. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +38 -17
  382. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
  383. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
  384. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
  385. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
  386. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
  387. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
  388. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
  389. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
  390. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
  391. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
  392. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
  393. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
  394. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
  395. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
  396. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
  397. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
  398. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
  399. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
  400. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
  401. package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
  402. package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
  403. package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
  404. package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
  405. package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
  406. package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
  407. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +17 -20
  408. package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
  409. package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
  410. package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
  411. package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
  412. package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
  413. package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
  414. package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
  415. package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
  416. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
  417. package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
  418. package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
  419. package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
  420. package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
  421. package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
  422. package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
  423. package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
  424. package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
  425. package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
  426. package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
  427. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
  428. package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
  429. package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
  430. package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
  431. package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
  432. package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
  433. package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
  434. package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
  435. package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
  436. package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
  437. package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
  438. package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
  439. package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
  440. package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
  441. package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
  442. package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
  443. package/.claude/skills/self-healing/SKILL.md +1 -1
  444. package/.claude/skills/test-design/SKILL.md +1 -1
  445. package/.claude/skills/ui-observation/SKILL.md +7 -6
  446. package/.claude/skills/ui-observation/references/login-methods.md +1 -1
  447. package/.claude-plugin/plugin.json +1 -1
  448. package/.cursor/commands/orion.md +1 -1
  449. package/.gemini/commands/orion.toml +2 -2
  450. package/.github/prompts/orion.prompt.md +2 -2
  451. package/.windsurf/workflows/orion.md +2 -2
  452. package/AGENTS.md +1 -1
  453. package/README.md +23 -3
  454. package/assets/architecture.svg +104 -0
  455. package/hosts/gemini-extension/gemini-extension.json +1 -1
  456. package/package.json +2 -1
  457. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
  458. package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
  459. package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
  460. package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
  461. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
  462. package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
  463. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
  464. package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
  465. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
  466. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
  467. package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
  468. package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
  469. package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
  470. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
  471. package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
  472. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
  473. package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
  474. package/.claude/skills/k6/templates/project/data/builders.js +0 -8
  475. package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
  476. package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
  477. package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
  478. package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
  479. package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
  480. package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
  481. package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
  482. package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
  483. package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
  484. package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
  485. package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
  486. package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
  487. package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
  488. package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
  489. package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
  490. package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
  491. package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
  492. package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
  493. package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
  494. package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
  495. package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
  496. package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
  497. package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
  498. package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
  499. package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
  500. package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
  501. package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
  502. package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
  503. package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
  504. package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
  505. package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
  506. package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
  507. package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
  508. package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
  509. package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
  510. package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
  511. package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
  512. package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
  513. package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
  514. package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
  515. package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
  516. package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
  517. package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
  518. package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
  519. package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
  520. package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
  521. package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
  522. package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
  523. package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
  524. package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
  525. package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
  526. package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
  527. package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
  528. package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
  529. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
  530. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
  531. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
  532. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
  533. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
  534. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
  535. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
  536. package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
  537. package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
  538. package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
  539. package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
  540. package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
  541. package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
  542. package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
  543. package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
  544. package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
  545. package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
  546. package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
  547. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
  548. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
  549. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
  550. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
  551. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
  552. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
  553. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
  554. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
  555. package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
  556. package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
  557. package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
  558. package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
  559. package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
  560. package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
  561. package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
  562. package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
  563. package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
  564. package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
  565. package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
  566. package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
  567. package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
  568. /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
  569. /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
  570. /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
  571. /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
  572. /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
  573. /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
  574. /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
  575. /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
  576. /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
  577. /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
  578. /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
@@ -5,24 +5,9 @@
5
5
  */
6
6
  import path from 'node:path';
7
7
  import { Verifier } from '@pact-foundation/pact';
8
- import { cases } from '../data/cases.js';
9
-
10
- try {
11
- process.loadEnvFile('.env'); // the project's .env, when there is one; variables already set win
12
- } catch (missing) {
13
- // no .env: settings come from the environment (CI secrets)
14
- }
15
-
16
- /**
17
- * A required setting, by name only.
18
- * @param {string} name The environment variable.
19
- * @returns {string} Its value.
20
- */
21
- function setting(name) {
22
- const value = process.env[name];
23
- if (!value) throw new Error(`Setting ${name} is not set`);
24
- return value;
25
- }
8
+ import { env } from '../../src/config/env.js';
9
+ import { cases } from '../../resources/desc/products.desc.js';
10
+ import { SERVICES } from '../../resources/testData/testData.js';
26
11
 
27
12
  /**
28
13
  * Makes one provider state true before its interaction is replayed.
@@ -30,7 +15,7 @@ function setting(name) {
30
15
  * @returns {Promise<void>}
31
16
  */
32
17
  async function setUpState(state) {
33
- const res = await fetch(setting('PROVIDER_STATE_URL'), {
18
+ const res = await fetch(env.providerStateUrl(), {
34
19
  method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ state }),
35
20
  });
36
21
  if (!res.ok) throw new Error(`Provider state "${state}": HTTP ${res.status}`);
@@ -39,9 +24,9 @@ async function setUpState(state) {
39
24
  const stateHandlers = Object.fromEntries(Object.values(cases).map((c) => [c.state, () => setUpState(c.state)]));
40
25
 
41
26
  new Verifier({
42
- provider: '{{PROVIDER_NAME}}',
43
- providerBaseUrl: setting('PROVIDER_URL'),
44
- pactUrls: [path.resolve('pacts/{{CONSUMER_NAME}}-{{PROVIDER_NAME}}.json')],
27
+ provider: SERVICES.provider,
28
+ providerBaseUrl: env.providerUrl(),
29
+ pactUrls: [path.join(env.pactDir, `${SERVICES.consumer}-${SERVICES.provider}.json`)],
45
30
  stateHandlers,
46
31
  logLevel: 'warn',
47
32
  }).verifyProvider().then(
@@ -13,7 +13,7 @@ Adapter rules: holds only what differs from the capability skills; the project's
13
13
  ## Write
14
14
  - Defer to the project's conventions first. Where it has none: prefer `getByRole`, `getByLabel`, `getByTestId` over CSS/XPath.
15
15
  - Use web-first assertions (`await expect(locator).toHaveText(...)`), which retry. Don't add manual waits or `waitForTimeout`.
16
- - Reuse fixtures (`test.extend`) and storage state for auth if the project has them. If it has none, sign in through the one sign-in flow (`templates/project/src/flows/sign-in.flow.ts`, account from `E2E_USER` / `E2E_PASSWORD` in the project's `.env`); save `storageState()` to `.auth/` only when many tests need the signed-in state. Other sign-in methods (HTTP auth prompt: `use.httpCredentials` with an `origin`, then check the response status; SSO; MFA seed): `ui-observation/references/login-methods.md` section 5.
16
+ - Reuse fixtures (`test.extend`) and storage state for auth if the project has them. A suite on the suite architecture signs in once in `setup/auth.setup` and every browser project reuses `auth/user.json` (pattern rule P14); a new story adds its page objects to `fixtures/index`, its data to `resources/testData/testData`, its cases to `resources/desc/<feature>.desc`, and its specs to `tests/ui` (or `tests/api`). An existing project with neither keeps its own way; a missing sign-in there is one page action (`signIn(account)`, account from `E2E_USER` / `E2E_PASSWORD` in the project's `.env`), and a saved session (`storageState()`, gitignored folder) once many tests need the signed-in state. Other sign-in methods (HTTP auth prompt: `use.httpCredentials` with an `origin`, then check the response status; SSO; MFA seed): `ui-observation/references/login-methods.md` section 5.
17
17
  - Locators: from the `ui-observation` UI map (Playwright MCP `browser_generate_locator` on a live snapshot of a **test** environment); `unverified` only on hosts with no browser tool.
18
18
  - Test data: create it in the test or a fixture with a run-unique suffix, and delete it in `afterEach` / fixture teardown.
19
19
  - Keep `baseURL` and projects in config; don't hard-code URLs.
@@ -31,18 +31,18 @@ Adapter rules: holds only what differs from the capability skills; the project's
31
31
 
32
32
  ## Run
33
33
  - Use the project's script if present (`npm test`, `npm run e2e`). Otherwise `npx playwright test`.
34
- - Scope: `npx playwright test <file>` · `-g "<title>"` · `--project=<name>`.
35
- - New tests: `npx playwright test <files> --repeat-each=3 --retries=0` (all 3 must agree).
34
+ - Scope: `npx playwright test <file>` · `-g "<title>"` · `--project=<name>`. A suite on the suite architecture runs by project: `--project=regression` (UI), `--project=api`, `--project=unit`, `--project=smoke`; the `setup` project runs first on its own (a `--grep` keeps it).
35
+ - New tests: `npx playwright test <files> --repeat-each=3 --retries=0` (all 3 must agree; on the suite architecture add the spec's project, e.g. `--project=regression`, so a test isn't counted twice through `smoke`).
36
36
  - Flaky: Playwright reports tests that passed on retry as `flaky` in the summary line; record that count, never fold it into passed.
37
37
  - Fail check: change the expected value of the main assertion, run the single test with `-g`, confirm it fails **on that assertion** (not on an earlier wait or visibility check), restore.
38
38
  - A quantity change: read the count before the action (`await quantity.inputValue()` or the cell's text), act, then assert `toHaveValue(String(before + added))` / `toHaveText(...)`; never assert a fixed 1 on a state you didn't measure.
39
- - Compact output: `--reporter=line`. Reports: `playwright-report/`; traces/screenshots: `test-results/`.
39
+ - Compact output: `--reporter=line`. Reports: `test-summary/index.html` (the starters' one-page summary from `reporters/summaryReporter`: verdict, tests by story with case id and AC, failures with screenshot and trace; secrets masked; the page to read and share), `playwright-report/` (Playwright's own, for traces); traces/screenshots: `test-results/`.
40
40
  - Capture: keep the project's `trace` / `screenshot` / `video` settings; where it has none, use the template's `retain-on-failure` and `only-on-failure`. With `--retries=0`, `trace: 'on-first-retry'` records nothing, so a failure in the 3 runs has no trace: say so in the run record rather than switching tracing on for every test. Traces hold every network request with its headers and body ([trace-viewer](references/sources.md)), and CI artifacts "can contain sensitive data like user credentials" ([ci-intro](references/sources.md)): treat them as private (security-review 3a).
41
41
  - **Running vs looking.** Tests run with the project's runner (`npx playwright test`, `pytest`, `dotnet test`). The Playwright MCP server is only for looking at the app: one exploration at Gate 2, top-ups for missing steps, and the failing step during healing (`ui-observation`). The separate agent CLI (`@playwright/cli`) is not used: one shell permission would cover all its commands (including `run-code`, `eval`, `cookie-get`) and it has no secret-name filling (compared 2026-10-15, `evals/workflows/runs/2026-10-15-locator-conversion.md`).
42
42
 
43
43
  ## Initialize (new project, after Gate 4)
44
- Copy [templates/](templates/README.md): project files, then the CI file for the **discovered** CI system. Fill every `{{TOKEN}}`, pin versions from `npm view`, then run `npm ci`, `npx playwright install chromium`, `npm run typecheck` and `npx playwright test` (the smoke test must pass before any story test is written).
45
- Other languages: `templates/javascript/` (`npm install`, `npx playwright test`), `templates/python/` (`pip install -r requirements.txt`, `python -m playwright install chromium`, `python -m pytest`), `templates/dotnet/` (`dotnet build`, `pwsh bin/Debug/<tfm>/playwright.ps1 install`, `dotnet test`).
44
+ Copy the starter for the chosen language from [templates/](templates/README.md): `templates/javascript/` (the default, D-072) or `templates/project/` (TypeScript), then the CI file for the **discovered** CI system. Fill every `{{TOKEN}}`, pin versions from `npm view`, then run `npm ci`, `npx playwright install chromium`, `npm run typecheck`, `npm run test:smoke` (it must pass before any story test is written) and `npm test`. The TypeScript starter (`templates/project/`) is on the suite architecture, like the JavaScript one below; `node .claude/skills/orion/scripts/suite_check.mjs sut/<app>` before returning.
45
+ JavaScript, `templates/javascript/` (the suite architecture: sign in once in the `setup` project, locators in page objects, data and labels in `resources/testData`, test descriptions in `resources/desc`): `npm install`, `npx playwright install chromium`, `npm run test:smoke`, then `npm test`; `node .claude/skills/orion/scripts/suite_check.mjs sut/<app>` before returning. Other languages: `templates/python/` (`pip install -r requirements.txt`, `python -m playwright install chromium`, `python -m pytest`), `templates/dotnet/` (`dotnet build`, `pwsh bin/Debug/<tfm>/playwright.ps1 install`, `dotnet test`).
46
46
 
47
47
  ## Other language bindings
48
48
  Same rules (role, label and test-id locators; web-first assertions; no fixed waits); the API is named per language. Language and runner rules: the `javascript`, `python` + `pytest`, `csharp` + `nunit` adapters.
@@ -9,21 +9,22 @@ config (environment first, then `.env`; nothing is read or thrown on import) →
9
9
  |---|---|
10
10
  | `{{PROJECT_NAME}}` | the app's short name, kebab-case |
11
11
  | `{{STORY_KEY}}` | the first story's key, or the app name |
12
- | `{{LOGIN_PATH}}`, `{{USERNAME_LABEL}}`, `{{PASSWORD_LABEL}}`, `{{SUBMIT_LABEL}}` | the sign-in page as observed (UI map) |
12
+ | `{{LOGIN_PATH}}`, `{{HOME_PATH}}` (Playwright JS and TS: the path a signed-in user lands on, as observed) | the sign-in page and the landing page as observed (UI map) |
13
+ | `{{USERNAME_LABEL}}`, `{{PASSWORD_LABEL}}`, `{{SUBMIT_LABEL}}` | the sign-in form's labels as observed (UI map) |
13
14
  | `{{SIGNED_IN_ROLE}}` (.NET: `{{SIGNED_IN_ARIA_ROLE}}`, an `AriaRole` member such as `Heading`) | the role of the element that greets the signed-in user, as observed |
14
15
  | `{{SIGNED_IN_TEXT}}`, `{{LOGIN_ERROR_TEXT}}` | the expected greeting and wrong-password message, from the requirement (or as observed, said so) |
15
- | versions (`PLAYWRIGHT_VERSION`, `PYTEST_PLAYWRIGHT_VERSION`, `PYTEST_VERSION`, `PLAYWRIGHT_DOTNET_VERSION`, `TEST_SDK_VERSION`, `NUNIT_ADAPTER_VERSION`) | looked up at init (`npm view`, `pip index versions`, `dotnet package search`) and recorded |
16
+ | versions (`PLAYWRIGHT_VERSION`, `TYPES_NODE_VERSION`, `TYPESCRIPT_VERSION` (TypeScript), `PYTEST_PLAYWRIGHT_VERSION`, `PYTEST_VERSION`, `PLAYWRIGHT_DOTNET_VERSION`, `TEST_SDK_VERSION`, `NUNIT_ADAPTER_VERSION`) | looked up at init (`npm view`, `pip index versions`, `dotnet package search`) and recorded |
16
17
 
17
- If the app has no sign-in, delete the login page, the sign-in flow, its data and both smoke tests, and start with the story's first page.
18
+ If the app has no sign-in (JavaScript and TypeScript starters): delete `setup/`; in the config the `setup` and `teardown` projects, `signedIn`, and the `dependencies` and `storageState` entries (UI projects then `use: desktop`); `pageObjects/loginPage` and its fixture; `tests/ui/signIn.spec`, `tests/api/session.spec` and `resources/desc/signIn.desc`. Start with the story's first page. `suite_check.mjs` then reports the app as having no sign-in and skips the sign-in-once checks (done this way for the quality-checks run, 2026-11-12). Other starters: delete the login page, the sign-in flow, its data and the smoke tests.
18
19
 
19
20
  Settings at run time: `BASE_URL`, `E2E_USER`, `E2E_PASSWORD`; `HTTP_USER` / `HTTP_PASSWORD` only when the browser's own login prompt (HTTP Basic) takes a different login than the account. Credentials go only to `BASE_URL`'s origin.
20
21
 
21
- | Folder | Stack | Run here 2026-10-16 against the login fixture (3 runs, retries off) | Wrong greeting fails on |
22
+ | Folder | Stack | Run here (3 runs, retries off) | Wrong greeting fails on |
22
23
  |---|---|---|---|
23
- | `project/` | TypeScript, Playwright Test (@playwright/test 1.56.1) | `tsc --noEmit` exit 0; 3/3 "2 passed" | `toHaveText` in `tests/smoke.spec.ts` |
24
- | `javascript/` | JavaScript (CommonJS, JSDoc), Playwright Test 1.56.1 | 3/3 "2 passed" | `toHaveText` in `tests/smoke.spec.js` |
25
- | `python/` | Python, pytest 8.4.2 + pytest-playwright 0.7.1 (playwright 1.56.0) | 3/3 "2 passed" | `to_have_text` in `tests/test_smoke.py` |
26
- | `dotnet/` | C#, .NET 8, Microsoft.Playwright.NUnit 1.56.0 (`PageTest`), NUnit3TestAdapter 6.3.1, Test.Sdk 18.11.0 | build 0 warnings; 3/3 "Passed: 2" | `ToHaveTextAsync` in `Tests/SmokeTests.cs` |
24
+ | `python/` | Python, pytest 9.2.0 + pytest-playwright 0.10.0 (playwright 1.63.0), pytest-html 4.2.0; the suite architecture (below) | 2026-11-12: 3/3 "8 passed", +2 sign-ins per run | `to_have_text` in `tests/ui/test_sign_in.py` |
25
+ | `dotnet/` | C#, .NET 8, Microsoft.Playwright.NUnit 1.63.0 (`PageTest`), NUnit3TestAdapter 6.3.1, Test.Sdk 18.12.0; the suite architecture (below) | 2026-11-12: build 0 warnings; 3/3 "Passed: 8", +2 sign-ins per run | `ToHaveTextAsync` in `Tests/Ui/SignInTests.cs` |
26
+
27
+ Python and .NET in the same layout: `page_objects/`, `resources/{desc,test_data}/`, `setup/auth.py` with a session-scoped `signed_in_state` fixture in `conftest.py` (`@SIGNED_OUT` marker for signed-out tests), `src/{config,services}/`, `tests/{ui,api,unit}/`, `utils/` · `PageObjects/`, `Resources/{Desc,TestData}/` (`testData.json`), `Setup/AuthSetup.cs` (root `[SetUpFixture]`), `Fixtures/{BaseTest,ApiBaseTest}.cs`, `Config/`, `Services/`, `Tests/{Ui,Api,Unit}/`, `Utils/`, `.runsettings` (browser and channel). Both pass the `sessionStorage` app with `AUTH_SESSION_STORAGE=1` and fail without it.
27
28
 
28
29
  Browsers came from the default Playwright location (`PLAYWRIGHT_BROWSERS_PATH` as set in this container); nothing was installed elsewhere.
29
30
 
@@ -31,5 +32,23 @@ CI: `ci/github-actions.yml` (TypeScript), `ci/github-actions-<javascript|python|
31
32
 
32
33
  Evidence: [run record](../../../../evals/workflows/runs/2026-10-16-starter-templates.md).
33
34
 
34
- ## Starter v2 (2026-10-22)
35
- Every web starter also has a **cases file** (`data/cases` / `Data/Cases` with id, AC, preconditions, steps, data, expected change, postconditions; test names and descriptions come from it), a shared **`AccountMenu` component** (pages expose it, flows use it) and a third case, **TS-2 signing out returns to the sign-in page**. New token: `{{SIGN_OUT_LABEL}}` (Playwright: the sign-out button's name) / `{{SIGN_OUT_ID}}` (Selenium: its id). Run here 2026-10-22: 3 tests, 3/3 runs passed in every web starter, fail check on the named assertion ([run record](../../../../evals/workflows/runs/2026-10-22-starter-v2.md)).
35
+ ## The suite architecture: `javascript/` and `project/` (TypeScript) (2026-11-12)
36
+ Both starters follow the owner's reference suite and the rules in [patterns.md](../../automation-implementation/references/patterns.md) ("Dynamic, reusable, manageable" and "The suite architecture"); the other starters follow, stack by stack.
37
+ ```
38
+ auth/ saved session (git-ignored; written by setup, removed by teardown)
39
+ fixtures/index.js test = Playwright's test + page objects and services, typed for // @ts-check
40
+ pageObjects/ basePage, loginPage, homePage, shellPage: locators in the constructor, from labels
41
+ resources/desc/ signIn.desc.js: one entry per test case (id, story, AC, title, tags, steps, expected)
42
+ resources/testData/ testData.js: LABELS by language, ROUTES, DATA per feature
43
+ setup/ auth.setup.js signs in once and saves the session; auth.teardown.js removes it
44
+ src/config/ env.js (settings, read lazily), flags.js (switches, timeouts), paths.js (every file location)
45
+ src/services/ apiClient.js on Playwright's request, errors with method, path and status
46
+ tests/ui · tests/api · tests/unit
47
+ utils/ errors, logger (secrets masked), redact, random, date, formFill, titles
48
+ playwright.config.js projects setup → smoke · regression · api → teardown; unit; HTML report
49
+ jsconfig.json checkJs: the editor type-checks every file
50
+ ```
51
+ `project/` is the same in TypeScript: `.ts` files, interfaces instead of JSDoc types, `tsconfig.json` (strict), `npm run typecheck`, and a JUnit report on CI.
52
+ Commands: `npm test` (regression, api, unit), `npm run test:smoke`, `npm run report`. Switches in `.env`: `APP_LANGUAGE`, `RUN_WRITE_TESTS=1` (tests tagged `@write` change data and are skipped unless set), `LOG_LEVEL`, `PW_CHANNEL`, `AUTH_INDEXEDDB=1` / `AUTH_SESSION_STORAGE=1` for apps that keep the sign-in there. Generated suites are checked with `node .claude/skills/orion/scripts/suite_check.mjs sut/<app>`.
53
+
54
+ TypeScript (`project/`), same day and app: `npm run typecheck` exit 0; 3/3 runs "11 passed", +2 sign-ins per run; `npm test` 10 passed; the same fail check fails on `toHaveText` in `tests/ui/signIn.spec.ts`; the `sessionStorage` app: 6 passed with `AUTH_SESSION_STORAGE=1`, TS-0 fails without it; `LOG_LEVEL=debug` set only in `.env` reached `flags` (the `.env` loads first, in `src/config/loadEnv`). JavaScript (`javascript/`): Run here 2026-11-12, @playwright/test 1.63.0, against `evals/fixtures/session-app` (cookie session): `tsc -p jsconfig.json --noEmit` exit 0; 3/3 runs "11 passed" (setup, 4 unit, smoke TS-0, regression TS-0–TS-2, api framework check, teardown); the app counted 2 sign-ins per run (setup once, plus TS-2, which tests signing out); a wrong greeting fails on `toHaveText` in `tests/ui/signIn.spec.js`. Against `evals/fixtures/playwright-ts/app` (sign-in kept in `sessionStorage`): 6 passed with `AUTH_SESSION_STORAGE=1`; without it TS-0 fails (lands on the sign-in page), which shows the restore is what carries the session. Run record: [2026-11-12-suite-architecture](../../../../evals/workflows/runs/2026-11-12-suite-architecture.md).
@@ -9,7 +9,7 @@ pipeline {
9
9
  stage('Install') { steps { sh 'npm ci' } }
10
10
  stage('Test') {
11
11
  // GREP reaches the shell as an env var (single-quoted Groovy string), never interpolated by Groovy.
12
- steps { sh 'npx playwright test ${GREP:+--grep "$GREP"}' }
12
+ steps { sh 'npm test -- ${GREP:+--grep "$GREP"}' }
13
13
  }
14
14
  }
15
15
  post {
@@ -24,7 +24,7 @@ steps:
24
24
  # The parameter reaches the shell through an env var, not inline (script-injection safe).
25
25
  - script: |
26
26
  if [ "$E2E_REPEAT" != "1" ]; then EXTRA="--repeat-each=$E2E_REPEAT --retries=0"; fi
27
- npx playwright test ${E2E_GREP:+--grep "$E2E_GREP"} $EXTRA
27
+ npm test -- ${E2E_GREP:+--grep "$E2E_GREP"} $EXTRA
28
28
  env:
29
29
  CI: 'true'
30
30
  BASE_URL: $(BASE_URL)
@@ -57,7 +57,7 @@ jobs:
57
57
  mkdir -p reports
58
58
  for i in $(seq 1 "$TEST_REPEAT"); do
59
59
  echo "::group::run $i of $TEST_REPEAT"
60
- npx playwright test --retries=0 ${TEST_FILTER:+--grep "$TEST_FILTER"} --output "test-results/run-$i" || status=1
60
+ npm test -- --retries=0 ${TEST_FILTER:+--grep "$TEST_FILTER"} --output "test-results/run-$i" || status=1
61
61
  echo "::endgroup::"
62
62
  done
63
63
  exit $status
@@ -54,7 +54,7 @@ jobs:
54
54
  - name: Run tests
55
55
  run: |
56
56
  if [ "$E2E_REPEAT" != "1" ]; then REPEAT="$E2E_REPEAT"; fi
57
- npx playwright test ${E2E_GREP:+--grep "$E2E_GREP"} ${REPEAT:+--repeat-each="$REPEAT" --retries=0}
57
+ npm test -- ${E2E_GREP:+--grep "$E2E_GREP"} ${REPEAT:+--repeat-each="$REPEAT" --retries=0}
58
58
  - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
59
59
  if: ${{ !cancelled() }}
60
60
  with:
@@ -5,7 +5,7 @@ e2e:
5
5
  CI: "true"
6
6
  script:
7
7
  - npm ci
8
- - npx playwright test ${E2E_GREP:+--grep "$E2E_GREP"}
8
+ - npm test -- ${E2E_GREP:+--grep "$E2E_GREP"}
9
9
  artifacts:
10
10
  when: always
11
11
  expire_in: 14 days
@@ -5,3 +5,10 @@ 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 (Config/Flags.cs and Env.cs); the browser channel is set in .runsettings:
9
+ APP_LANGUAGE=en
10
+ RUN_WRITE_TESTS=
11
+ LOG_LEVEL=info
12
+ # Apps that keep the login outside cookies: AUTH_INDEXEDDB=1 (e.g. Firebase), AUTH_SESSION_STORAGE=1
13
+ AUTH_INDEXEDDB=
14
+ AUTH_SESSION_STORAGE=
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Playwright's browser settings for `dotnet test` (picked up from the project folder): one worker, headless Chromium.
3
+ Use the installed Chrome or Edge when Playwright's own browser can't be downloaded: set Channel to chrome or msedge. -->
4
+ <RunSettings>
5
+ <RunConfiguration>
6
+ <MaxCpuCount>1</MaxCpuCount>
7
+ </RunConfiguration>
8
+ <NUnit>
9
+ <NumberOfTestWorkers>1</NumberOfTestWorkers>
10
+ </NUnit>
11
+ <Playwright>
12
+ <BrowserName>chromium</BrowserName>
13
+ <LaunchOptions>
14
+ <Headless>true</Headless>
15
+ </LaunchOptions>
16
+ </Playwright>
17
+ </RunSettings>
@@ -4,6 +4,11 @@
4
4
  <Nullable>enable</Nullable>
5
5
  <ImplicitUsings>enable</ImplicitUsings>
6
6
  <IsPackable>false</IsPackable>
7
+ <GenerateDocumentationFile>true</GenerateDocumentationFile>
8
+ <!-- The HTML report: reports/report.html after `dotnet test`. -->
9
+ <VSTestLogger>html%3BLogFileName=report.html</VSTestLogger>
10
+ <VSTestResultsDirectory>$(MSBuildProjectDirectory)/reports</VSTestResultsDirectory>
11
+ <RunSettingsFilePath>$(MSBuildProjectDirectory)/.runsettings</RunSettingsFilePath>
7
12
  </PropertyGroup>
8
13
  <ItemGroup>
9
14
  <!-- Pin at init: dotnet add package <name> (records the current version); see templates/README.md. -->
@@ -11,4 +16,7 @@
11
16
  <PackageReference Include="Microsoft.Playwright.NUnit" Version="{{PLAYWRIGHT_DOTNET_VERSION}}" />
12
17
  <PackageReference Include="NUnit3TestAdapter" Version="{{NUNIT_ADAPTER_VERSION}}" />
13
18
  </ItemGroup>
19
+ <ItemGroup>
20
+ <None Update="Resources/TestData/testData.json" CopyToOutputDirectory="PreserveNewest" />
21
+ </ItemGroup>
14
22
  </Project>
@@ -0,0 +1,89 @@
1
+ using Automation.Utils;
2
+
3
+ namespace Automation.Config;
4
+
5
+ /// <summary>A test account: user name and password. Built from the environment by <see cref="Env.E2eAccount"/>.</summary>
6
+ /// <param name="User">The account's user name.</param>
7
+ /// <param name="Password">The account's password.</param>
8
+ public sealed record Account(string User, string Password)
9
+ {
10
+ /// <summary>Hides the password, so an account printed in a log or a failure message never shows it.</summary>
11
+ /// <returns>The user name with the password masked.</returns>
12
+ public override string ToString() => $"Account({User}, password hidden)";
13
+ }
14
+
15
+ /// <summary>
16
+ /// Settings of the suite, read in this one place: the process environment first, then the project's one `.env`
17
+ /// (gitignored), read once, when a value is first needed, so loading a class never reads it or fails.
18
+ /// </summary>
19
+ public static class Env
20
+ {
21
+ private static readonly Lazy<Dictionary<string, string>> EnvFile = new(ReadEnvFile);
22
+
23
+ /// <summary>The app under test (<c>BASE_URL</c>), without a trailing slash.</summary>
24
+ /// <returns>The URL.</returns>
25
+ public static string BaseUrl() => Required("BASE_URL").TrimEnd('/');
26
+
27
+ /// <summary>The test account the user gave (<c>E2E_USER</c>, <c>E2E_PASSWORD</c>); never logged or written to a file.</summary>
28
+ /// <returns>The account.</returns>
29
+ public static Account E2eAccount() => new(Required("E2E_USER"), Required("E2E_PASSWORD"));
30
+
31
+ /// <summary>
32
+ /// Login for the browser's own prompt (HTTP Basic or Digest), sent only to <c>BASE_URL</c>'s origin. Only
33
+ /// <c>HTTP_USER</c>/<c>HTTP_PASSWORD</c>, never the test account: Playwright writes these into every failure trace.
34
+ /// </summary>
35
+ /// <returns>Playwright's credentials, or null when the app has no prompt.</returns>
36
+ public static Microsoft.Playwright.HttpCredentials? HttpCredentials()
37
+ {
38
+ var user = Value("HTTP_USER");
39
+ var password = Value("HTTP_PASSWORD");
40
+ if (user is null || password is null) return null;
41
+ return new() { Username = user, Password = password, Origin = new Uri(BaseUrl()).GetLeftPart(UriPartial.Authority) };
42
+ }
43
+
44
+ /// <summary>The app language the labels in `testData.json` are taken from (<c>APP_LANGUAGE</c>, default en).</summary>
45
+ /// <returns>The language key.</returns>
46
+ public static string Language() => Value("APP_LANGUAGE") ?? "en";
47
+
48
+ /// <summary>A required setting.</summary>
49
+ /// <param name="name">The variable name.</param>
50
+ /// <returns>Its value.</returns>
51
+ /// <exception cref="MissingSettingError">When it isn't set.</exception>
52
+ public static string Required(string name) => Value(name) ?? throw new MissingSettingError(name);
53
+
54
+ /// <summary>An optional setting: the process environment first, then the project's `.env`.</summary>
55
+ /// <param name="name">The variable name.</param>
56
+ /// <returns>Its value, or null when unset or blank.</returns>
57
+ public static string? Value(string name)
58
+ {
59
+ var fromEnv = Environment.GetEnvironmentVariable(name);
60
+ var raw = !string.IsNullOrWhiteSpace(fromEnv) ? fromEnv : EnvFile.Value.GetValueOrDefault(name);
61
+ return string.IsNullOrWhiteSpace(raw) ? null : raw.Trim();
62
+ }
63
+
64
+ /// <summary>Every setting in effect, for `Utils/Redact` to find the secret ones by name.</summary>
65
+ /// <returns>Values by name, from the `.env` and the environment (the environment wins).</returns>
66
+ public static Dictionary<string, string> All()
67
+ {
68
+ var all = new Dictionary<string, string>(EnvFile.Value);
69
+ foreach (System.Collections.DictionaryEntry e in Environment.GetEnvironmentVariables())
70
+ {
71
+ all[(string)e.Key] = (string?)e.Value ?? "";
72
+ }
73
+ return all;
74
+ }
75
+
76
+ /// <summary>Reads the `NAME=value` lines of the project's `.env`; empty when there is no file (CI uses secrets).</summary>
77
+ /// <returns>The values by name.</returns>
78
+ private static Dictionary<string, string> ReadEnvFile()
79
+ {
80
+ var values = new Dictionary<string, string>();
81
+ if (!File.Exists(Paths.EnvFile)) return values;
82
+ foreach (var line in File.ReadAllLines(Paths.EnvFile))
83
+ {
84
+ var eq = line.IndexOf('=');
85
+ if (eq > 0 && !line.TrimStart().StartsWith('#')) values[line[..eq].Trim()] = line[(eq + 1)..].Trim();
86
+ }
87
+ return values;
88
+ }
89
+ }
@@ -0,0 +1,56 @@
1
+ namespace Automation.Config;
2
+
3
+ /// <summary>Switches and timeouts of a run, from the environment with safe defaults. Change behaviour here or in `.env`, never in a test.</summary>
4
+ public static class Flags
5
+ {
6
+ /// <summary>Whether tests in the `write` category (they change data in the app) run: <c>RUN_WRITE_TESTS=1</c>.</summary>
7
+ /// <returns>True to run them.</returns>
8
+ public static bool RunWriteTests() => Env.Value("RUN_WRITE_TESTS") == "1";
9
+
10
+ /// <summary>Whether to also save the session's IndexedDB (apps that keep the login there): <c>AUTH_INDEXEDDB=1</c>.</summary>
11
+ /// <returns>True to save it.</returns>
12
+ public static bool AuthIndexedDb() => Env.Value("AUTH_INDEXEDDB") == "1";
13
+
14
+ /// <summary>Whether to save and restore `sessionStorage` (Playwright's saved state doesn't include it): <c>AUTH_SESSION_STORAGE=1</c>.</summary>
15
+ /// <returns>True to save it.</returns>
16
+ public static bool AuthSessionStorage() => Env.Value("AUTH_SESSION_STORAGE") == "1";
17
+
18
+ /// <summary>The log level of `Utils/Log`: error, warn, info or debug (<c>LOG_LEVEL</c>, default info).</summary>
19
+ /// <returns>The level.</returns>
20
+ public static string LogLevel() => Env.Value("LOG_LEVEL") ?? "info";
21
+
22
+ /// <summary>How long an <c>Expect</c> waits, in ms (<c>EXPECT_TIMEOUT</c>, default 15000).</summary>
23
+ /// <returns>The timeout.</returns>
24
+ public static float ExpectTimeout() => Number("EXPECT_TIMEOUT", (float)(MeasuredMs("expectTimeout") ?? 15_000));
25
+
26
+ /// <summary>How long a click, fill or similar action waits, in ms (<c>ACTION_TIMEOUT</c>, default 15000).</summary>
27
+ /// <returns>The timeout.</returns>
28
+ public static float ActionTimeout() => Number("ACTION_TIMEOUT", (float)(MeasuredMs("actionTimeout") ?? 15_000));
29
+
30
+ /// <summary>How long a navigation waits, in ms (<c>NAVIGATION_TIMEOUT</c>, default 60000).</summary>
31
+ /// <returns>The timeout.</returns>
32
+ public static float NavigationTimeout() => Number("NAVIGATION_TIMEOUT", (float)(MeasuredMs("navigationTimeout") ?? 60_000));
33
+
34
+ /// <summary>A positive number from the environment, or the fallback.</summary>
35
+ /// <param name="name">The variable name.</param>
36
+ /// <param name="fallback">The value when it isn't set or isn't a positive number.</param>
37
+ /// <returns>The number.</returns>
38
+ private static float Number(string name, float fallback) =>
39
+ float.TryParse(Env.Value(name), out var v) && v > 0 ? v : fallback;
40
+
41
+ /// <summary>The site's measured timeout in ms for <paramref name="key"/> (<c>timeouts.json</c> at the project root, written by Orion's timing profile from the explored pages and the runs), or null when there is none.</summary>
42
+ /// <param name="key">The key, e.g. <c>actionTimeout</c>.</param>
43
+ /// <returns>The milliseconds, or null.</returns>
44
+ public static double? MeasuredMs(string key)
45
+ {
46
+ try
47
+ {
48
+ using var doc = System.Text.Json.JsonDocument.Parse(File.ReadAllText(Path.Combine(Paths.Root, "timeouts.json")));
49
+ return doc.RootElement.TryGetProperty(key, out var v) && v.TryGetProperty("ms", out var ms) && ms.GetDouble() > 0 ? ms.GetDouble() : null;
50
+ }
51
+ catch (Exception e) when (e is IOException or UnauthorizedAccessException or System.Text.Json.JsonException or InvalidOperationException)
52
+ {
53
+ return null;
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,31 @@
1
+ namespace Automation.Config;
2
+
3
+ /// <summary>Every file location the suite uses, in one place; nothing else builds a path.</summary>
4
+ public static class Paths
5
+ {
6
+ /// <summary>The project folder (the one with the .csproj): `dotnet test` runs from bin/, so it is found upwards.</summary>
7
+ public static readonly string Root = FindRoot();
8
+
9
+ /// <summary>The project's one `.env` (gitignored).</summary>
10
+ public static readonly string EnvFile = Path.Combine(Root, ".env");
11
+
12
+ /// <summary>Saved signed-in sessions; git-ignored, removed when the run ends.</summary>
13
+ public static readonly string AuthDir = Path.Combine(Root, "auth");
14
+
15
+ /// <summary>The signed-in session (Playwright storage state), saved once per run by `Setup/AuthSetup`.</summary>
16
+ public static readonly string UserSession = Path.Combine(AuthDir, "user.json");
17
+
18
+ /// <summary>The session's `sessionStorage`, saved only with `AUTH_SESSION_STORAGE=1`.</summary>
19
+ public static readonly string SessionStorage = Path.Combine(AuthDir, "session-storage.json");
20
+
21
+ /// <summary>Walks up from the test binaries to the folder that holds the project file.</summary>
22
+ /// <returns>That folder, or the binaries' folder when none is found.</returns>
23
+ private static string FindRoot()
24
+ {
25
+ for (var dir = new DirectoryInfo(AppContext.BaseDirectory); dir is not null; dir = dir.Parent)
26
+ {
27
+ if (dir.GetFiles("*.csproj").Length > 0) return dir.FullName;
28
+ }
29
+ return AppContext.BaseDirectory;
30
+ }
31
+ }
@@ -0,0 +1,39 @@
1
+ using Automation.Config;
2
+ using Automation.Services;
3
+ using Microsoft.Playwright;
4
+ using Microsoft.Playwright.NUnit;
5
+ using NUnit.Framework;
6
+
7
+ namespace Automation.Fixtures;
8
+
9
+ /// <summary>What every API test starts from (Playwright's <c>PlaywrightTest</c>, no browser): the API client with the saved session.</summary>
10
+ public abstract class ApiBaseTest : PlaywrightTest
11
+ {
12
+ private IAPIRequestContext? _request;
13
+
14
+ /// <summary>The app's HTTP API client, with the base URL and the saved session's cookies.</summary>
15
+ protected ApiClient Api { get; private set; } = null!;
16
+
17
+ /// <summary>Opens the request context from the saved session (signing in first, once per run).</summary>
18
+ /// <returns>The task.</returns>
19
+ [SetUp]
20
+ public async Task StartApi()
21
+ {
22
+ var session = await AuthSetup.EnsureSignedInAsync();
23
+ _request = await Playwright.APIRequest.NewContextAsync(new()
24
+ {
25
+ BaseURL = Env.BaseUrl(),
26
+ StorageStatePath = session,
27
+ HttpCredentials = Env.HttpCredentials(),
28
+ });
29
+ Api = new ApiClient(_request);
30
+ }
31
+
32
+ /// <summary>Closes the request context after every test.</summary>
33
+ /// <returns>The task.</returns>
34
+ [TearDown]
35
+ public async Task StopApi()
36
+ {
37
+ if (_request is not null) await _request.DisposeAsync();
38
+ }
39
+ }
@@ -0,0 +1,72 @@
1
+ using System.Text.Json;
2
+ using Automation.Config;
3
+ using Automation.PageObjects;
4
+ using Microsoft.Playwright;
5
+ using Microsoft.Playwright.NUnit;
6
+ using NUnit.Framework;
7
+
8
+ namespace Automation.Fixtures;
9
+
10
+ /// <summary>
11
+ /// What every UI test starts from (Playwright's <c>PageTest</c>): a context that is signed in from the saved session
12
+ /// (unless the test's description tags it `signedOut`), the run's timeouts, and the page objects. Tests in the `write`
13
+ /// category are ignored unless <c>RUN_WRITE_TESTS=1</c>.
14
+ /// </summary>
15
+ public abstract class BaseTest : PageTest
16
+ {
17
+ /// <summary>The current test's categories (its description's tags and criterion).</summary>
18
+ /// <returns>The categories.</returns>
19
+ private static List<string> Categories() =>
20
+ TestContext.CurrentContext.Test.Properties["Category"].Select(c => c.ToString()!).ToList();
21
+
22
+ /// <summary>True when the current test starts signed in.</summary>
23
+ private static bool SignedIn => !Categories().Contains("signedOut");
24
+
25
+ /// <summary>Signs in once per run (the first fixture does it; later ones return at once).</summary>
26
+ /// <returns>The task.</returns>
27
+ [OneTimeSetUp]
28
+ public async Task SignInOnce() => await AuthSetup.EnsureSignedInAsync();
29
+
30
+ /// <summary>Base URL, the browser login prompt's credentials (if any) and, for signed-in tests, the saved session.</summary>
31
+ /// <returns>The context options.</returns>
32
+ public override BrowserNewContextOptions ContextOptions() => new()
33
+ {
34
+ BaseURL = Env.BaseUrl(),
35
+ HttpCredentials = Env.HttpCredentials(),
36
+ StorageStatePath = SignedIn ? Paths.UserSession : null,
37
+ };
38
+
39
+ /// <summary>
40
+ /// Starts the test: ignores `write` tests unless allowed, sets the run's timeouts and, with
41
+ /// <c>AUTH_SESSION_STORAGE=1</c>, restores the saved sessionStorage for signed-in tests (Playwright's documented workaround).
42
+ /// </summary>
43
+ /// <returns>The task.</returns>
44
+ [SetUp]
45
+ public async Task StartTest()
46
+ {
47
+ if (Categories().Contains("write") && !Flags.RunWriteTests())
48
+ {
49
+ Assert.Ignore("changes data in the app; set RUN_WRITE_TESTS=1 to run it");
50
+ }
51
+ Context.SetDefaultTimeout(Flags.ActionTimeout());
52
+ Context.SetDefaultNavigationTimeout(Flags.NavigationTimeout());
53
+ SetDefaultExpectTimeout(Flags.ExpectTimeout());
54
+ if (SignedIn && Flags.AuthSessionStorage() && File.Exists(Paths.SessionStorage))
55
+ {
56
+ var origin = new Uri(Env.BaseUrl()).GetLeftPart(UriPartial.Authority);
57
+ var entries = await File.ReadAllTextAsync(Paths.SessionStorage);
58
+ await Context.AddInitScriptAsync(
59
+ "if (window.location.origin === " + JsonSerializer.Serialize(origin) + ") { " +
60
+ "for (const [k, v] of Object.entries(" + entries + ")) window.sessionStorage.setItem(k, String(v)); }");
61
+ }
62
+ }
63
+
64
+ /// <summary>The sign-in page.</summary>
65
+ protected LoginPage LoginPage => new(Page);
66
+
67
+ /// <summary>The page a signed-in user lands on.</summary>
68
+ protected HomePage HomePage => new(Page);
69
+
70
+ /// <summary>The app's shell (header, navigation, account menu).</summary>
71
+ protected ShellPage ShellPage => new(Page);
72
+ }
@@ -0,0 +1,59 @@
1
+ using Automation.Utils;
2
+ using Microsoft.Playwright;
3
+
4
+ namespace Automation.PageObjects;
5
+
6
+ /// <summary>
7
+ /// What every page shares: one way to open its path and one way to wait until it is usable. A page object owns its
8
+ /// locators (built once, in its constructor, from the labels in `testData.json`) and the user actions on them; no
9
+ /// assertions, no expected values, no API paths, no framework-private fields.
10
+ /// </summary>
11
+ /// <param name="page">The Playwright page this object drives.</param>
12
+ public abstract class BasePage(IPage page)
13
+ {
14
+ /// <summary>The Playwright page this object drives.</summary>
15
+ protected IPage Page { get; } = page;
16
+
17
+ /// <summary>The page's path relative to <c>BASE_URL</c> (from <c>TestData</c>); "" for a page with no path of its own.</summary>
18
+ protected abstract string PagePath { get; }
19
+
20
+ /// <summary>The element that is visible when this page is ready to use.</summary>
21
+ protected abstract ILocator ReadyMarker { get; }
22
+
23
+ /// <summary>
24
+ /// Opens the page's path and waits until it is ready: DOMContentLoaded, then the ready marker, so a page whose load
25
+ /// event never fires can't hang the test.
26
+ /// </summary>
27
+ /// <returns>This page, ready.</returns>
28
+ /// <exception cref="AutomationError">With the URL and the HTTP status (or the network error) when the page doesn't open.</exception>
29
+ public async Task<BasePage> OpenAsync()
30
+ {
31
+ IResponse? response;
32
+ try
33
+ {
34
+ response = await Page.GotoAsync(PagePath, new() { WaitUntil = WaitUntilState.DOMContentLoaded });
35
+ }
36
+ catch (PlaywrightException e)
37
+ {
38
+ throw new AutomationError("Open", PagePath, e.Message.Split('\n')[0]);
39
+ }
40
+ if (response is not null && !response.Ok) throw new AutomationError("Open", response.Url, $"HTTP {response.Status}");
41
+ return await WaitUntilReadyAsync();
42
+ }
43
+
44
+ /// <summary>Waits until the ready marker is visible.</summary>
45
+ /// <returns>This page, ready.</returns>
46
+ /// <exception cref="AutomationError">Naming the URL and the page that never became ready.</exception>
47
+ public async Task<BasePage> WaitUntilReadyAsync()
48
+ {
49
+ try
50
+ {
51
+ await ReadyMarker.WaitForAsync(new() { State = WaitForSelectorState.Visible });
52
+ }
53
+ catch (TimeoutException)
54
+ {
55
+ throw new AutomationError("Wait for", Page.Url, $"{GetType().Name} never became ready");
56
+ }
57
+ return this;
58
+ }
59
+ }