@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.
- package/.claude/agents/codebase-analyst.md +1 -1
- package/.claude/settings.json +9 -0
- package/.claude/skills/appium/SKILL.md +1 -1
- package/.claude/skills/appium/templates/README.md +6 -9
- package/.claude/skills/appium/templates/ci/github-actions-android.yml +8 -2
- package/.claude/skills/appium/templates/ci/github-actions-ios.yml +8 -2
- package/.claude/skills/appium/templates/ci/github-actions-windows.yml +9 -2
- package/.claude/skills/appium/templates/project-java/.env.example +4 -0
- package/.claude/skills/appium/templates/project-java/pom.xml +2 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework/Config.java → config/Env.java} +43 -52
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Flags.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/config/Paths.java +14 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/desc/SignInDesc.java +30 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverFactory.java +19 -13
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → driver}/DriverManager.java +12 -9
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/fixtures/BaseTest.java +75 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{screens → pageObjects}/BaseScreen.java +12 -12
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/HomeScreen.java +26 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/LoginScreen.java +63 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/pageObjects/ShellScreen.java +26 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/setup/AuthSetup.java +49 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/testData/TestData.java +78 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/ui/SignInTest.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/{framework → utils}/AutomationError.java +4 -4
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/appium/templates/project-java/src/test/resources/testData/testData.properties +7 -0
- package/.claude/skills/appium/templates/project-java/testng.xml +11 -4
- package/.claude/skills/architecture-analysis/SKILL.md +2 -1
- package/.claude/skills/automation-implementation/SKILL.md +2 -1
- package/.claude/skills/automation-implementation/references/patterns.md +46 -24
- package/.claude/skills/code-review/SKILL.md +3 -2
- package/.claude/skills/code-review/references/pattern-rules.md +12 -7
- package/.claude/skills/documentation/SKILL.md +23 -18
- package/.claude/skills/execution/SKILL.md +6 -3
- package/.claude/skills/httpclient/templates/README.md +6 -7
- package/.claude/skills/httpclient/templates/csharp-nunit/.env.example +4 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Automation.csproj +7 -3
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Env.cs +62 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Flags.cs +35 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Config/Paths.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Fixtures/BaseTest.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/Desc/ProductsDesc.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/TestData.cs +61 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Resources/TestData/testData.json +9 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Services/ApiClient.cs +48 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Services/HealthApi.cs +11 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/{Api → Services}/ProductsApi.cs +8 -5
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Api/ProductsTests.cs +61 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Dates.cs +18 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Log.cs +37 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/RandomData.cs +26 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/Redact.cs +22 -0
- package/.claude/skills/httpclient/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
- package/.claude/skills/javascript/references/sources.md +1 -1
- package/.claude/skills/k6/SKILL.md +1 -1
- package/.claude/skills/k6/templates/README.md +5 -3
- package/.claude/skills/k6/templates/project/{data/cases.js → resources/desc/products.desc.js} +1 -1
- package/.claude/skills/k6/templates/project/resources/testData/testData.js +32 -0
- package/.claude/skills/k6/templates/project/{lib/config.js → src/config/env.js} +10 -5
- package/.claude/skills/k6/templates/project/{lib → src/services}/products-api.js +7 -5
- package/.claude/skills/k6/templates/project/{load → tests/load}/products.js +8 -8
- package/.claude/skills/karate/templates/README.md +4 -5
- package/.claude/skills/karate/templates/java-junit5/.env.example +2 -0
- package/.claude/skills/karate/templates/java-junit5/pom.xml +4 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → config}/EnvSettings.java +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/java/karate-config.js +13 -6
- package/.claude/skills/karate/templates/java-junit5/src/test/java/logback-test.xml +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests}/ApiTest.java +7 -4
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/health.feature +3 -3
- package/.claude/skills/karate/templates/java-junit5/src/test/java/tests/api/products.feature +29 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/java/{support → utils}/MaskingLogModifier.java +1 -1
- package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/newProduct.js +7 -0
- package/.claude/skills/karate/templates/java-junit5/src/test/resources/testData/testData.json +6 -0
- package/.claude/skills/newman/templates/README.md +4 -5
- package/.claude/skills/newman/templates/collection/.env.example +2 -0
- package/.claude/skills/newman/templates/collection/collections/api.postman_collection.json +165 -145
- package/.claude/skills/newman/templates/collection/package.json +2 -1
- package/.claude/skills/newman/templates/collection/resources/desc/products.desc.json +53 -0
- package/.claude/skills/newman/templates/collection/resources/testData/testData.json +10 -0
- package/.claude/skills/newman/templates/collection/run.js +41 -31
- package/.claude/skills/newman/templates/collection/src/config/env.js +37 -0
- package/.claude/skills/orion/SKILL.md +9 -7
- package/.claude/skills/orion/references/assess-fix.md +34 -0
- package/.claude/skills/orion/references/capabilities.md +1 -1
- package/.claude/skills/orion/references/conversation.md +9 -8
- package/.claude/skills/orion/references/delivery-formats.md +1 -1
- package/.claude/skills/orion/references/modes.md +3 -1
- package/.claude/skills/orion/references/project-context-files.md +6 -1
- package/.claude/skills/orion/references/setup-card.md +12 -6
- package/.claude/skills/orion/references/status-lines.md +6 -2
- package/.claude/skills/orion/references/task-brief.md +1 -0
- package/.claude/skills/orion/references/work-branch.md +3 -1
- package/.claude/skills/orion/scripts/browser_setup.mjs +30 -15
- package/.claude/skills/orion/scripts/env_check.mjs +8 -3
- package/.claude/skills/orion/scripts/env_check.py +12 -5
- package/.claude/skills/orion/scripts/fix_plan.mjs +149 -0
- package/.claude/skills/orion/scripts/graph.mjs +400 -0
- package/.claude/skills/orion/scripts/lib/inside.mjs +31 -0
- package/.claude/skills/orion/scripts/lib/scan.mjs +357 -0
- package/.claude/skills/orion/scripts/parity_check.mjs +166 -0
- package/.claude/skills/orion/scripts/report_check.mjs +77 -0
- package/.claude/skills/orion/scripts/results_parse.mjs +203 -0
- package/.claude/skills/orion/scripts/reuse_check.mjs +251 -0
- package/.claude/skills/orion/scripts/run_state.mjs +171 -0
- package/.claude/skills/orion/scripts/suite_check.mjs +228 -0
- package/.claude/skills/orion/scripts/timing_profile.mjs +128 -0
- package/.claude/skills/orion/scripts/usage_report.mjs +315 -0
- package/.claude/skills/orion/templates/project-context/assessment.md +45 -0
- package/.claude/skills/orion/templates/project-context/defects.md +5 -0
- package/.claude/skills/orion/templates/project-context/report.md +45 -0
- package/.claude/skills/orion/templates/project-context/run.md +4 -1
- package/.claude/skills/orion/templates/project-context/test-case-map.md +5 -0
- package/.claude/skills/orion/templates/project-context/test-design.md +18 -0
- package/.claude/skills/pact/SKILL.md +2 -2
- package/.claude/skills/pact/templates/README.md +4 -2
- package/.claude/skills/pact/templates/project/package.json +2 -2
- package/.claude/skills/pact/templates/project/{data/cases.js → resources/desc/products.desc.js} +3 -3
- package/.claude/skills/pact/templates/project/resources/testData/testData.js +21 -0
- package/.claude/skills/pact/templates/project/src/config/env.js +32 -0
- package/.claude/skills/pact/templates/project/src/{products-client.js → services/products-client.js} +4 -2
- package/.claude/skills/pact/templates/project/tests/contract/products.contract.test.js +46 -0
- package/.claude/skills/pact/templates/project/{verify → tests/verify}/products.verify.js +7 -22
- package/.claude/skills/playwright/SKILL.md +6 -6
- package/.claude/skills/playwright/templates/README.md +29 -10
- package/.claude/skills/playwright/templates/ci/Jenkinsfile +1 -1
- package/.claude/skills/playwright/templates/ci/azure-pipelines.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions-javascript.yml +1 -1
- package/.claude/skills/playwright/templates/ci/github-actions.yml +1 -1
- package/.claude/skills/playwright/templates/ci/gitlab-ci.yml +1 -1
- package/.claude/skills/playwright/templates/dotnet/.env.example +7 -0
- package/.claude/skills/playwright/templates/dotnet/.runsettings +17 -0
- package/.claude/skills/playwright/templates/dotnet/Automation.csproj +8 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Env.cs +89 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Flags.cs +56 -0
- package/.claude/skills/playwright/templates/dotnet/Config/Paths.cs +31 -0
- package/.claude/skills/playwright/templates/dotnet/Fixtures/ApiBaseTest.cs +39 -0
- package/.claude/skills/playwright/templates/dotnet/Fixtures/BaseTest.cs +72 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/BasePage.cs +59 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/HomePage.cs +21 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/LoginPage.cs +54 -0
- package/.claude/skills/playwright/templates/dotnet/PageObjects/ShellPage.cs +29 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/Desc/SignInDesc.cs +23 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/TestData/TestData.cs +74 -0
- package/.claude/skills/playwright/templates/dotnet/Resources/TestData/testData.json +19 -0
- package/.claude/skills/playwright/templates/dotnet/Services/ApiClient.cs +51 -0
- package/.claude/skills/playwright/templates/dotnet/Setup/AuthSetup.cs +63 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Api/SessionTests.cs +18 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Ui/SignInTests.cs +48 -0
- package/.claude/skills/playwright/templates/dotnet/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/AutomationError.cs +15 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Dates.cs +18 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Log.cs +37 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/RandomData.cs +26 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/Redact.cs +22 -0
- package/.claude/skills/playwright/templates/dotnet/Utils/TestDescription.cs +55 -0
- package/.claude/skills/playwright/templates/dotnet/gitignore +6 -1
- package/.claude/skills/playwright/templates/javascript/.env.example +8 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/index.js +83 -0
- package/.claude/skills/playwright/templates/javascript/fixtures/session.js +79 -0
- package/.claude/skills/playwright/templates/javascript/gitignore +7 -0
- package/.claude/skills/playwright/templates/javascript/jsconfig.json +11 -0
- package/.claude/skills/playwright/templates/javascript/package.json +7 -3
- package/.claude/skills/playwright/templates/javascript/pageObjects/basePage.js +58 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/homePage.js +19 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/loginPage.js +44 -0
- package/.claude/skills/playwright/templates/javascript/pageObjects/shellPage.js +26 -0
- package/.claude/skills/playwright/templates/javascript/playwright.config.js +42 -24
- package/.claude/skills/playwright/templates/javascript/reporters/summaryReporter.js +233 -0
- package/.claude/skills/playwright/templates/javascript/resources/desc/signIn.desc.js +33 -0
- package/.claude/skills/playwright/templates/javascript/resources/testData/testData.js +45 -0
- package/.claude/skills/playwright/templates/javascript/setup/auth.setup.js +17 -0
- package/.claude/skills/playwright/templates/javascript/setup/auth.teardown.js +16 -0
- package/.claude/skills/playwright/templates/javascript/src/config/env.js +79 -0
- package/.claude/skills/playwright/templates/javascript/src/config/flags.js +70 -0
- package/.claude/skills/playwright/templates/javascript/src/config/loadEnv.js +21 -0
- package/.claude/skills/playwright/templates/javascript/src/config/paths.js +22 -0
- package/.claude/skills/playwright/templates/javascript/src/services/apiClient.js +68 -0
- package/.claude/skills/playwright/templates/javascript/tests/api/session.spec.js +15 -0
- package/.claude/skills/playwright/templates/javascript/tests/ui/signIn.spec.js +35 -0
- package/.claude/skills/playwright/templates/javascript/tests/unit/summaryReporter.test.js +34 -0
- package/.claude/skills/playwright/templates/javascript/tests/unit/utils.test.js +31 -0
- package/.claude/skills/playwright/templates/javascript/utils/date.js +28 -0
- package/.claude/skills/playwright/templates/javascript/{src → utils}/errors.js +1 -0
- package/.claude/skills/playwright/templates/javascript/utils/formFill.js +29 -0
- package/.claude/skills/playwright/templates/javascript/utils/logger.js +33 -0
- package/.claude/skills/playwright/templates/javascript/utils/random.js +37 -0
- package/.claude/skills/playwright/templates/javascript/utils/redact.js +35 -0
- package/.claude/skills/playwright/templates/javascript/utils/titles.js +38 -0
- package/.claude/skills/playwright/templates/project/.env.example +8 -0
- package/.claude/skills/playwright/templates/project/fixtures/index.ts +84 -0
- package/.claude/skills/playwright/templates/project/fixtures/session.ts +76 -0
- package/.claude/skills/playwright/templates/project/gitignore +9 -2
- package/.claude/skills/playwright/templates/project/package.json +8 -6
- package/.claude/skills/playwright/templates/project/pageObjects/basePage.ts +53 -0
- package/.claude/skills/playwright/templates/project/pageObjects/homePage.ts +20 -0
- package/.claude/skills/playwright/templates/project/pageObjects/loginPage.ts +47 -0
- package/.claude/skills/playwright/templates/project/pageObjects/shellPage.ts +22 -0
- package/.claude/skills/playwright/templates/project/playwright.config.ts +46 -23
- package/.claude/skills/playwright/templates/project/reporters/summaryReporter.ts +241 -0
- package/.claude/skills/playwright/templates/project/resources/desc/signIn.desc.ts +32 -0
- package/.claude/skills/playwright/templates/project/resources/testData/testData.ts +42 -0
- package/.claude/skills/playwright/templates/project/setup/auth.setup.ts +16 -0
- package/.claude/skills/playwright/templates/project/setup/auth.teardown.ts +15 -0
- package/.claude/skills/playwright/templates/project/src/config/env.ts +81 -0
- package/.claude/skills/playwright/templates/project/src/config/flags.ts +70 -0
- package/.claude/skills/playwright/templates/project/src/config/loadEnv.ts +17 -0
- package/.claude/skills/playwright/templates/project/src/config/paths.ts +19 -0
- package/.claude/skills/playwright/templates/project/src/services/apiClient.ts +70 -0
- package/.claude/skills/playwright/templates/project/tests/api/session.spec.ts +14 -0
- package/.claude/skills/playwright/templates/project/tests/ui/signIn.spec.ts +34 -0
- package/.claude/skills/playwright/templates/project/tests/unit/summaryReporter.test.ts +33 -0
- package/.claude/skills/playwright/templates/project/tests/unit/utils.test.ts +30 -0
- package/.claude/skills/playwright/templates/project/tsconfig.json +3 -8
- package/.claude/skills/playwright/templates/project/utils/date.ts +25 -0
- package/.claude/skills/playwright/templates/project/utils/formFill.ts +27 -0
- package/.claude/skills/playwright/templates/project/utils/logger.ts +32 -0
- package/.claude/skills/playwright/templates/project/utils/random.ts +34 -0
- package/.claude/skills/playwright/templates/project/utils/redact.ts +32 -0
- package/.claude/skills/playwright/templates/project/utils/titles.ts +42 -0
- package/.claude/skills/playwright/templates/python/.env.example +8 -0
- package/.claude/skills/playwright/templates/python/conftest.py +91 -16
- package/.claude/skills/playwright/templates/python/gitignore +5 -0
- package/.claude/skills/playwright/templates/python/page_objects/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/page_objects/base_page.py +54 -0
- package/.claude/skills/playwright/templates/python/page_objects/home_page.py +22 -0
- package/.claude/skills/playwright/templates/python/page_objects/login_page.py +42 -0
- package/.claude/skills/playwright/templates/python/page_objects/shell_page.py +21 -0
- package/.claude/skills/playwright/templates/python/pytest.ini +5 -2
- package/.claude/skills/playwright/templates/python/requirements.txt +1 -0
- package/.claude/skills/playwright/templates/python/resources/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/desc/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/desc/sign_in_desc.py +27 -0
- package/.claude/skills/playwright/templates/python/resources/test_data/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/resources/test_data/test_data.py +41 -0
- package/.claude/skills/playwright/templates/python/setup/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/setup/auth.py +53 -0
- package/.claude/skills/playwright/templates/python/src/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/config/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/{framework/config.py → src/config/env.py} +24 -33
- package/.claude/skills/playwright/templates/python/src/config/flags.py +63 -0
- package/.claude/skills/playwright/templates/python/src/config/load_env.py +16 -0
- package/.claude/skills/playwright/templates/python/src/config/paths.py +25 -0
- package/.claude/skills/playwright/templates/python/src/services/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/src/services/api_client.py +60 -0
- package/.claude/skills/playwright/templates/python/tests/api/test_session.py +14 -0
- package/.claude/skills/playwright/templates/python/tests/ui/test_sign_in.py +36 -0
- package/.claude/skills/playwright/templates/python/tests/unit/test_utils.py +32 -0
- package/.claude/skills/playwright/templates/python/utils/__init__.py +1 -0
- package/.claude/skills/playwright/templates/python/utils/dates.py +23 -0
- package/.claude/skills/playwright/templates/python/{framework → utils}/errors.py +3 -2
- package/.claude/skills/playwright/templates/python/utils/form_fill.py +26 -0
- package/.claude/skills/playwright/templates/python/utils/logger.py +40 -0
- package/.claude/skills/playwright/templates/python/utils/markers.py +6 -0
- package/.claude/skills/playwright/templates/python/utils/random_data.py +35 -0
- package/.claude/skills/playwright/templates/python/utils/redact.py +30 -0
- package/.claude/skills/playwright/templates/python/utils/titles.py +53 -0
- package/.claude/skills/quality-checks/SKILL.md +11 -11
- package/.claude/skills/quality-checks/templates/README.md +14 -12
- package/.claude/skills/quality-checks/templates/playwright-js/pageObjects/scannedPage.js +21 -0
- package/.claude/skills/quality-checks/templates/playwright-js/resources/desc/quality.desc.js +63 -0
- package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js +32 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/accessibility.js +50 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/pageHealth.js +38 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/checks/performance.js +21 -0
- package/.claude/skills/quality-checks/templates/playwright-js/src/services/graphqlClient.js +28 -0
- package/.claude/skills/quality-checks/templates/playwright-js/tests/api/graphql.spec.js +23 -0
- package/.claude/skills/quality-checks/templates/playwright-js/tests/ui/quality.spec.js +50 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/pageObjects/scannedPage.ts +20 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/resources/desc/quality.desc.ts +59 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/{src/data/quality.data.ts → resources/testData/qualityData.ts} +3 -2
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/api/graphql.spec.ts +22 -0
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/ui/quality.spec.ts +49 -0
- package/.claude/skills/requests/templates/README.md +6 -7
- package/.claude/skills/requests/templates/python-pytest/.env.example +4 -0
- package/.claude/skills/requests/templates/python-pytest/conftest.py +24 -9
- package/.claude/skills/requests/templates/python-pytest/pytest.ini +6 -3
- package/.claude/skills/requests/templates/python-pytest/requirements.txt +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/desc/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/desc/products_desc.py +27 -0
- package/.claude/skills/requests/templates/python-pytest/resources/test_data/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/resources/test_data/test_data.py +27 -0
- package/.claude/skills/requests/templates/python-pytest/src/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/env.py +39 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/flags.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/load_env.py +16 -0
- package/.claude/skills/requests/templates/python-pytest/src/config/paths.py +16 -0
- package/.claude/skills/requests/templates/python-pytest/src/services/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/{api/client.py → src/services/api_client.py} +19 -10
- package/.claude/skills/requests/templates/python-pytest/{api → src/services}/products_api.py +3 -9
- package/.claude/skills/requests/templates/python-pytest/tests/api/test_products.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/tests/unit/test_utils.py +32 -0
- package/.claude/skills/requests/templates/python-pytest/utils/__init__.py +1 -0
- package/.claude/skills/requests/templates/python-pytest/utils/dates.py +23 -0
- package/.claude/skills/{selenium/templates/python-pytest/framework → requests/templates/python-pytest/utils}/errors.py +4 -3
- package/.claude/skills/requests/templates/python-pytest/utils/logger.py +40 -0
- package/.claude/skills/requests/templates/python-pytest/utils/random_data.py +35 -0
- package/.claude/skills/requests/templates/python-pytest/utils/redact.py +30 -0
- package/.claude/skills/requests/templates/python-pytest/utils/titles.py +53 -0
- package/.claude/skills/requirement-analysis/SKILL.md +1 -1
- package/.claude/skills/rest-assured/SKILL.md +1 -1
- package/.claude/skills/rest-assured/templates/README.md +6 -7
- package/.claude/skills/rest-assured/templates/ci/github-actions.yml +5 -2
- package/.claude/skills/rest-assured/templates/java-testng/.env.example +3 -0
- package/.claude/skills/rest-assured/templates/java-testng/pom.xml +7 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api/ApiConfig.java → config/Env.java} +35 -22
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Flags.java +17 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/config/Paths.java +14 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/desc/ProductsDesc.java +26 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +29 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/ApiSpec.java +31 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/services/HealthApi.java +17 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{api → services}/ProductsApi.java +19 -14
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/{data → testData}/ProductBuilder.java +4 -8
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/testData/TestData.java +64 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/api/ProductsTest.java +49 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- 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
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/rest-assured/templates/java-testng/src/test/resources/testData/testData.properties +14 -0
- package/.claude/skills/rest-assured/templates/java-testng/testng.xml +14 -0
- package/.claude/skills/selenium/SKILL.md +1 -1
- package/.claude/skills/selenium/templates/README.md +25 -13
- package/.claude/skills/selenium/templates/ci/github-actions-java.yml +5 -2
- package/.claude/skills/selenium/templates/csharp-nunit/.env.example +15 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Automation.csproj +7 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Framework/Config.cs → Config/Env.cs} +33 -34
- package/.claude/skills/selenium/templates/csharp-nunit/Config/Flags.cs +39 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Config/Paths.cs +31 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Framework → Driver}/DriverFactory.cs +16 -13
- package/.claude/skills/selenium/templates/csharp-nunit/Driver/DriverManager.cs +27 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Fixtures/BaseTest.cs +56 -0
- package/.claude/skills/selenium/templates/csharp-nunit/{Pages → PageObjects}/BasePage.cs +40 -14
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/HomePage.cs +21 -0
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/LoginPage.cs +53 -0
- package/.claude/skills/selenium/templates/csharp-nunit/PageObjects/ShellPage.cs +22 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/Desc/SignInDesc.cs +23 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/TestData.cs +74 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Resources/TestData/testData.json +14 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Services/ApiClient.cs +71 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Setup/AuthSetup.cs +104 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Api/SessionTests.cs +23 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Ui/SignInTests.cs +42 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/Unit/UtilsTests.cs +40 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/AutomationError.cs +15 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Dates.cs +18 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/FormFill.cs +20 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Log.cs +37 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/RandomData.cs +26 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/Redact.cs +22 -0
- package/.claude/skills/selenium/templates/csharp-nunit/Utils/TestDescription.cs +55 -0
- package/.claude/skills/selenium/templates/csharp-nunit/gitignore +6 -2
- package/.claude/skills/selenium/templates/java-testng/.env.example +12 -0
- package/.claude/skills/selenium/templates/java-testng/gitignore +5 -2
- package/.claude/skills/selenium/templates/java-testng/pom.xml +2 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework/Config.java → config/Env.java} +45 -55
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Flags.java +50 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/config/Paths.java +20 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/desc/SignInDesc.java +30 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverFactory.java +15 -12
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{framework → driver}/DriverManager.java +4 -7
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/fixtures/BaseTest.java +87 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/{pages → pageObjects}/BasePage.java +38 -17
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/HomePage.java +32 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/LoginPage.java +69 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pageObjects/ShellPage.java +34 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/services/ApiClient.java +93 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/setup/AuthSetup.java +125 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/testData/TestData.java +88 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/api/SessionTest.java +23 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/ui/SignInTest.java +46 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/unit/UtilsTest.java +34 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/AutomationError.java +18 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Case.java +20 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/CaseTransformer.java +54 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Dates.java +42 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/FormFill.java +25 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Log.java +45 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/MissingSettingError.java +13 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/RandomData.java +41 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/Redact.java +33 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/utils/TestDescription.java +25 -0
- package/.claude/skills/selenium/templates/java-testng/src/test/resources/testData/testData.properties +11 -0
- package/.claude/skills/selenium/templates/java-testng/testng.xml +15 -5
- package/.claude/skills/selenium/templates/python-pytest/.env.example +12 -0
- package/.claude/skills/selenium/templates/python-pytest/conftest.py +63 -12
- package/.claude/skills/selenium/templates/python-pytest/gitignore +7 -2
- package/.claude/skills/selenium/templates/python-pytest/page_objects/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/base_page.py +17 -20
- package/.claude/skills/selenium/templates/python-pytest/page_objects/home_page.py +17 -0
- package/.claude/skills/selenium/templates/python-pytest/{pages → page_objects}/login_page.py +12 -14
- package/.claude/skills/selenium/templates/python-pytest/page_objects/shell_page.py +16 -0
- package/.claude/skills/selenium/templates/python-pytest/pytest.ini +6 -2
- package/.claude/skills/selenium/templates/python-pytest/requirements.txt +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/desc/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/desc/sign_in_desc.py +27 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/test_data/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/resources/test_data/test_data.py +25 -0
- package/.claude/skills/selenium/templates/python-pytest/setup/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/setup/auth.py +60 -0
- package/.claude/skills/selenium/templates/python-pytest/src/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/env.py +68 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/flags.py +40 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/load_env.py +16 -0
- package/.claude/skills/selenium/templates/python-pytest/src/config/paths.py +25 -0
- package/.claude/skills/selenium/templates/python-pytest/src/driver/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_factory.py +11 -18
- package/.claude/skills/selenium/templates/python-pytest/{framework → src/driver}/driver_manager.py +3 -3
- package/.claude/skills/selenium/templates/python-pytest/src/services/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/src/services/api_client.py +89 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/api/test_session.py +11 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/ui/test_sign_in.py +34 -0
- package/.claude/skills/selenium/templates/python-pytest/tests/unit/test_utils.py +32 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/__init__.py +1 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/dates.py +23 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/errors.py +28 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/form_fill.py +29 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/logger.py +40 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/markers.py +6 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/random_data.py +35 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/redact.py +30 -0
- package/.claude/skills/selenium/templates/python-pytest/utils/titles.py +53 -0
- package/.claude/skills/self-healing/SKILL.md +1 -1
- package/.claude/skills/test-design/SKILL.md +1 -1
- package/.claude/skills/ui-observation/SKILL.md +7 -6
- package/.claude/skills/ui-observation/references/login-methods.md +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor/commands/orion.md +1 -1
- package/.gemini/commands/orion.toml +2 -2
- package/.github/prompts/orion.prompt.md +2 -2
- package/.windsurf/workflows/orion.md +2 -2
- package/AGENTS.md +1 -1
- package/README.md +23 -3
- package/assets/architecture.svg +104 -0
- package/hosts/gemini-extension/gemini-extension.json +1 -1
- package/package.json +2 -1
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/Cases.java +0 -37
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/data/SignInData.java +0 -25
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/flows/SignInFlow.java +0 -34
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/framework/Account.java +0 -19
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/HomeScreen.java +0 -36
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/screens/LoginScreen.java +0 -57
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/BaseTest.java +0 -33
- package/.claude/skills/appium/templates/project-java/src/test/java/automation/tests/SmokeTest.java +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiClient.cs +0 -61
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiConfig.cs +0 -61
- package/.claude/skills/httpclient/templates/csharp-nunit/Api/ApiError.cs +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/Cases.cs +0 -41
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/HealthData.cs +0 -11
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductBuilder.cs +0 -16
- package/.claude/skills/httpclient/templates/csharp-nunit/Data/ProductsData.cs +0 -17
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/HealthTests.cs +0 -18
- package/.claude/skills/httpclient/templates/csharp-nunit/Tests/ProductsTests.cs +0 -48
- package/.claude/skills/k6/templates/project/data/builders.js +0 -8
- package/.claude/skills/karate/templates/java-junit5/src/test/java/api/products.feature +0 -33
- package/.claude/skills/pact/templates/project/test/contract/products.contract.test.js +0 -45
- package/.claude/skills/playwright/templates/dotnet/Components/AccountMenu.cs +0 -23
- package/.claude/skills/playwright/templates/dotnet/Data/Cases.cs +0 -43
- package/.claude/skills/playwright/templates/dotnet/Data/SignInData.cs +0 -24
- package/.claude/skills/playwright/templates/dotnet/Flows/SignInFlow.cs +0 -51
- package/.claude/skills/playwright/templates/dotnet/Framework/AutomationError.cs +0 -17
- package/.claude/skills/playwright/templates/dotnet/Framework/Config.cs +0 -91
- package/.claude/skills/playwright/templates/dotnet/Pages/BasePage.cs +0 -57
- package/.claude/skills/playwright/templates/dotnet/Pages/HomePage.cs +0 -26
- package/.claude/skills/playwright/templates/dotnet/Pages/LoginPage.cs +0 -45
- package/.claude/skills/playwright/templates/dotnet/Tests/SmokeTests.cs +0 -47
- package/.claude/skills/playwright/templates/javascript/src/components/account-menu.component.js +0 -30
- package/.claude/skills/playwright/templates/javascript/src/config.js +0 -53
- package/.claude/skills/playwright/templates/javascript/src/data/accounts.js +0 -23
- package/.claude/skills/playwright/templates/javascript/src/data/cases.js +0 -49
- package/.claude/skills/playwright/templates/javascript/src/data/sign-in.data.js +0 -12
- package/.claude/skills/playwright/templates/javascript/src/flows/sign-in.flow.js +0 -53
- package/.claude/skills/playwright/templates/javascript/src/pages/base.page.js +0 -59
- package/.claude/skills/playwright/templates/javascript/src/pages/home.page.js +0 -31
- package/.claude/skills/playwright/templates/javascript/src/pages/login.page.js +0 -56
- package/.claude/skills/playwright/templates/javascript/tests/fixtures.js +0 -20
- package/.claude/skills/playwright/templates/javascript/tests/smoke.spec.js +0 -22
- package/.claude/skills/playwright/templates/project/src/components/account-menu.component.ts +0 -27
- package/.claude/skills/playwright/templates/project/src/config.ts +0 -56
- package/.claude/skills/playwright/templates/project/src/data/accounts.ts +0 -21
- package/.claude/skills/playwright/templates/project/src/data/cases.ts +0 -55
- package/.claude/skills/playwright/templates/project/src/data/sign-in.data.ts +0 -10
- package/.claude/skills/playwright/templates/project/src/flows/sign-in.flow.ts +0 -51
- package/.claude/skills/playwright/templates/project/src/pages/base.page.ts +0 -52
- package/.claude/skills/playwright/templates/project/src/pages/home.page.ts +0 -30
- package/.claude/skills/playwright/templates/project/src/pages/login.page.ts +0 -53
- package/.claude/skills/playwright/templates/project/tests/fixtures.ts +0 -25
- package/.claude/skills/playwright/templates/project/tests/smoke.spec.ts +0 -22
- package/.claude/skills/playwright/templates/python/components/__init__.py +0 -1
- package/.claude/skills/playwright/templates/python/components/account_menu.py +0 -22
- package/.claude/skills/playwright/templates/python/data/accounts.py +0 -14
- package/.claude/skills/playwright/templates/python/data/cases.py +0 -33
- package/.claude/skills/playwright/templates/python/data/sign_in_data.py +0 -9
- package/.claude/skills/playwright/templates/python/flows/sign_in.py +0 -63
- package/.claude/skills/playwright/templates/python/pages/base_page.py +0 -51
- package/.claude/skills/playwright/templates/python/pages/home_page.py +0 -21
- package/.claude/skills/playwright/templates/python/pages/login_page.py +0 -40
- package/.claude/skills/playwright/templates/python/tests/test_smoke.py +0 -26
- package/.claude/skills/quality-checks/templates/playwright-ts/src/pages/scanned.page.ts +0 -16
- package/.claude/skills/quality-checks/templates/playwright-ts/tests/quality.spec.ts +0 -58
- package/.claude/skills/requests/templates/python-pytest/api/config.py +0 -43
- package/.claude/skills/requests/templates/python-pytest/api/errors.py +0 -15
- package/.claude/skills/requests/templates/python-pytest/data/builders.py +0 -16
- package/.claude/skills/requests/templates/python-pytest/data/cases.py +0 -30
- package/.claude/skills/requests/templates/python-pytest/data/health_data.py +0 -6
- package/.claude/skills/requests/templates/python-pytest/data/products_data.py +0 -10
- package/.claude/skills/requests/templates/python-pytest/tests/test_health.py +0 -12
- package/.claude/skills/requests/templates/python-pytest/tests/test_products.py +0 -25
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiError.java +0 -18
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/ApiSpec.java +0 -29
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/api/HealthApi.java +0 -21
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/Cases.java +0 -45
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/HealthData.java +0 -12
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/data/ProductsData.java +0 -16
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/HealthTest.java +0 -15
- package/.claude/skills/rest-assured/templates/java-testng/src/test/java/automation/tests/ProductsTest.java +0 -37
- package/.claude/skills/selenium/templates/csharp-nunit/Components/AccountMenu.cs +0 -26
- package/.claude/skills/selenium/templates/csharp-nunit/Data/Cases.cs +0 -43
- package/.claude/skills/selenium/templates/csharp-nunit/Data/SignInData.cs +0 -24
- package/.claude/skills/selenium/templates/csharp-nunit/Flows/SignInFlow.cs +0 -51
- package/.claude/skills/selenium/templates/csharp-nunit/Framework/AutomationError.cs +0 -17
- package/.claude/skills/selenium/templates/csharp-nunit/Framework/DriverManager.cs +0 -26
- package/.claude/skills/selenium/templates/csharp-nunit/Pages/HomePage.cs +0 -28
- package/.claude/skills/selenium/templates/csharp-nunit/Pages/LoginPage.cs +0 -58
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/BaseTest.cs +0 -22
- package/.claude/skills/selenium/templates/csharp-nunit/Tests/SmokeTests.cs +0 -37
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/components/AccountMenu.java +0 -37
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/Cases.java +0 -48
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/data/SignInData.java +0 -36
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/flows/SignInFlow.java +0 -60
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/framework/Account.java +0 -19
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/HomePage.java +0 -45
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/pages/LoginPage.java +0 -78
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/BaseTest.java +0 -33
- package/.claude/skills/selenium/templates/java-testng/src/test/java/automation/tests/SmokeTest.java +0 -33
- package/.claude/skills/selenium/templates/python-pytest/components/__init__.py +0 -1
- package/.claude/skills/selenium/templates/python-pytest/components/account_menu.py +0 -19
- package/.claude/skills/selenium/templates/python-pytest/data/accounts.py +0 -14
- package/.claude/skills/selenium/templates/python-pytest/data/cases.py +0 -33
- package/.claude/skills/selenium/templates/python-pytest/data/sign_in_data.py +0 -9
- package/.claude/skills/selenium/templates/python-pytest/flows/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/flows/sign_in.py +0 -61
- package/.claude/skills/selenium/templates/python-pytest/framework/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/framework/config.py +0 -90
- package/.claude/skills/selenium/templates/python-pytest/pages/__init__.py +0 -0
- package/.claude/skills/selenium/templates/python-pytest/pages/home_page.py +0 -23
- package/.claude/skills/selenium/templates/python-pytest/tests/test_smoke.py +0 -25
- /package/.claude/skills/karate/templates/java-junit5/src/test/java/{api → tests/api}/delete-product.feature +0 -0
- /package/.claude/skills/playwright/templates/{python/data/__init__.py → dotnet/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/{python/flows/__init__.py → javascript/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/{python/framework/__init__.py → project/auth/.gitkeep} +0 -0
- /package/.claude/skills/playwright/templates/project/{src → utils}/errors.ts +0 -0
- /package/.claude/skills/playwright/templates/python/{pages/__init__.py → auth/.gitkeep} +0 -0
- /package/.claude/skills/quality-checks/templates/playwright-ts/src/checks/{page-health.ts → pageHealth.ts} +0 -0
- /package/.claude/skills/quality-checks/templates/playwright-ts/src/{api/graphql.ts → services/graphqlClient.ts} +0 -0
- /package/.claude/skills/{requests/templates/python-pytest/api/__init__.py → selenium/templates/csharp-nunit/auth/.gitkeep} +0 -0
- /package/.claude/skills/{requests/templates/python-pytest/data/__init__.py → selenium/templates/java-testng/auth/.gitkeep} +0 -0
- /package/.claude/skills/selenium/templates/python-pytest/{data/__init__.py → auth/.gitkeep} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""The suite's logger: use it instead of `print`, so every line is levelled (`LOG_LEVEL`) and secrets are masked."""
|
|
2
|
+
from datetime import datetime, timezone
|
|
3
|
+
|
|
4
|
+
from src.config import flags
|
|
5
|
+
from utils.redact import redact
|
|
6
|
+
|
|
7
|
+
LEVELS = ["error", "warn", "info", "debug"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _write(level: str, message: str) -> None:
|
|
11
|
+
"""Print one log line when its level is enabled, with secrets masked.
|
|
12
|
+
|
|
13
|
+
Args:
|
|
14
|
+
level: One of LEVELS.
|
|
15
|
+
message: The message.
|
|
16
|
+
"""
|
|
17
|
+
current = flags.log_level() if flags.log_level() in LEVELS else "info"
|
|
18
|
+
if LEVELS.index(level) > LEVELS.index(current):
|
|
19
|
+
return
|
|
20
|
+
print(f"{datetime.now(timezone.utc).isoformat()} {level.upper()} {redact(message)}", flush=True)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def error(message: str) -> None:
|
|
24
|
+
"""Log what failed."""
|
|
25
|
+
_write("error", message)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def warn(message: str) -> None:
|
|
29
|
+
"""Log what looks wrong but didn't fail."""
|
|
30
|
+
_write("warn", message)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def info(message: str) -> None:
|
|
34
|
+
"""Log a step worth seeing in a normal run."""
|
|
35
|
+
_write("info", message)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def debug(message: str) -> None:
|
|
39
|
+
"""Log detail for debugging only."""
|
|
40
|
+
_write("debug", message)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"""Marks tests share."""
|
|
2
|
+
import pytest
|
|
3
|
+
|
|
4
|
+
# A signed-out test: @SIGNED_OUT on the test (or class) starts it without the saved session (only tests about signing
|
|
5
|
+
# in or out need it). It overrides the context options conftest.py gives every browser test.
|
|
6
|
+
SIGNED_OUT = pytest.mark.browser_context_args(storage_state=None)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @toolkit: shared helpers kept for stories to reuse; reuse or extend them before writing a new one.
|
|
2
|
+
"""Run-unique values for data a test creates, so repeated and parallel runs never collide with each other's data.
|
|
3
|
+
(Named `random_data`, not `random`, so it never hides Python's own module.)"""
|
|
4
|
+
import secrets
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def unique_suffix(length: int = 6) -> str:
|
|
8
|
+
"""Return a short suffix unique to this call, e.g. `k3f9a2` (lower-case hex).
|
|
9
|
+
|
|
10
|
+
Args:
|
|
11
|
+
length: Number of characters.
|
|
12
|
+
"""
|
|
13
|
+
return secrets.token_hex((length + 1) // 2)[:length]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def unique_email(base: str = "qa@example.test") -> str:
|
|
17
|
+
"""Return a unique test e-mail address on a reserved domain, or on the user's own base address.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
base: An address the user gave, e.g. `qa.team@company.test`.
|
|
21
|
+
|
|
22
|
+
Returns:
|
|
23
|
+
`name+suffix@domain`.
|
|
24
|
+
"""
|
|
25
|
+
name, domain = base.split("@", 1)
|
|
26
|
+
return f"{name}+{unique_suffix()}@{domain}"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def unique_name(prefix: str) -> str:
|
|
30
|
+
"""Return a unique name with a readable prefix, e.g. `Customer k3f9a2`.
|
|
31
|
+
|
|
32
|
+
Args:
|
|
33
|
+
prefix: What the value is.
|
|
34
|
+
"""
|
|
35
|
+
return f"{prefix} {unique_suffix()}"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Masks secret values before anything is logged or attached: the values of every environment variable whose name
|
|
2
|
+
marks it as a secret (password, token, secret, key, cookie), plus any value passed in."""
|
|
3
|
+
import os
|
|
4
|
+
import re
|
|
5
|
+
from typing import Iterable
|
|
6
|
+
|
|
7
|
+
SECRET_NAME = re.compile(r"(PASSWORD|PASSWD|TOKEN|SECRET|API_KEY|COOKIE|SESSION)", re.IGNORECASE)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _secret_values() -> list:
|
|
11
|
+
"""Return the current secret values from the environment, longest first (values under 4 characters skipped)."""
|
|
12
|
+
values = [v for n, v in os.environ.items() if SECRET_NAME.search(n) and v and len(v) >= 4]
|
|
13
|
+
return sorted(values, key=len, reverse=True)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def redact(text: str, extra: Iterable[str] = ()) -> str:
|
|
17
|
+
"""Replace every secret value in a text with `***`.
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
text: The text to clean.
|
|
21
|
+
extra: More values to mask, e.g. a token read at run time.
|
|
22
|
+
|
|
23
|
+
Returns:
|
|
24
|
+
The text with the secrets masked.
|
|
25
|
+
"""
|
|
26
|
+
out = str(text)
|
|
27
|
+
for value in [*extra, *_secret_values()]:
|
|
28
|
+
if value:
|
|
29
|
+
out = out.replace(value, "***")
|
|
30
|
+
return out
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""Builds a test's id and marks from its description in `resources/desc`, so every result traces back to its case
|
|
2
|
+
id and acceptance criterion, and `-m smoke` / `write` select tests by their description."""
|
|
3
|
+
from dataclasses import dataclass, field
|
|
4
|
+
from typing import List, Optional
|
|
5
|
+
|
|
6
|
+
import pytest
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass(frozen=True)
|
|
10
|
+
class TestDescription:
|
|
11
|
+
"""One test case: id, criterion, story, behaviour, preconditions, steps, expected result, tags."""
|
|
12
|
+
|
|
13
|
+
__test__ = False # a data class, not a test (pytest would otherwise try to collect it)
|
|
14
|
+
|
|
15
|
+
id: str
|
|
16
|
+
ac: str
|
|
17
|
+
title: str
|
|
18
|
+
preconditions: List[str]
|
|
19
|
+
steps: List[str]
|
|
20
|
+
expected: str
|
|
21
|
+
story: Optional[str] = None
|
|
22
|
+
tags: List[str] = field(default_factory=list)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def title_of(d: TestDescription) -> str:
|
|
26
|
+
"""Return the title a test reports under: case id, story, behaviour, e.g. `TS-0 [EA-10] the user is greeted`.
|
|
27
|
+
|
|
28
|
+
Args:
|
|
29
|
+
d: The description.
|
|
30
|
+
"""
|
|
31
|
+
return f"{d.id}{f' [{d.story}]' if d.story else ''} {d.title}"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def case(d: TestDescription):
|
|
35
|
+
"""Decorate a test with its description: the `ac` mark, its tags as marks (`smoke`, `write`), and the title.
|
|
36
|
+
|
|
37
|
+
Args:
|
|
38
|
+
d: The description.
|
|
39
|
+
|
|
40
|
+
Returns:
|
|
41
|
+
A decorator for the test function.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def apply(fn):
|
|
45
|
+
"""Attach the marks and the title to the test function."""
|
|
46
|
+
fn = pytest.mark.ac(d.ac)(fn)
|
|
47
|
+
for tag in d.tags:
|
|
48
|
+
fn = getattr(pytest.mark, tag.lstrip("@"))(fn)
|
|
49
|
+
fn.__doc__ = title_of(d)
|
|
50
|
+
fn.test_description = d # conftest.py adds the id to `-k` keywords and the title to the report
|
|
51
|
+
return fn
|
|
52
|
+
|
|
53
|
+
return apply
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: quality-checks
|
|
3
|
-
description: "Adds optional quality checks to a web suite, only when the user chose them on the setup card: accessibility (axe-core WCAG A/AA scan), console errors and broken links, a page-load budget, visual comparison against an approved screenshot, and GraphQL API calls. Asks the user before every decision that could surprise them (how strict, which known issues, the load budget, approving the screenshot baseline). Use with Playwright
|
|
3
|
+
description: "Adds optional quality checks to a web suite, only when the user chose them on the setup card: accessibility (axe-core WCAG A/AA scan), console errors and broken links, a page-load budget, visual comparison against an approved screenshot, and GraphQL API calls. Asks the user before every decision that could surprise them (how strict, which known issues, the load budget, approving the screenshot baseline). Use with Playwright (JavaScript or TypeScript)."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# quality-checks
|
|
7
7
|
|
|
8
|
-
Optional checks on top of the functional tests. **Offered, never added on their own**, and every decision that turns an existing app problem into a failing test is the user's ([conversation.md](../orion/references/conversation.md), setup card line 6). Measured with Playwright + TypeScript
|
|
8
|
+
Optional checks on top of the functional tests. **Offered, never added on their own**, and every decision that turns an existing app problem into a failing test is the user's ([conversation.md](../orion/references/conversation.md), setup card line 6). Measured with Playwright + TypeScript (2026-10-22, [run record](../../../evals/workflows/runs/2026-10-22-quality-checks.md)) and, on the suite architecture, with Playwright JavaScript and TypeScript (2026-11-12, [run record](../../../evals/workflows/runs/2026-11-12-suite-architecture.md)); other stacks: say "not yet for <stack>".
|
|
9
9
|
|
|
10
10
|
| Check | Catches | Case | Template file |
|
|
11
11
|
|---|---|---|---|
|
|
12
|
-
| Accessibility | WCAG A/AA problems axe-core can detect (missing alt text, unnamed buttons, contrast, labels) | QC-1 | `src/checks/accessibility.ts` |
|
|
13
|
-
| Console errors | `console.error` and uncaught exceptions while the page loads | QC-2 | `src/checks/
|
|
14
|
-
| Broken links | same-origin links answering 400 or more | QC-3 | `src/checks/
|
|
15
|
-
| Load budget | the load event later than the agreed budget (a smoke check, not performance testing) | QC-4 | `src/checks/performance.ts` |
|
|
16
|
-
| Visual | the page differs from its approved screenshot | QC-5 | `tests/quality.spec.ts` (`toHaveScreenshot`) |
|
|
17
|
-
| GraphQL | wrong data, and failures hidden behind HTTP 200 (`errors` in the body) | QC-6, QC-7 | `src/api/graphql.ts` |
|
|
12
|
+
| Accessibility | WCAG A/AA problems axe-core can detect (missing alt text, unnamed buttons, contrast, labels) | QC-1 | `src/checks/accessibility.(js|ts)` |
|
|
13
|
+
| Console errors | `console.error` and uncaught exceptions while the page loads | QC-2 | `src/checks/pageHealth.(js|ts)` |
|
|
14
|
+
| Broken links | same-origin links answering 400 or more | QC-3 | `src/checks/pageHealth.(js|ts)` |
|
|
15
|
+
| Load budget | the load event later than the agreed budget (a smoke check, not performance testing) | QC-4 | `src/checks/performance.(js|ts)` |
|
|
16
|
+
| Visual | the page differs from its approved screenshot | QC-5 | `tests/ui/quality.spec.(js|ts)` (`toHaveScreenshot`) |
|
|
17
|
+
| GraphQL | wrong data, and failures hidden behind HTTP 200 (`errors` in the body) | QC-6, QC-7 | `src/services/graphqlClient.(js|ts)`, `tests/api/graphql.spec.(js|ts)` |
|
|
18
18
|
|
|
19
19
|
Not offered yet (say so in one line if asked): contract testing (Pact), API fuzzing, gRPC, Lighthouse scores, load or stress testing.
|
|
20
20
|
|
|
21
21
|
## Inputs
|
|
22
22
|
- The checks the user chose on the setup card, and the pages they named (default: the pages the story's flow visits)
|
|
23
|
-
- The test project
|
|
23
|
+
- The test project from a Playwright starter: JavaScript (`playwright/templates/javascript`) or TypeScript (`playwright/templates/project`)
|
|
24
24
|
- For GraphQL: the endpoint path and one operation the requirement names
|
|
25
25
|
|
|
26
26
|
## Procedure (one compact block of questions, on the test-case checkpoint)
|
|
@@ -31,8 +31,8 @@ Not offered yet (say so in one line if asked): contract testing (Pact), API fuzz
|
|
|
31
31
|
- Load budget: "Measured 0.4–0.6 s. Budget **3 s** (suggested: generous, test environments vary)?" Never a budget tighter than the measured worst load plus headroom without the user's number.
|
|
32
32
|
- Visual: "Here is the screenshot I'd approve as the reference (path). Use it as the baseline?" The baseline is written only after yes (step 4).
|
|
33
33
|
- GraphQL: the operation and the fields the test will check, with expected values from the requirement.
|
|
34
|
-
3. **Write the tests** from the add-on template (`templates/playwright-ts/`, copied into the test project) with the user's answers in `
|
|
35
|
-
4. **Visual baseline after approval only.** The starter's config sets `updateSnapshots: 'none'`, so a missing baseline fails instead of being saved unseen (measured: with the default, the first run writes it silently). After the user's yes: `npx playwright test -g QC-5 --update-snapshots=missing` (that run reports the write as a failure; the next run is the check). Changing an approved baseline later is changing an expected value: ask first (H8). Baselines are per
|
|
34
|
+
3. **Write the tests** from the add-on template for the project's language (`templates/playwright-js/` or `templates/playwright-ts/`, copied into the test project; it adds `pageObjects/scannedPage`, `src/checks/`, `src/services/graphqlClient`, `resources/desc/quality.desc`, `resources/testData/qualityData` and the specs in `tests/ui` and `tests/api`) with the user's answers in `resources/testData/qualityData`. Add `@axe-core/playwright` at the version pinned in the template README (the confirmed setup card covers installs in the test project).
|
|
35
|
+
4. **Visual baseline after approval only.** The starter's config sets `updateSnapshots: 'none'`, so a missing baseline fails instead of being saved unseen (measured: with the default, the first run writes it silently). After the user's yes: `npx playwright test --project=regression -g QC-5 --update-snapshots=missing` (that run reports the write as a failure; the next run is the check). Changing an approved baseline later is changing an expected value: ask first (H8). Baselines are per project and platform (`Home-regression-linux.png`): CI on another OS needs its own, approved the same way.
|
|
36
36
|
5. **Run and fail-check** like any new test (3 runs, retries off). Fail check per check: a page with a known problem, or a changed expected value, must fail on that check's assertion with a readable message.
|
|
37
37
|
6. **Report** each check in one line in the result, with what it found on the app (e.g. "Accessibility: 2 critical issues on Home reported as defects; test fails on critical/serious").
|
|
38
38
|
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
# Quality checks add-on (Playwright
|
|
1
|
+
# Quality checks add-on (Playwright JavaScript and TypeScript)
|
|
2
2
|
|
|
3
|
-
Copied into a test project made from
|
|
3
|
+
Copied into a test project made from a Playwright starter on the suite architecture: `playwright-js/` into one from `playwright/templates/javascript`, `playwright-ts/` into one from `playwright/templates/project`. Keep the files for the checks the user chose and delete the rest (and their tests and `resources/desc/quality.desc` entries).
|
|
4
4
|
|
|
5
|
-
| File | What |
|
|
5
|
+
| File (`.js` or `.ts`) | What |
|
|
6
6
|
|---|---|
|
|
7
|
-
| `
|
|
8
|
-
| `src/checks/accessibility
|
|
9
|
-
| `src/checks/
|
|
10
|
-
| `src/checks/performance
|
|
11
|
-
| `src/
|
|
12
|
-
| `
|
|
13
|
-
| `
|
|
7
|
+
| `pageObjects/scannedPage` | any page a check scans, at a path from the data; opens through `BasePage.open` |
|
|
8
|
+
| `src/checks/accessibility` | axe-core scan, filter by impact, readable failure text |
|
|
9
|
+
| `src/checks/pageHealth` | console errors, broken same-origin links |
|
|
10
|
+
| `src/checks/performance` | Navigation Timing (load, DOMContentLoaded, first byte) |
|
|
11
|
+
| `src/services/graphqlClient` | one GraphQL operation over HTTP POST, status and body |
|
|
12
|
+
| `resources/testData/qualityData` | the user's answers: pages, accessibility level and impacts, load budget, GraphQL case |
|
|
13
|
+
| `resources/desc/quality.desc` | QC-1 … QC-7 descriptions, tagged `@quality` |
|
|
14
|
+
| `tests/ui/quality.spec` | QC-1 … QC-5 (the `regression` project) |
|
|
15
|
+
| `tests/api/graphql.spec` | QC-6, QC-7 (the `api` project) |
|
|
14
16
|
|
|
15
17
|
Tokens: `{{QC_PAGE_NAME}}`, `{{QC_PAGE_PATH}}`, `{{QC_LOAD_BUDGET_MS}}`, `{{QC_GRAPHQL_PATH}}`, `{{QC_GRAPHQL_KNOWN_ID}}`, `{{QC_GRAPHQL_EXPECTED_NAME}}`, each confirmed with the user.
|
|
16
18
|
|
|
17
19
|
Dependency: `npm install -D @axe-core/playwright@4.14.0` (accessibility only; the version that ran here; look up the current one at init and record it).
|
|
18
20
|
|
|
19
|
-
The
|
|
21
|
+
The starters' configs set `updateSnapshots: 'none'`: a missing screenshot baseline fails instead of being written unseen. After the user approves the screenshot: `npx playwright test --project=regression -g QC-5 --update-snapshots=missing` (baseline `<page>-regression-<platform>.png`).
|
|
20
22
|
|
|
21
|
-
Run here 2026-
|
|
23
|
+
Run here 2026-11-12, both languages, against `evals/fixtures/quality/server.mjs` (an app with no sign-in, so the starter's sign-in parts were removed as its README says): type check exit 0; `suite_check.mjs` 0 findings; 3/3 runs "11 passed" (4 unit, QC-1–QC-5, QC-6–QC-7); on `/issues.html` each check failed on its own assertion (QC-1 button-name and image-alt critical; QC-2 "console.error: Failed to load recommendations: 500"; QC-3 "…/missing.html → HTTP 404"; QC-4 received 1523 ms (TS) and 1529 ms (JS) against 1000); QC-5 on `?promo=1`: "61920 pixels (ratio 0.07 of all image pixels) are different" ([run record](../../../../evals/workflows/runs/2026-11-12-suite-architecture.md)). Earlier layout: [2026-10-22](../../../../evals/workflows/runs/2026-10-22-quality-checks.md).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const { BasePage } = require('./basePage');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Any page a quality check scans, at the path the test data names. It opens through BasePage.open (the suite's one
|
|
6
|
+
* navigation helper) and is ready when the page's main landmark (or body, for pages without one) is visible. It has
|
|
7
|
+
* no actions and no assertions.
|
|
8
|
+
*/
|
|
9
|
+
class ScannedPage extends BasePage {
|
|
10
|
+
/**
|
|
11
|
+
* @param {import('@playwright/test').Page} page The Playwright page this object drives.
|
|
12
|
+
* @param {string} path The page's path relative to `BASE_URL`, from `resources/testData/qualityData.js`.
|
|
13
|
+
*/
|
|
14
|
+
constructor(page, path) {
|
|
15
|
+
super(page);
|
|
16
|
+
this.path = path;
|
|
17
|
+
this.readyMarker = page.locator('main, body').first();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = { ScannedPage };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/*
|
|
3
|
+
* Test descriptions of the quality checks the user chose: one per check. Specs take titles and tags from here and
|
|
4
|
+
* add the scanned page's name. Delete the entries of checks the user didn't choose.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The quality checks' test cases (all read-only, tagged @quality).
|
|
9
|
+
* @type {Record<string, import('../../utils/titles').TestDescription>}
|
|
10
|
+
*/
|
|
11
|
+
const QUALITY = {
|
|
12
|
+
'QC-1': {
|
|
13
|
+
id: 'QC-1', ac: 'QC', tags: ['@quality'],
|
|
14
|
+
title: 'accessibility: no blocking WCAG A/AA violations',
|
|
15
|
+
preconditions: ['The page is open and ready'],
|
|
16
|
+
steps: ['Scan the page with axe-core for the WCAG tags in the quality data'],
|
|
17
|
+
expected: 'No violation with an impact the user chose to fail on',
|
|
18
|
+
},
|
|
19
|
+
'QC-2': {
|
|
20
|
+
id: 'QC-2', ac: 'QC', tags: ['@quality'],
|
|
21
|
+
title: 'no console errors while the page loads',
|
|
22
|
+
preconditions: ['Console errors are recorded from before the page opens'],
|
|
23
|
+
steps: ['Open the page', 'Wait for the load event'],
|
|
24
|
+
expected: 'No console error and no uncaught exception',
|
|
25
|
+
},
|
|
26
|
+
'QC-3': {
|
|
27
|
+
id: 'QC-3', ac: 'QC', tags: ['@quality'],
|
|
28
|
+
title: 'every link on the page resolves',
|
|
29
|
+
preconditions: ['The page is open and ready'],
|
|
30
|
+
steps: ['Request every same-origin link on the page'],
|
|
31
|
+
expected: 'No link answers 400 or more',
|
|
32
|
+
},
|
|
33
|
+
'QC-4': {
|
|
34
|
+
id: 'QC-4', ac: 'QC', tags: ['@quality'],
|
|
35
|
+
title: 'the page loads within the agreed budget',
|
|
36
|
+
preconditions: ['The load budget the user agreed'],
|
|
37
|
+
steps: ['Open the page', 'Read the Navigation Timing entries'],
|
|
38
|
+
expected: 'The load event fires within the budget',
|
|
39
|
+
},
|
|
40
|
+
'QC-5': {
|
|
41
|
+
id: 'QC-5', ac: 'QC', tags: ['@quality'],
|
|
42
|
+
title: 'the page looks the same as its approved screenshot',
|
|
43
|
+
preconditions: ['A screenshot baseline the user approved'],
|
|
44
|
+
steps: ['Open the page', 'Take a full-page screenshot with animations off'],
|
|
45
|
+
expected: 'It matches the approved baseline',
|
|
46
|
+
},
|
|
47
|
+
'QC-6': {
|
|
48
|
+
id: 'QC-6', ac: 'QC', tags: ['@quality'],
|
|
49
|
+
title: 'the product query returns the product and no errors',
|
|
50
|
+
preconditions: ['A product id the API has'],
|
|
51
|
+
steps: ['POST the query with the known id'],
|
|
52
|
+
expected: 'HTTP 200, no errors, the expected product name',
|
|
53
|
+
},
|
|
54
|
+
'QC-7': {
|
|
55
|
+
id: 'QC-7', ac: 'QC', tags: ['@quality'],
|
|
56
|
+
title: 'an unknown product id comes back as a GraphQL error, not as a product',
|
|
57
|
+
preconditions: ['A product id the API does not have'],
|
|
58
|
+
steps: ['POST the query with the unknown id'],
|
|
59
|
+
expected: 'No product and at least one error',
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
module.exports = { QUALITY };
|
package/.claude/skills/quality-checks/templates/playwright-js/resources/testData/qualityData.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/*
|
|
3
|
+
* Test data of the quality checks the user chose on the setup card, next to the suite's `testData.js`. Each value
|
|
4
|
+
* here was confirmed with the user: which pages, which accessibility level and which impacts fail a test, the load
|
|
5
|
+
* budget, and the GraphQL operation.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The pages to scan (each one the user confirmed): a short name for test titles and the path relative to BASE_URL.
|
|
10
|
+
* @type {{ name: string, path: string }[]}
|
|
11
|
+
*/
|
|
12
|
+
const pages = [{ name: '{{QC_PAGE_NAME}}', path: '{{QC_PAGE_PATH}}' }];
|
|
13
|
+
|
|
14
|
+
/** Accessibility: the WCAG rule tags to run, and the impact levels that fail a test (the user's choice). */
|
|
15
|
+
const accessibility = {
|
|
16
|
+
tags: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'],
|
|
17
|
+
failOn: ['serious', 'critical'],
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** Load budget in milliseconds for the load event on the test environment (the user's number, with headroom). */
|
|
21
|
+
const loadBudgetMs = {{QC_LOAD_BUDGET_MS}};
|
|
22
|
+
|
|
23
|
+
/** GraphQL: endpoint path, one operation, a known id and one the API doesn't have. */
|
|
24
|
+
const graphqlCase = {
|
|
25
|
+
path: '{{QC_GRAPHQL_PATH}}',
|
|
26
|
+
query: 'query Product($id: ID!) { product(id: $id) { name stock } }',
|
|
27
|
+
knownId: '{{QC_GRAPHQL_KNOWN_ID}}',
|
|
28
|
+
expectedName: '{{QC_GRAPHQL_EXPECTED_NAME}}',
|
|
29
|
+
unknownId: 'no-such-id',
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
module.exports = { pages, accessibility, loadBudgetMs, graphqlCase };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const { default: AxeBuilder } = require('@axe-core/playwright');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One accessibility violation, reduced to what identifies it (rule, impact and the elements it was found on).
|
|
6
|
+
* @typedef {object} ViolationSummary
|
|
7
|
+
* @property {string} rule The axe rule id, e.g. `image-alt`.
|
|
8
|
+
* @property {string} impact minor, moderate, serious or critical.
|
|
9
|
+
* @property {string} help What the rule asks for.
|
|
10
|
+
* @property {string[]} targets Selectors of the elements it was found on.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Scans the open page with axe-core for the WCAG rules named in the test data.
|
|
15
|
+
* Automated scans find only part of the accessibility problems; a manual review is still needed (Playwright docs,
|
|
16
|
+
* "Accessibility testing").
|
|
17
|
+
* @param {import('@playwright/test').Page} page The page, already opened and ready.
|
|
18
|
+
* @param {string[]} tags axe rule tags, e.g. `wcag2a`, `wcag2aa`.
|
|
19
|
+
* @returns {Promise<ViolationSummary[]>} Every violation, summarised.
|
|
20
|
+
*/
|
|
21
|
+
async function scanAccessibility(page, tags) {
|
|
22
|
+
const results = await new AxeBuilder({ page }).withTags(tags).analyze();
|
|
23
|
+
return results.violations.map((v) => ({
|
|
24
|
+
rule: v.id,
|
|
25
|
+
impact: v.impact ?? 'unknown',
|
|
26
|
+
help: v.help,
|
|
27
|
+
targets: v.nodes.map((n) => n.target.join(' ')),
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The violations at or above the impact levels the user chose to fail on (by default serious and critical).
|
|
33
|
+
* @param {ViolationSummary[]} violations The scan's violations.
|
|
34
|
+
* @param {string[]} failOn Impact levels that fail the test.
|
|
35
|
+
* @returns {ViolationSummary[]} The violations that fail it.
|
|
36
|
+
*/
|
|
37
|
+
function failing(violations, failOn) {
|
|
38
|
+
return violations.filter((v) => failOn.includes(v.impact));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* A short text of each violation for a failure message: rule, impact and where.
|
|
43
|
+
* @param {ViolationSummary[]} violations The violations to describe.
|
|
44
|
+
* @returns {string} One line per violation.
|
|
45
|
+
*/
|
|
46
|
+
function describeViolations(violations) {
|
|
47
|
+
return violations.map((v) => `${v.rule} (${v.impact}): ${v.help} at ${v.targets.join(', ')}`).join('\n');
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = { scanAccessibility, failing, describeViolations };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/**
|
|
3
|
+
* Starts recording the page's console errors and uncaught exceptions. Call it before the page opens.
|
|
4
|
+
* @param {import('@playwright/test').Page} page The Playwright page.
|
|
5
|
+
* @returns {string[]} The list the page fills as errors happen (read it after the page is ready).
|
|
6
|
+
*/
|
|
7
|
+
function recordConsoleErrors(page) {
|
|
8
|
+
/** @type {string[]} */
|
|
9
|
+
const errors = [];
|
|
10
|
+
page.on('console', (msg) => {
|
|
11
|
+
if (msg.type() === 'error') errors.push(`console.error: ${msg.text()}`);
|
|
12
|
+
});
|
|
13
|
+
page.on('pageerror', (err) => errors.push(`uncaught: ${err.message}`));
|
|
14
|
+
return errors;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Checks every same-origin link on the open page and returns the ones that answer 400 or more.
|
|
19
|
+
* Other sites' links are left out: their availability isn't this app's behaviour.
|
|
20
|
+
* @param {import('@playwright/test').Page} page The page, already opened and ready.
|
|
21
|
+
* @param {import('@playwright/test').APIRequestContext} request Playwright's request context (it carries the
|
|
22
|
+
* suite's base URL and browser login).
|
|
23
|
+
* @returns {Promise<string[]>} `url → HTTP status` for each broken link.
|
|
24
|
+
*/
|
|
25
|
+
async function brokenLinks(page, request) {
|
|
26
|
+
const origin = new URL(page.url()).origin;
|
|
27
|
+
const hrefs = await page.locator('a[href]').evaluateAll((links) => links.map((a) => /** @type {HTMLAnchorElement} */ (a).href));
|
|
28
|
+
const sameOrigin = [...new Set(hrefs)].filter((h) => h.startsWith(origin));
|
|
29
|
+
/** @type {string[]} */
|
|
30
|
+
const broken = [];
|
|
31
|
+
for (const href of sameOrigin) {
|
|
32
|
+
const response = await request.get(href, { maxRedirects: 5 });
|
|
33
|
+
if (response.status() >= 400) broken.push(`${href} → HTTP ${response.status()}`);
|
|
34
|
+
}
|
|
35
|
+
return broken;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { recordConsoleErrors, brokenLinks };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/**
|
|
3
|
+
* Reads the navigation's timings after the load event, in milliseconds from the start of navigation. A budget check
|
|
4
|
+
* on these is a smoke check for slow pages on the test environment, not a performance test: numbers vary with the
|
|
5
|
+
* machine and network, so budgets need headroom.
|
|
6
|
+
* @param {import('@playwright/test').Page} page The page, opened with `waitUntil: 'load'` or after it.
|
|
7
|
+
* @returns {Promise<{ responseStart: number, domContentLoaded: number, load: number }>} The timings.
|
|
8
|
+
*/
|
|
9
|
+
async function loadTimings(page) {
|
|
10
|
+
await page.waitForLoadState('load');
|
|
11
|
+
return page.evaluate(() => {
|
|
12
|
+
const nav = /** @type {PerformanceNavigationTiming} */ (performance.getEntriesByType('navigation')[0]);
|
|
13
|
+
return {
|
|
14
|
+
responseStart: Math.round(nav.responseStart),
|
|
15
|
+
domContentLoaded: Math.round(nav.domContentLoadedEventEnd),
|
|
16
|
+
load: Math.round(nav.loadEventEnd),
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = { loadTimings };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/**
|
|
3
|
+
* What a GraphQL call returned: the HTTP status and the parsed body (`data` and, when something failed, `errors`).
|
|
4
|
+
* @typedef {object} GraphQLResult
|
|
5
|
+
* @property {number} status The HTTP status.
|
|
6
|
+
* @property {any} [data] The operation's data, or null.
|
|
7
|
+
* @property {{ message: string, path?: string[] }[]} [errors] What failed, when something did.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Sends one GraphQL operation as an HTTP POST with JSON (GraphQL over HTTP). Many servers answer 200 even when the
|
|
12
|
+
* operation failed and put the failure in `errors`, so tests check `errors` as well as the status.
|
|
13
|
+
* @param {import('@playwright/test').APIRequestContext} request Playwright's request context.
|
|
14
|
+
* @param {string} path The endpoint's path relative to the base URL, from the test data.
|
|
15
|
+
* @param {string} query The operation text, from the test data.
|
|
16
|
+
* @param {Record<string, unknown>} variables Its variables.
|
|
17
|
+
* @returns {Promise<GraphQLResult>} The status and body.
|
|
18
|
+
*/
|
|
19
|
+
async function graphql(request, path, query, variables) {
|
|
20
|
+
const response = await request.post(path, {
|
|
21
|
+
data: { query, variables },
|
|
22
|
+
headers: { accept: 'application/graphql-response+json, application/json;q=0.9' },
|
|
23
|
+
});
|
|
24
|
+
const body = await response.json();
|
|
25
|
+
return { status: response.status(), ...body };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
module.exports = { graphql };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const { QUALITY } = require('../../resources/desc/quality.desc');
|
|
3
|
+
const { graphqlCase } = require('../../resources/testData/qualityData');
|
|
4
|
+
const { graphql } = require('../../src/services/graphqlClient');
|
|
5
|
+
const { titleOf, tagsOf } = require('../../utils/titles');
|
|
6
|
+
const { test, expect } = require('../../fixtures');
|
|
7
|
+
|
|
8
|
+
test.describe('Quality checks: GraphQL', () => {
|
|
9
|
+
const d6 = QUALITY['QC-6'];
|
|
10
|
+
test(titleOf(d6), tagsOf(d6), async ({ request }) => {
|
|
11
|
+
const result = await graphql(request, graphqlCase.path, graphqlCase.query, { id: graphqlCase.knownId });
|
|
12
|
+
expect(result.status).toBe(200);
|
|
13
|
+
expect(result.errors).toBeUndefined();
|
|
14
|
+
expect(result.data?.product?.name).toBe(graphqlCase.expectedName);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const d7 = QUALITY['QC-7'];
|
|
18
|
+
test(titleOf(d7), tagsOf(d7), async ({ request }) => {
|
|
19
|
+
const result = await graphql(request, graphqlCase.path, graphqlCase.query, { id: graphqlCase.unknownId });
|
|
20
|
+
expect(result.data?.product ?? null).toBeNull();
|
|
21
|
+
expect(result.errors?.length ?? 0).toBeGreaterThan(0);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
const { describeViolations, failing, scanAccessibility } = require('../../src/checks/accessibility');
|
|
3
|
+
const { brokenLinks, recordConsoleErrors } = require('../../src/checks/pageHealth');
|
|
4
|
+
const { loadTimings } = require('../../src/checks/performance');
|
|
5
|
+
const { QUALITY } = require('../../resources/desc/quality.desc');
|
|
6
|
+
const { accessibility, loadBudgetMs, pages } = require('../../resources/testData/qualityData');
|
|
7
|
+
const { ScannedPage } = require('../../pageObjects/scannedPage');
|
|
8
|
+
const { titleOf, tagsOf } = require('../../utils/titles');
|
|
9
|
+
const { test, expect } = require('../../fixtures');
|
|
10
|
+
|
|
11
|
+
for (const target of pages) {
|
|
12
|
+
test.describe(`Quality checks: ${target.name}`, () => {
|
|
13
|
+
const d1 = QUALITY['QC-1'];
|
|
14
|
+
test(`${titleOf(d1)} (fail on ${accessibility.failOn.join(', ')}) [${target.name}]`, tagsOf(d1), async ({ page }) => {
|
|
15
|
+
await new ScannedPage(page, target.path).open();
|
|
16
|
+
const violations = await scanAccessibility(page, accessibility.tags);
|
|
17
|
+
const blocking = failing(violations, accessibility.failOn);
|
|
18
|
+
await test.info().attach('accessibility-violations', { body: describeViolations(violations) || 'none', contentType: 'text/plain' });
|
|
19
|
+
expect(blocking, describeViolations(blocking)).toEqual([]);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const d2 = QUALITY['QC-2'];
|
|
23
|
+
test(`${titleOf(d2)} [${target.name}]`, tagsOf(d2), async ({ page }) => {
|
|
24
|
+
const errors = recordConsoleErrors(page);
|
|
25
|
+
await new ScannedPage(page, target.path).open();
|
|
26
|
+
await page.waitForLoadState('load');
|
|
27
|
+
expect(errors).toEqual([]);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
const d3 = QUALITY['QC-3'];
|
|
31
|
+
test(`${titleOf(d3)} [${target.name}]`, tagsOf(d3), async ({ page, request }) => {
|
|
32
|
+
await new ScannedPage(page, target.path).open();
|
|
33
|
+
expect(await brokenLinks(page, request)).toEqual([]);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const d4 = QUALITY['QC-4'];
|
|
37
|
+
test(`${titleOf(d4)} (${loadBudgetMs} ms) [${target.name}]`, tagsOf(d4), async ({ page }) => {
|
|
38
|
+
await new ScannedPage(page, target.path).open();
|
|
39
|
+
const timings = await loadTimings(page);
|
|
40
|
+
await test.info().attach('load-timings', { body: JSON.stringify(timings), contentType: 'application/json' });
|
|
41
|
+
expect(timings.load).toBeLessThanOrEqual(loadBudgetMs);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
const d5 = QUALITY['QC-5'];
|
|
45
|
+
test(`${titleOf(d5)} [${target.name}]`, tagsOf(d5), async ({ page }) => {
|
|
46
|
+
await new ScannedPage(page, target.path).open();
|
|
47
|
+
await expect(page).toHaveScreenshot(`${target.name}.png`, { fullPage: true, animations: 'disabled' });
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Locator, Page } from '@playwright/test';
|
|
2
|
+
import { BasePage } from './basePage';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Any page a quality check scans, at the path the test data names. It opens through BasePage.open (the suite's one
|
|
6
|
+
* navigation helper) and is ready when the page's main landmark (or body, for pages without one) is visible. It has
|
|
7
|
+
* no actions and no assertions.
|
|
8
|
+
*/
|
|
9
|
+
export class ScannedPage extends BasePage {
|
|
10
|
+
protected readonly readyMarker: Locator;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @param page The Playwright page this object drives.
|
|
14
|
+
* @param path The page's path relative to `BASE_URL`, from `resources/testData/qualityData.ts`.
|
|
15
|
+
*/
|
|
16
|
+
constructor(page: Page, protected readonly path: string) {
|
|
17
|
+
super(page);
|
|
18
|
+
this.readyMarker = page.locator('main, body').first();
|
|
19
|
+
}
|
|
20
|
+
}
|