@futdevpro/dynamo-e2e 1.18.9 → 1.18.11
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/CHANGELOG.md +12 -2
- package/LICENSE +21 -0
- package/README.md +3 -0
- package/build/_modules/game/_models/game-contracts.interface.d.ts +82 -0
- package/build/_modules/game/_models/game-contracts.interface.d.ts.map +1 -0
- package/build/_modules/game/_models/game-contracts.interface.js +3 -0
- package/build/_modules/game/_models/game-contracts.interface.js.map +1 -0
- package/build/_modules/game/game-seam.helper.d.ts +40 -0
- package/build/_modules/game/game-seam.helper.d.ts.map +1 -0
- package/build/_modules/game/game-seam.helper.js +254 -0
- package/build/_modules/game/game-seam.helper.js.map +1 -0
- package/build/_modules/game/index.d.ts +4 -0
- package/build/_modules/game/index.d.ts.map +1 -0
- package/build/_modules/game/index.js +20 -0
- package/build/_modules/game/index.js.map +1 -0
- package/build/_modules/game/journey-catalog.validator.d.ts +5 -0
- package/build/_modules/game/journey-catalog.validator.d.ts.map +1 -0
- package/build/_modules/game/journey-catalog.validator.js +244 -0
- package/build/_modules/game/journey-catalog.validator.js.map +1 -0
- package/build/_modules/generators/_collections/form-level-emission.util.d.ts.map +1 -1
- package/build/_modules/generators/_collections/form-level-emission.util.js +8 -0
- package/build/_modules/generators/_collections/form-level-emission.util.js.map +1 -1
- package/build/_modules/generators/_models/form-settings-shape.interface.d.ts +7 -0
- package/build/_modules/generators/_models/form-settings-shape.interface.d.ts.map +1 -1
- package/build/_modules/presets/_collections/playwright-config.factory.d.ts.map +1 -1
- package/build/_modules/presets/_collections/playwright-config.factory.js +30 -1
- package/build/_modules/presets/_collections/playwright-config.factory.js.map +1 -1
- package/build/_modules/presets/_models/interfaces/playwright-config-options.interface.d.ts +13 -0
- package/build/_modules/presets/_models/interfaces/playwright-config-options.interface.d.ts.map +1 -1
- package/build/_modules/presets/_models/interfaces/project-split-options.interface.d.ts +27 -0
- package/build/_modules/presets/_models/interfaces/project-split-options.interface.d.ts.map +1 -0
- package/build/_modules/presets/_models/interfaces/project-split-options.interface.js +3 -0
- package/build/_modules/presets/_models/interfaces/project-split-options.interface.js.map +1 -0
- package/build/_modules/presets/index.d.ts +1 -0
- package/build/_modules/presets/index.d.ts.map +1 -1
- package/build/_modules/presets/index.js.map +1 -1
- package/build/_modules/vqa/generators/ai-agent-readme.template.js +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/package.json +12 -5
- package/.c8rc.json +0 -25
- package/.dynamo/pipeline.cicd.config.json +0 -167
- package/.dynamo/version-bump.config.json +0 -5
- package/.github/workflows/main.yml +0 -35
- package/BUILD.md +0 -36
- package/CONTRIBUTING.md +0 -90
- package/build/_modules/contracts/contracts.spec.d.ts +0 -2
- package/build/_modules/contracts/contracts.spec.d.ts.map +0 -1
- package/build/_modules/contracts/contracts.spec.js +0 -144
- package/build/_modules/contracts/contracts.spec.js.map +0 -1
- package/build/_modules/cwv/cwv-comparison.spec.d.ts +0 -2
- package/build/_modules/cwv/cwv-comparison.spec.d.ts.map +0 -1
- package/build/_modules/cwv/cwv-comparison.spec.js +0 -77
- package/build/_modules/cwv/cwv-comparison.spec.js.map +0 -1
- package/build/_modules/cwv/cwv-diagnose.spec.d.ts +0 -2
- package/build/_modules/cwv/cwv-diagnose.spec.d.ts.map +0 -1
- package/build/_modules/cwv/cwv-diagnose.spec.js +0 -78
- package/build/_modules/cwv/cwv-diagnose.spec.js.map +0 -1
- package/build/_modules/cwv/cwv-suite.generator.spec.d.ts +0 -2
- package/build/_modules/cwv/cwv-suite.generator.spec.d.ts.map +0 -1
- package/build/_modules/cwv/cwv-suite.generator.spec.js +0 -81
- package/build/_modules/cwv/cwv-suite.generator.spec.js.map +0 -1
- package/build/_modules/cwv/cwv-summarize.spec.d.ts +0 -2
- package/build/_modules/cwv/cwv-summarize.spec.d.ts.map +0 -1
- package/build/_modules/cwv/cwv-summarize.spec.js +0 -70
- package/build/_modules/cwv/cwv-summarize.spec.js.map +0 -1
- package/build/_modules/cwv/inp-emit-integration.spec.d.ts +0 -2
- package/build/_modules/cwv/inp-emit-integration.spec.d.ts.map +0 -1
- package/build/_modules/cwv/inp-emit-integration.spec.js +0 -43
- package/build/_modules/cwv/inp-emit-integration.spec.js.map +0 -1
- package/build/_modules/cwv/inp-interaction-driver.spec.d.ts +0 -2
- package/build/_modules/cwv/inp-interaction-driver.spec.d.ts.map +0 -1
- package/build/_modules/cwv/inp-interaction-driver.spec.js +0 -44
- package/build/_modules/cwv/inp-interaction-driver.spec.js.map +0 -1
- package/build/_modules/cwv/inp-script.spec.d.ts +0 -2
- package/build/_modules/cwv/inp-script.spec.d.ts.map +0 -1
- package/build/_modules/cwv/inp-script.spec.js +0 -35
- package/build/_modules/cwv/inp-script.spec.js.map +0 -1
- package/build/_modules/cwv/per-route-thresholds.spec.d.ts +0 -2
- package/build/_modules/cwv/per-route-thresholds.spec.d.ts.map +0 -1
- package/build/_modules/cwv/per-route-thresholds.spec.js +0 -37
- package/build/_modules/cwv/per-route-thresholds.spec.js.map +0 -1
- package/build/_modules/generators/bootstrap.spec.d.ts +0 -2
- package/build/_modules/generators/bootstrap.spec.d.ts.map +0 -1
- package/build/_modules/generators/bootstrap.spec.js +0 -46
- package/build/_modules/generators/bootstrap.spec.js.map +0 -1
- package/build/_modules/generators/cli-runner.spec.d.ts +0 -2
- package/build/_modules/generators/cli-runner.spec.d.ts.map +0 -1
- package/build/_modules/generators/cli-runner.spec.js +0 -93
- package/build/_modules/generators/cli-runner.spec.js.map +0 -1
- package/build/_modules/generators/config-validator.spec.d.ts +0 -2
- package/build/_modules/generators/config-validator.spec.d.ts.map +0 -1
- package/build/_modules/generators/config-validator.spec.js +0 -115
- package/build/_modules/generators/config-validator.spec.js.map +0 -1
- package/build/_modules/generators/doctor.spec.d.ts +0 -2
- package/build/_modules/generators/doctor.spec.d.ts.map +0 -1
- package/build/_modules/generators/doctor.spec.js +0 -68
- package/build/_modules/generators/doctor.spec.js.map +0 -1
- package/build/_modules/generators/field-emission-edge.spec.d.ts +0 -2
- package/build/_modules/generators/field-emission-edge.spec.d.ts.map +0 -1
- package/build/_modules/generators/field-emission-edge.spec.js +0 -164
- package/build/_modules/generators/field-emission-edge.spec.js.map +0 -1
- package/build/_modules/generators/form-suite.generator.spec.d.ts +0 -2
- package/build/_modules/generators/form-suite.generator.spec.d.ts.map +0 -1
- package/build/_modules/generators/form-suite.generator.spec.js +0 -188
- package/build/_modules/generators/form-suite.generator.spec.js.map +0 -1
- package/build/_modules/generators/info.spec.d.ts +0 -2
- package/build/_modules/generators/info.spec.d.ts.map +0 -1
- package/build/_modules/generators/info.spec.js +0 -42
- package/build/_modules/generators/info.spec.js.map +0 -1
- package/build/_modules/generators/json-schema.spec.d.ts +0 -2
- package/build/_modules/generators/json-schema.spec.d.ts.map +0 -1
- package/build/_modules/generators/json-schema.spec.js +0 -81
- package/build/_modules/generators/json-schema.spec.js.map +0 -1
- package/build/_modules/generators/preset-configs.spec.d.ts +0 -2
- package/build/_modules/generators/preset-configs.spec.d.ts.map +0 -1
- package/build/_modules/generators/preset-configs.spec.js +0 -53
- package/build/_modules/generators/preset-configs.spec.js.map +0 -1
- package/build/_modules/generators/test-case-filter-edge.spec.d.ts +0 -2
- package/build/_modules/generators/test-case-filter-edge.spec.d.ts.map +0 -1
- package/build/_modules/generators/test-case-filter-edge.spec.js +0 -105
- package/build/_modules/generators/test-case-filter-edge.spec.js.map +0 -1
- package/build/_modules/generators/viewport-suite.generator.spec.d.ts +0 -2
- package/build/_modules/generators/viewport-suite.generator.spec.d.ts.map +0 -1
- package/build/_modules/generators/viewport-suite.generator.spec.js +0 -59
- package/build/_modules/generators/viewport-suite.generator.spec.js.map +0 -1
- package/build/_modules/generators/wave-2b-emission.spec.d.ts +0 -2
- package/build/_modules/generators/wave-2b-emission.spec.d.ts.map +0 -1
- package/build/_modules/generators/wave-2b-emission.spec.js +0 -115
- package/build/_modules/generators/wave-2b-emission.spec.js.map +0 -1
- package/build/_modules/presets/presets.spec.d.ts +0 -2
- package/build/_modules/presets/presets.spec.d.ts.map +0 -1
- package/build/_modules/presets/presets.spec.js +0 -230
- package/build/_modules/presets/presets.spec.js.map +0 -1
- package/build/_modules/runtime/assertion-helpers.spec.d.ts +0 -2
- package/build/_modules/runtime/assertion-helpers.spec.d.ts.map +0 -1
- package/build/_modules/runtime/assertion-helpers.spec.js +0 -57
- package/build/_modules/runtime/assertion-helpers.spec.js.map +0 -1
- package/build/_modules/runtime/logger.service.spec.d.ts +0 -2
- package/build/_modules/runtime/logger.service.spec.d.ts.map +0 -1
- package/build/_modules/runtime/logger.service.spec.js +0 -61
- package/build/_modules/runtime/logger.service.spec.js.map +0 -1
- package/build/_modules/runtime/login-flow-helper.spec.d.ts +0 -2
- package/build/_modules/runtime/login-flow-helper.spec.d.ts.map +0 -1
- package/build/_modules/runtime/login-flow-helper.spec.js +0 -74
- package/build/_modules/runtime/login-flow-helper.spec.js.map +0 -1
- package/build/_modules/runtime/page-objects.spec.d.ts +0 -2
- package/build/_modules/runtime/page-objects.spec.d.ts.map +0 -1
- package/build/_modules/runtime/page-objects.spec.js +0 -241
- package/build/_modules/runtime/page-objects.spec.js.map +0 -1
- package/build/_modules/runtime/runtime.spec.d.ts +0 -2
- package/build/_modules/runtime/runtime.spec.d.ts.map +0 -1
- package/build/_modules/runtime/runtime.spec.js +0 -73
- package/build/_modules/runtime/runtime.spec.js.map +0 -1
- package/build/_modules/runtime/unique-generator.spec.d.ts +0 -2
- package/build/_modules/runtime/unique-generator.spec.d.ts.map +0 -1
- package/build/_modules/runtime/unique-generator.spec.js +0 -41
- package/build/_modules/runtime/unique-generator.spec.js.map +0 -1
- package/build/_modules/runtime/wave-2b-page-objects.spec.d.ts +0 -2
- package/build/_modules/runtime/wave-2b-page-objects.spec.d.ts.map +0 -1
- package/build/_modules/runtime/wave-2b-page-objects.spec.js +0 -130
- package/build/_modules/runtime/wave-2b-page-objects.spec.js.map +0 -1
- package/build/_modules/vqa/capture-spec.generator.spec.d.ts +0 -2
- package/build/_modules/vqa/capture-spec.generator.spec.d.ts.map +0 -1
- package/build/_modules/vqa/capture-spec.generator.spec.js +0 -126
- package/build/_modules/vqa/capture-spec.generator.spec.js.map +0 -1
- package/build/_modules/vqa/comparison-bundle.generator.spec.d.ts +0 -2
- package/build/_modules/vqa/comparison-bundle.generator.spec.d.ts.map +0 -1
- package/build/_modules/vqa/comparison-bundle.generator.spec.js +0 -130
- package/build/_modules/vqa/comparison-bundle.generator.spec.js.map +0 -1
- package/build/_modules/vqa/finding-validator.spec.d.ts +0 -2
- package/build/_modules/vqa/finding-validator.spec.d.ts.map +0 -1
- package/build/_modules/vqa/finding-validator.spec.js +0 -136
- package/build/_modules/vqa/finding-validator.spec.js.map +0 -1
- package/build/_modules/vqa/manifest-validator.spec.d.ts +0 -2
- package/build/_modules/vqa/manifest-validator.spec.d.ts.map +0 -1
- package/build/_modules/vqa/manifest-validator.spec.js +0 -125
- package/build/_modules/vqa/manifest-validator.spec.js.map +0 -1
- package/build/_modules/vqa/review-bundle.generator.spec.d.ts +0 -2
- package/build/_modules/vqa/review-bundle.generator.spec.d.ts.map +0 -1
- package/build/_modules/vqa/review-bundle.generator.spec.js +0 -166
- package/build/_modules/vqa/review-bundle.generator.spec.js.map +0 -1
- package/build/_modules/vqa/wave-7.spec.d.ts +0 -2
- package/build/_modules/vqa/wave-7.spec.d.ts.map +0 -1
- package/build/_modules/vqa/wave-7.spec.js +0 -203
- package/build/_modules/vqa/wave-7.spec.js.map +0 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/contracts/_collections/index.html +0 -116
- package/coverage/contracts/_collections/index.ts.html +0 -97
- package/coverage/contracts/_collections/utils/index.html +0 -116
- package/coverage/contracts/_collections/utils/test-id.util.ts.html +0 -172
- package/coverage/contracts/_enums/cwv-metric-type.enum.ts.html +0 -145
- package/coverage/contracts/_enums/field-test-case-type.enum.ts.html +0 -394
- package/coverage/contracts/_enums/index.html +0 -191
- package/coverage/contracts/_enums/index.ts.html +0 -100
- package/coverage/contracts/_enums/standard-viewport.enum.ts.html +0 -127
- package/coverage/contracts/_enums/test-expectation-type.enum.ts.html +0 -133
- package/coverage/contracts/_enums/test-run-mode-type.enum.ts.html +0 -130
- package/coverage/contracts/index.html +0 -116
- package/coverage/contracts/index.ts.html +0 -121
- package/coverage/cwv/_collections/cwv-aggregator.util.ts.html +0 -241
- package/coverage/cwv/_collections/cwv-comparison.util.ts.html +0 -355
- package/coverage/cwv/_collections/cwv-diagnose.util.ts.html +0 -553
- package/coverage/cwv/_collections/cwv-emission.util.ts.html +0 -448
- package/coverage/cwv/_collections/cwv-summarize.util.ts.html +0 -325
- package/coverage/cwv/_collections/index.html +0 -206
- package/coverage/cwv/_collections/inp-interaction-script.const.ts.html +0 -304
- package/coverage/cwv/_collections/web-vitals-page-script.const.ts.html +0 -331
- package/coverage/cwv/cwv-suite.generator.ts.html +0 -277
- package/coverage/cwv/index.html +0 -116
- package/coverage/favicon.png +0 -0
- package/coverage/generators/_collections/cli-runner.util.ts.html +0 -919
- package/coverage/generators/_collections/config-validator.util.ts.html +0 -397
- package/coverage/generators/_collections/field-emission.util.ts.html +0 -604
- package/coverage/generators/_collections/form-level-emission.util.ts.html +0 -220
- package/coverage/generators/_collections/index.html +0 -236
- package/coverage/generators/_collections/json-schema.util.ts.html +0 -652
- package/coverage/generators/_collections/preset-configs.const.ts.html +0 -328
- package/coverage/generators/_collections/spec-emission.util.ts.html +0 -298
- package/coverage/generators/_collections/test-case-filter.util.ts.html +0 -523
- package/coverage/generators/_collections/viewport-emission.util.ts.html +0 -313
- package/coverage/generators/form-suite.generator.ts.html +0 -406
- package/coverage/generators/index.html +0 -131
- package/coverage/generators/viewport-suite.generator.ts.html +0 -307
- package/coverage/index.html +0 -266
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/contracts/_collections/index.html +0 -116
- package/coverage/lcov-report/contracts/_collections/index.ts.html +0 -97
- package/coverage/lcov-report/contracts/_collections/utils/index.html +0 -116
- package/coverage/lcov-report/contracts/_collections/utils/test-id.util.ts.html +0 -172
- package/coverage/lcov-report/contracts/_enums/cwv-metric-type.enum.ts.html +0 -145
- package/coverage/lcov-report/contracts/_enums/field-test-case-type.enum.ts.html +0 -394
- package/coverage/lcov-report/contracts/_enums/index.html +0 -191
- package/coverage/lcov-report/contracts/_enums/index.ts.html +0 -100
- package/coverage/lcov-report/contracts/_enums/standard-viewport.enum.ts.html +0 -127
- package/coverage/lcov-report/contracts/_enums/test-expectation-type.enum.ts.html +0 -133
- package/coverage/lcov-report/contracts/_enums/test-run-mode-type.enum.ts.html +0 -130
- package/coverage/lcov-report/contracts/index.html +0 -116
- package/coverage/lcov-report/contracts/index.ts.html +0 -121
- package/coverage/lcov-report/cwv/_collections/cwv-aggregator.util.ts.html +0 -241
- package/coverage/lcov-report/cwv/_collections/cwv-comparison.util.ts.html +0 -355
- package/coverage/lcov-report/cwv/_collections/cwv-diagnose.util.ts.html +0 -553
- package/coverage/lcov-report/cwv/_collections/cwv-emission.util.ts.html +0 -448
- package/coverage/lcov-report/cwv/_collections/cwv-summarize.util.ts.html +0 -325
- package/coverage/lcov-report/cwv/_collections/index.html +0 -206
- package/coverage/lcov-report/cwv/_collections/inp-interaction-script.const.ts.html +0 -304
- package/coverage/lcov-report/cwv/_collections/web-vitals-page-script.const.ts.html +0 -331
- package/coverage/lcov-report/cwv/cwv-suite.generator.ts.html +0 -277
- package/coverage/lcov-report/cwv/index.html +0 -116
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/generators/_collections/cli-runner.util.ts.html +0 -919
- package/coverage/lcov-report/generators/_collections/config-validator.util.ts.html +0 -397
- package/coverage/lcov-report/generators/_collections/field-emission.util.ts.html +0 -604
- package/coverage/lcov-report/generators/_collections/form-level-emission.util.ts.html +0 -220
- package/coverage/lcov-report/generators/_collections/index.html +0 -236
- package/coverage/lcov-report/generators/_collections/json-schema.util.ts.html +0 -652
- package/coverage/lcov-report/generators/_collections/preset-configs.const.ts.html +0 -328
- package/coverage/lcov-report/generators/_collections/spec-emission.util.ts.html +0 -298
- package/coverage/lcov-report/generators/_collections/test-case-filter.util.ts.html +0 -523
- package/coverage/lcov-report/generators/_collections/viewport-emission.util.ts.html +0 -313
- package/coverage/lcov-report/generators/form-suite.generator.ts.html +0 -406
- package/coverage/lcov-report/generators/index.html +0 -131
- package/coverage/lcov-report/generators/viewport-suite.generator.ts.html +0 -307
- package/coverage/lcov-report/index.html +0 -266
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/runtime/_collections/assertion-helpers.util.ts.html +0 -205
- package/coverage/lcov-report/runtime/_collections/index.html +0 -146
- package/coverage/lcov-report/runtime/_collections/unique-generator.util.ts.html +0 -256
- package/coverage/lcov-report/runtime/_collections/wait-helpers.util.ts.html +0 -238
- package/coverage/lcov-report/runtime/_services/dialog-page-object.ts.html +0 -157
- package/coverage/lcov-report/runtime/_services/field-page-object.ts.html +0 -253
- package/coverage/lcov-report/runtime/_services/form-page-object.ts.html +0 -184
- package/coverage/lcov-report/runtime/_services/index.html +0 -236
- package/coverage/lcov-report/runtime/_services/loader-page-object.ts.html +0 -142
- package/coverage/lcov-report/runtime/_services/logger.service.ts.html +0 -385
- package/coverage/lcov-report/runtime/_services/login-flow-helper.base.ts.html +0 -331
- package/coverage/lcov-report/runtime/_services/nav-page-object.ts.html +0 -145
- package/coverage/lcov-report/runtime/_services/toast-page-object.ts.html +0 -130
- package/coverage/lcov-report/runtime/_services/wave-2b-page-objects.ts.html +0 -397
- package/coverage/lcov-report/runtime/index.html +0 -116
- package/coverage/lcov-report/runtime/index.ts.html +0 -178
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov.info +0 -4047
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/runtime/_collections/assertion-helpers.util.ts.html +0 -205
- package/coverage/runtime/_collections/index.html +0 -146
- package/coverage/runtime/_collections/unique-generator.util.ts.html +0 -256
- package/coverage/runtime/_collections/wait-helpers.util.ts.html +0 -238
- package/coverage/runtime/_services/dialog-page-object.ts.html +0 -157
- package/coverage/runtime/_services/field-page-object.ts.html +0 -253
- package/coverage/runtime/_services/form-page-object.ts.html +0 -184
- package/coverage/runtime/_services/index.html +0 -236
- package/coverage/runtime/_services/loader-page-object.ts.html +0 -142
- package/coverage/runtime/_services/logger.service.ts.html +0 -385
- package/coverage/runtime/_services/login-flow-helper.base.ts.html +0 -331
- package/coverage/runtime/_services/nav-page-object.ts.html +0 -145
- package/coverage/runtime/_services/toast-page-object.ts.html +0 -130
- package/coverage/runtime/_services/wave-2b-page-objects.ts.html +0 -397
- package/coverage/runtime/index.html +0 -116
- package/coverage/runtime/index.ts.html +0 -178
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/tmp/coverage-228636-1781075225757-0.json +0 -1
- package/coverage/tmp/coverage-228704-1781075227108-0.json +0 -1
- package/dogfood/PARITY-MATRIX.md +0 -67
- package/dogfood/generated/date-range-field-new.spec.ts +0 -54
- package/dogfood/generated/password-field-new.spec.ts +0 -97
- package/dogfood/generated/radio-select-field-new.spec.ts +0 -69
- package/dogfood/generated/slider-field-new.spec.ts +0 -47
- package/dogfood/generated/text-field-new.spec.ts +0 -0
- package/dogfood/generated-full/checkbox-field-new.spec.ts +0 -56
- package/dogfood/generated-full/date-field-new.spec.ts +0 -71
- package/dogfood/generated-full/date-range-field-new.spec.ts +0 -54
- package/dogfood/generated-full/datetime-field-new.spec.ts +0 -55
- package/dogfood/generated-full/multiselect-field-new.spec.ts +0 -69
- package/dogfood/generated-full/number-field-new.spec.ts +0 -113
- package/dogfood/generated-full/password-field-new.spec.ts +0 -97
- package/dogfood/generated-full/radio-select-field-new.spec.ts +0 -69
- package/dogfood/generated-full/sandbox-viewport-audit.spec.ts +0 -4643
- package/dogfood/generated-full/select-field-new.spec.ts +0 -69
- package/dogfood/generated-full/slider-field-new.spec.ts +0 -47
- package/dogfood/generated-full/slider-range-field-new.spec.ts +0 -54
- package/dogfood/generated-full/text-field-new.spec.ts +0 -0
- package/dogfood/generated-full/textarea-field-new.spec.ts +0 -72
- package/dogfood/sandbox-bootstrap-full.js +0 -248
- package/dogfood/sandbox-bootstrap.js +0 -170
- package/examples/minimal-form/README.md +0 -55
- package/examples/minimal-form/form-config.json +0 -38
- package/examples/multi-form-app/README.md +0 -63
- package/examples/multi-form-app/cwv-config.json +0 -14
- package/examples/multi-form-app/settings/login-form.json +0 -11
- package/examples/multi-form-app/settings/profile-form.json +0 -25
- package/examples/multi-form-app/viewport-config.json +0 -12
- package/logs/cicd-job.json +0 -3
- package/logs/cicd-report.json +0 -3
- package/logs/cicd-status.json +0 -3
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Dynamo-E2E CI/CD Pipeline",
|
|
3
|
-
"outputDir": "./logs/cicd-pipeline",
|
|
4
|
-
"timing": {
|
|
5
|
-
"stepTimeout": "10m",
|
|
6
|
-
"teeMaxRuntime": "10m",
|
|
7
|
-
"stepCooldown": "1s"
|
|
8
|
-
},
|
|
9
|
-
"log": {
|
|
10
|
-
"runtimeMaxBytes": 5242880,
|
|
11
|
-
"trimCheckEveryN": 1000
|
|
12
|
-
},
|
|
13
|
-
"versionBump": {
|
|
14
|
-
"enabled": false
|
|
15
|
-
},
|
|
16
|
-
"report": {
|
|
17
|
-
"fileName": "cicd-report.json",
|
|
18
|
-
"includeLogTail": true,
|
|
19
|
-
"logTailLines": 10000,
|
|
20
|
-
"includeStepLogs": false
|
|
21
|
-
},
|
|
22
|
-
"steps": [
|
|
23
|
-
{
|
|
24
|
-
"_comment": "FR-171 (2026-06-13) — auto-introspect ALL steps' condition.envSet + command ${VAR} refs. Reports PRESENT/MISSING env-vars + which downstream steps will silent-skip. Warning-only by default; fail-fast on the `requireSet` list. Goal: never again silent-skip discord/hot-update without surfacing the missing env at step #1.",
|
|
25
|
-
"label": "validate-secrets",
|
|
26
|
-
"type": "validate-secrets",
|
|
27
|
-
"fatal": false,
|
|
28
|
-
"discord": {
|
|
29
|
-
"emoji": "🔐",
|
|
30
|
-
"name": "Secrets Check",
|
|
31
|
-
"group": "preflight",
|
|
32
|
-
"groupName": "Pre-flight Check",
|
|
33
|
-
"groupEmoji": "🔐"
|
|
34
|
-
},
|
|
35
|
-
"settings": {
|
|
36
|
-
"requireSet": [
|
|
37
|
-
"NPM_TOKEN"
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"label": "discord-start",
|
|
43
|
-
"command": "dc ci-dn-s '{\"appName\":\"Dynamo-E2E\",\"appEmoji\":\"🧪\",\"commitMessage\":\"$COMMIT_MESSAGE\",\"branchName\":\"$GITHUB_REF_NAME\",\"author\":\"$GITHUB_ACTOR\",\"runNumber\":\"$GITHUB_RUN_NUMBER\",\"runId\":\"$GITHUB_RUN_ID\",\"repository\":\"$GITHUB_REPOSITORY\",\"eventName\":\"$GITHUB_EVENT_NAME\",\"eventDateTime\":\"$EVENT_DATETIME\"}'",
|
|
44
|
-
"fatal": false,
|
|
45
|
-
"discord": {
|
|
46
|
-
"hide": true
|
|
47
|
-
},
|
|
48
|
-
"condition": {
|
|
49
|
-
"envSet": [
|
|
50
|
-
"DISCORD_WEBHOOK_ID"
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"label": "pre-flight",
|
|
56
|
-
"type": "pre-flight-check",
|
|
57
|
-
"fatal": true,
|
|
58
|
-
"discord": {
|
|
59
|
-
"emoji": "🔐",
|
|
60
|
-
"name": "Pre-flight Check",
|
|
61
|
-
"group": "preflight",
|
|
62
|
-
"groupName": "Pre-flight Check",
|
|
63
|
-
"groupEmoji": "🔐"
|
|
64
|
-
},
|
|
65
|
-
"settings": {
|
|
66
|
-
"requiredEnvVars": [
|
|
67
|
-
"NPM_TOKEN"
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"label": "install",
|
|
73
|
-
"command": "pnpm i",
|
|
74
|
-
"fatal": true,
|
|
75
|
-
"discord": {
|
|
76
|
-
"hide": true
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"label": "build",
|
|
81
|
-
"command": "npx tsc",
|
|
82
|
-
"fatal": true,
|
|
83
|
-
"discord": {
|
|
84
|
-
"emoji": "🏗️",
|
|
85
|
-
"name": "Build",
|
|
86
|
-
"group": "build-test",
|
|
87
|
-
"groupName": "Build and Test",
|
|
88
|
-
"groupEmoji": "🏗️"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"label": "test",
|
|
93
|
-
"command": "npx jasmine",
|
|
94
|
-
"fatal": true,
|
|
95
|
-
"discord": {
|
|
96
|
-
"emoji": "🧪",
|
|
97
|
-
"name": "Tests",
|
|
98
|
-
"group": "build-test"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"label": "coverage",
|
|
103
|
-
"command": "pnpm run test:coverage",
|
|
104
|
-
"fatal": true,
|
|
105
|
-
"discord": {
|
|
106
|
-
"emoji": "📊",
|
|
107
|
-
"name": "Coverage (>=75%)"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"label": "npm-publish",
|
|
112
|
-
"type": "npm-publish",
|
|
113
|
-
"fatal": false,
|
|
114
|
-
"discord": {
|
|
115
|
-
"emoji": "📦",
|
|
116
|
-
"name": "NPM Publish"
|
|
117
|
-
},
|
|
118
|
-
"condition": {
|
|
119
|
-
"branchMatch": [
|
|
120
|
-
"master"
|
|
121
|
-
],
|
|
122
|
-
"allPassed": [
|
|
123
|
-
"build",
|
|
124
|
-
"test",
|
|
125
|
-
"coverage"
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
"settings": {
|
|
129
|
-
"directory": ".",
|
|
130
|
-
"skipIfPublished": true,
|
|
131
|
-
"retryAttempts": 3,
|
|
132
|
-
"retryDelaySeconds": 30
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"label": "pipeline-report",
|
|
137
|
-
"command": "fdp pipeline-report --report ./logs/cicd-pipeline/cicd-report.json --overseer-secret $OVERSEER_SECRET_KEY --branch $GITHUB_REF_NAME",
|
|
138
|
-
"fatal": false,
|
|
139
|
-
"always": true,
|
|
140
|
-
"discord": {
|
|
141
|
-
"emoji": "📊",
|
|
142
|
-
"name": "Build Report"
|
|
143
|
-
},
|
|
144
|
-
"condition": {
|
|
145
|
-
"envSet": [
|
|
146
|
-
"OVERSEER_SECRET_KEY"
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"label": "discord-result",
|
|
152
|
-
"command": "fdp pipeline-notify --report ./logs/cicd-pipeline/cicd-report.json --config ./.dynamo/pipeline.cicd.config.json --app-name Dynamo-E2E --app-emoji 🧪 --webhook-id $DISCORD_WEBHOOK_ID --webhook-token $DISCORD_WEBHOOK_TOKEN",
|
|
153
|
-
"fatal": false,
|
|
154
|
-
"retryOnFail": 2,
|
|
155
|
-
"retryDelaySec": 5,
|
|
156
|
-
"always": true,
|
|
157
|
-
"discord": {
|
|
158
|
-
"hide": true
|
|
159
|
-
},
|
|
160
|
-
"condition": {
|
|
161
|
-
"envSet": [
|
|
162
|
-
"DISCORD_WEBHOOK_ID"
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# WORKSPACE-WIDE DISABLED (2026-06-19) — per user-request
|
|
2
|
-
# Az Actions-percek megtakarítása miatt; a CICD-t a futdevpro Overseer
|
|
3
|
-
# webhook-rendszere irányítja. A workflow-trigger NEM aktiválódik egyetlen
|
|
4
|
-
# push-ra sem, amíg ez a komment-blokk fent van. Visszaállításhoz töröld
|
|
5
|
-
# a header-blokkot + uncomment minden következő sort (egy '# ' eltávolítás).
|
|
6
|
-
# ═════════════════════════════════════════════════════════════════
|
|
7
|
-
# # =============================================================================
|
|
8
|
-
# # Dynamo-E2E CI/CD — Overseer Pipeline Trigger
|
|
9
|
-
# # =============================================================================
|
|
10
|
-
# # Ez a workflow CSAK egy webhook-ot kuld az Overseer-nek es AZONNAL kilep.
|
|
11
|
-
# # A pipeline-t az Overseer FDP Runner-ek futtatjak (nem a GitHub Actions).
|
|
12
|
-
# #
|
|
13
|
-
# # Az org-szintu GitHub webhook (futdevpro org) automatikusan triggereli az
|
|
14
|
-
# # Overseer-t minden push-ra. Ez a workflow MANUALIS FALLBACK (workflow_dispatch).
|
|
15
|
-
# # =============================================================================
|
|
16
|
-
#
|
|
17
|
-
# name: Trigger Pipeline
|
|
18
|
-
# on:
|
|
19
|
-
# workflow_dispatch:
|
|
20
|
-
# # Az org-szintu GitHub webhook kozvetlenul triggereli az Overseer-t.
|
|
21
|
-
# # Ez a workflow csak manualis fallback (workflow_dispatch).
|
|
22
|
-
#
|
|
23
|
-
# jobs:
|
|
24
|
-
# trigger:
|
|
25
|
-
# name: Overseer Trigger
|
|
26
|
-
# runs-on: ubuntu-latest
|
|
27
|
-
# timeout-minutes: 1
|
|
28
|
-
# steps:
|
|
29
|
-
# - uses: actions/checkout@v4
|
|
30
|
-
#
|
|
31
|
-
# - name: Trigger Overseer Pipeline
|
|
32
|
-
# uses: futdevpro/fdp-github-actions/overseer-trigger@master
|
|
33
|
-
# with:
|
|
34
|
-
# OVERSEER_WEBHOOK_URL: ${{ vars.OVERSEER_URL }}/pipeline-runner/webhook/github
|
|
35
|
-
# OVERSEER_WEBHOOK_SECRET: ${{ secrets.OVERSEER_SECRET_KEY }}
|
package/BUILD.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Build & test — `@futdevpro/dynamo-e2e`
|
|
2
|
-
|
|
3
|
-
## First-time setup
|
|
4
|
-
```bash
|
|
5
|
-
pnpm run prep # installs pnpm + rimraf + jasmine globals + pnpm i
|
|
6
|
-
```
|
|
7
|
-
|
|
8
|
-
## Develop
|
|
9
|
-
```bash
|
|
10
|
-
pnpm run build-base # tsc → ./build
|
|
11
|
-
pnpm test # build-base + jasmine
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Test
|
|
15
|
-
```bash
|
|
16
|
-
pnpm test
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Package
|
|
20
|
-
```bash
|
|
21
|
-
pnpm run build-tgz-cheap # → ../tgz-collection/dynamo-e2e/*.tgz
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Publish
|
|
25
|
-
```bash
|
|
26
|
-
pnpm run build # build-base + test + npm publish
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Versioning
|
|
30
|
-
- Two-digit major (Dynamo convention): `01.00.0`
|
|
31
|
-
- Patches bump by CICD (`feedback_always_commit_push` memory)
|
|
32
|
-
|
|
33
|
-
## CICD
|
|
34
|
-
- Overseer pipeline: `pipeline.cicd.config.json`
|
|
35
|
-
- LDP: `pipeline.config.json`
|
|
36
|
-
- Priority tier: **150** (bedrock-package)
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# Contributing — `@futdevpro/dynamo-e2e`
|
|
2
|
-
|
|
3
|
-
Köszönjük, hogy hozzájárulsz! Ez egy bedrock-package a Dynamo + FDP
|
|
4
|
-
ecosystem-hez. A módosítások N-szeresen fan-out-elnek a consumer-projekteken,
|
|
5
|
-
így minimális defensiveness elvárt.
|
|
6
|
-
|
|
7
|
-
## Setup
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
git clone git@github.com:futdevpro/dynamo-e2e.git
|
|
11
|
-
cd dynamo-e2e
|
|
12
|
-
pnpm run prep
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Develop
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
pnpm run build-base # tsc → ./build
|
|
19
|
-
pnpm test # build + jasmine
|
|
20
|
-
pnpm run test:coverage # build + c8 jasmine — 75/65/75/75 küszöb
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Hozzájárulási checklist
|
|
24
|
-
|
|
25
|
-
A PR-előtt:
|
|
26
|
-
|
|
27
|
-
- [ ] `pnpm test` zöld lokálisan
|
|
28
|
-
- [ ] `pnpm run test:coverage` zöld (mindenhol >75% statements / functions / lines, >65% branches)
|
|
29
|
-
- [ ] Új feature → spec + getting-started + per-fieldtype-test-matrix update
|
|
30
|
-
- [ ] Deterministic emission — `STAMP_BUILT_AT` const, semmilyen `Date.now()` a generator-ban
|
|
31
|
-
- [ ] Pure JavaScript a page-script-ekben (NEM TS — a browser direkt futtatja)
|
|
32
|
-
- [ ] JSDoc minden új public export-on
|
|
33
|
-
- [ ] CHANGELOG.md új section a release-version-nel
|
|
34
|
-
|
|
35
|
-
## Branch-strategy
|
|
36
|
-
|
|
37
|
-
- `master` — kötelező-zöld; CICD-publish-eli
|
|
38
|
-
- `feat/*` — feature branches; PR-rel mergel
|
|
39
|
-
- `fix/*` — bug-fix branches
|
|
40
|
-
- `chore/*` — non-functional changes (docs, deps)
|
|
41
|
-
|
|
42
|
-
## Verziózás
|
|
43
|
-
|
|
44
|
-
- **Major (`MM.x.x`)**: API-break. **NINCS automatikus** — emberi
|
|
45
|
-
decision (lásd MP-07 SP-F példa)
|
|
46
|
-
- **Minor (`MM.mm.0`)**: új feature, additive
|
|
47
|
-
- **Patch (`MM.mm.p`)**: bug-fix, doc-only
|
|
48
|
-
|
|
49
|
-
A `dynamo-cli` `dc bump-version` husky-pre-commit auto-bumpolja a
|
|
50
|
-
patch-szegmenset. Major/minor-bumpot manuálisan kell beállítani a
|
|
51
|
-
`package.json`-ban a commit előtt — ÉS a CHANGELOG-ot is.
|
|
52
|
-
|
|
53
|
-
## A test-case-mátrix-bővítés (Wave-2+)
|
|
54
|
-
|
|
55
|
-
Új field-type-hozzáadás:
|
|
56
|
-
|
|
57
|
-
1. `src/_modules/contracts/_collections/test-case-sets/<type>-field-test-cases.const.ts`
|
|
58
|
-
2. Hozzáfűzd a `FIELD_TYPE_TEST_CASE_REGISTRY`-be
|
|
59
|
-
3. `src/_modules/generators/_collections/field-emission.util.ts` `emitInteraction` + `emitAssertion` dispatch-ágat add hozzá
|
|
60
|
-
4. (Opcionális) `src/_modules/runtime/_services/<type>-page-object.ts` page-object + fixture
|
|
61
|
-
5. Specifikációs `__documentations/per-fieldtype-test-matrix.md` táblát bővíts
|
|
62
|
-
6. Specifikáció `cwv|generators|runtime` modulon test minden új dispatch-ágra
|
|
63
|
-
|
|
64
|
-
## Code style
|
|
65
|
-
|
|
66
|
-
- TypeScript strict-laza (lásd `tsconfig.json`)
|
|
67
|
-
- Hunglish dokumentáció + Hungarian inline-comment (memory: project konvenció)
|
|
68
|
-
- Top-of-file imports (`import` only, NEM `require()`)
|
|
69
|
-
- Naming: `DyE2E_*` per Dynamo-konvenció (DataModel: `_DataModel`, Service: `_Service`, stb.)
|
|
70
|
-
- ESLint: `pnpm lint` (`@futdevpro/dynamo-eslint` config)
|
|
71
|
-
|
|
72
|
-
## CICD
|
|
73
|
-
|
|
74
|
-
- A push automatikusan triggereli az Overseer pipeline-t
|
|
75
|
-
- A `.dynamo/pipeline.cicd.config.json` 9 step-pel:
|
|
76
|
-
discord-start → pre-flight → install → build → test → **coverage** → npm-publish → pipeline-report → discord-result
|
|
77
|
-
- A `coverage` step a 75% küszöb alatti merge-et blokkolja
|
|
78
|
-
- A `npm-publish` step `skipIfPublished: true` — manual `npm publish` is OK
|
|
79
|
-
|
|
80
|
-
## Memory + plan-háló
|
|
81
|
-
|
|
82
|
-
A nagyobb feature-ek a `__documentations/plans/dynamo-e2e-foundation/`
|
|
83
|
-
HYPERPLAN.md + MP-N file-okba kerülnek először. Az implementáció után a
|
|
84
|
-
CHANGELOG.md-be kerül a release-summary.
|
|
85
|
-
|
|
86
|
-
## Kapcsolat
|
|
87
|
-
|
|
88
|
-
- Issues: github.com/futdevpro/dynamo-e2e/issues
|
|
89
|
-
- Maintainer: @itharen (Tahi-Toth Balazs)
|
|
90
|
-
- Discord: #bedrock-builds
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/contracts/contracts.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const index_1 = require("./index");
|
|
4
|
-
describe('| dynamo-e2e | contracts (Layer-A)', () => {
|
|
5
|
-
// ────────────────── Enums ──────────────────
|
|
6
|
-
describe('| Enums', () => {
|
|
7
|
-
it('| DyE2E_FieldTestCase_Type tartalmaz minden curated alapesetet', () => {
|
|
8
|
-
expect(index_1.DyE2E_FieldTestCase_Type.emptyInput).toBe('empty-input');
|
|
9
|
-
expect(index_1.DyE2E_FieldTestCase_Type.oversize).toBe('oversize');
|
|
10
|
-
expect(index_1.DyE2E_FieldTestCase_Type.startAfterEnd).toBe('start-after-end');
|
|
11
|
-
expect(index_1.DyE2E_FieldTestCase_Type.custom).toBe('custom');
|
|
12
|
-
});
|
|
13
|
-
it('| DyE2E_TestExpectation_Type 4 ertekkel', () => {
|
|
14
|
-
expect(Object.values(index_1.DyE2E_TestExpectation_Type).length).toBe(4);
|
|
15
|
-
});
|
|
16
|
-
it('| DyE2E_TestRunMode_Type 3 ertekkel', () => {
|
|
17
|
-
expect(Object.values(index_1.DyE2E_TestRunMode_Type).length).toBe(3);
|
|
18
|
-
});
|
|
19
|
-
it('| DyE2E_CWVMetric_Type tartalmazza a 4 fo metricet', () => {
|
|
20
|
-
expect(index_1.DyE2E_CWVMetric_Type.lcp).toBe('lcp');
|
|
21
|
-
expect(index_1.DyE2E_CWVMetric_Type.cls).toBe('cls');
|
|
22
|
-
expect(index_1.DyE2E_CWVMetric_Type.inp).toBe('inp');
|
|
23
|
-
expect(index_1.DyE2E_CWVMetric_Type.ttfb).toBe('ttfb');
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
// ────────────────── Data-modelek ──────────────────
|
|
27
|
-
describe('| Data-modelek', () => {
|
|
28
|
-
it('| DyE2E_FieldTestCase_DataModel JSON.stringify+parse roundtrip', () => {
|
|
29
|
-
const original = new index_1.DyE2E_FieldTestCase_DataModel({
|
|
30
|
-
id: 'text:empty',
|
|
31
|
-
type: index_1.DyE2E_FieldTestCase_Type.emptyInput,
|
|
32
|
-
description: 'üres',
|
|
33
|
-
inputValue: '',
|
|
34
|
-
expectation: index_1.DyE2E_TestExpectation_Type.valid,
|
|
35
|
-
});
|
|
36
|
-
const json = JSON.stringify(original);
|
|
37
|
-
const restored = new index_1.DyE2E_FieldTestCase_DataModel(JSON.parse(json));
|
|
38
|
-
expect(restored.id).toBe('text:empty');
|
|
39
|
-
expect(restored.type).toBe(index_1.DyE2E_FieldTestCase_Type.emptyInput);
|
|
40
|
-
expect(restored.expectation).toBe(index_1.DyE2E_TestExpectation_Type.valid);
|
|
41
|
-
});
|
|
42
|
-
it('| DyE2E_FieldTestCaseSet_DataModel JSON-roundtrip', () => {
|
|
43
|
-
const set = new index_1.DyE2E_FieldTestCaseSet_DataModel({
|
|
44
|
-
fieldTypeKey: 'text',
|
|
45
|
-
label: 'Text',
|
|
46
|
-
cases: [
|
|
47
|
-
new index_1.DyE2E_FieldTestCase_DataModel({
|
|
48
|
-
id: 't1',
|
|
49
|
-
type: index_1.DyE2E_FieldTestCase_Type.ascii,
|
|
50
|
-
description: 'ascii',
|
|
51
|
-
inputValue: 'hi',
|
|
52
|
-
expectation: index_1.DyE2E_TestExpectation_Type.valid,
|
|
53
|
-
}),
|
|
54
|
-
],
|
|
55
|
-
});
|
|
56
|
-
const restored = new index_1.DyE2E_FieldTestCaseSet_DataModel(JSON.parse(JSON.stringify(set)));
|
|
57
|
-
expect(restored.cases.length).toBe(1);
|
|
58
|
-
expect(restored.fieldTypeKey).toBe('text');
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
// ────────────────── Viewport ──────────────────
|
|
62
|
-
describe('| Viewport-katalogus', () => {
|
|
63
|
-
it('| 7 standard viewport elerheto', () => {
|
|
64
|
-
expect(Object.keys(index_1.STANDARD_VIEWPORT_CATALOG).length).toBe(7);
|
|
65
|
-
expect(index_1.STANDARD_VIEWPORT_LIST.length).toBe(7);
|
|
66
|
-
});
|
|
67
|
-
it('| mobile-s = 320×568', () => {
|
|
68
|
-
const mob = index_1.STANDARD_VIEWPORT_CATALOG[index_1.DyE2E_StandardViewport_Type.mobileS];
|
|
69
|
-
expect(mob.width).toBe(320);
|
|
70
|
-
expect(mob.height).toBe(568);
|
|
71
|
-
expect(mob.isMobile).toBe(true);
|
|
72
|
-
});
|
|
73
|
-
it('| desktop-wide = 1920×1080', () => {
|
|
74
|
-
const dw = index_1.STANDARD_VIEWPORT_CATALOG[index_1.DyE2E_StandardViewport_Type.desktopWide];
|
|
75
|
-
expect(dw.width).toBe(1920);
|
|
76
|
-
expect(dw.height).toBe(1080);
|
|
77
|
-
expect(dw.isMobile).toBe(false);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
// ────────────────── CWV ──────────────────
|
|
81
|
-
describe('| CWV thresholds', () => {
|
|
82
|
-
it('| LCP good < 2500ms (web.dev "good" zona)', () => {
|
|
83
|
-
expect(index_1.CWV_GOOD_THRESHOLDS.lcp_p75_ms).toBe(2500);
|
|
84
|
-
});
|
|
85
|
-
it('| CLS good < 0.1', () => {
|
|
86
|
-
expect(index_1.CWV_GOOD_THRESHOLDS.cls_p75).toBe(0.1);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
// ────────────────── Test-case registry ──────────────────
|
|
90
|
-
describe('| FIELD_TYPE_TEST_CASE_REGISTRY', () => {
|
|
91
|
-
it('| tartalmazza mind a 13 Forms v2 field-type-ot', () => {
|
|
92
|
-
const keys = Object.keys(index_1.FIELD_TYPE_TEST_CASE_REGISTRY);
|
|
93
|
-
expect(keys).toContain('text');
|
|
94
|
-
expect(keys).toContain('textarea');
|
|
95
|
-
expect(keys).toContain('password');
|
|
96
|
-
expect(keys).toContain('number');
|
|
97
|
-
expect(keys).toContain('slider');
|
|
98
|
-
expect(keys).toContain('sliderRange');
|
|
99
|
-
expect(keys).toContain('checkbox');
|
|
100
|
-
expect(keys).toContain('select');
|
|
101
|
-
expect(keys).toContain('multiselect');
|
|
102
|
-
expect(keys).toContain('radioSelect');
|
|
103
|
-
expect(keys).toContain('date');
|
|
104
|
-
expect(keys).toContain('dateTime');
|
|
105
|
-
expect(keys).toContain('dateRange');
|
|
106
|
-
});
|
|
107
|
-
it('| getTestCaseSet ismert type-ra visszaadja a set-et', () => {
|
|
108
|
-
const set = (0, index_1.getTestCaseSet)('text');
|
|
109
|
-
expect(set).not.toBeNull();
|
|
110
|
-
expect(set?.fieldTypeKey).toBe('text');
|
|
111
|
-
expect((set?.cases.length ?? 0)).toBeGreaterThan(5);
|
|
112
|
-
});
|
|
113
|
-
it('| getTestCaseSet ismeretlen type-ra null-t ad (Wave-2b extensibility)', () => {
|
|
114
|
-
const set = (0, index_1.getTestCaseSet)('not-a-real-type');
|
|
115
|
-
expect(set).toBeNull();
|
|
116
|
-
});
|
|
117
|
-
it('| registerTestCaseSet uj registry-objektumot ad (immutable)', () => {
|
|
118
|
-
const newSet = new index_1.DyE2E_FieldTestCaseSet_DataModel({
|
|
119
|
-
fieldTypeKey: 'customColor',
|
|
120
|
-
label: 'Custom Color',
|
|
121
|
-
cases: [],
|
|
122
|
-
});
|
|
123
|
-
const extended = (0, index_1.registerTestCaseSet)('customColor', newSet);
|
|
124
|
-
expect(extended['customColor']).toBe(newSet);
|
|
125
|
-
// Original NEM mutalt.
|
|
126
|
-
expect(index_1.FIELD_TYPE_TEST_CASE_REGISTRY['customColor']).toBeUndefined();
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
// ────────────────── TestId util ──────────────────
|
|
130
|
-
describe('| DyE2E_TestId_Util', () => {
|
|
131
|
-
it('| field testId konvencio', () => {
|
|
132
|
-
expect(index_1.DyE2E_TestId_Util.field('login', 'email')).toBe('login-email');
|
|
133
|
-
});
|
|
134
|
-
it('| camelCase → kebab', () => {
|
|
135
|
-
expect(index_1.DyE2E_TestId_Util.field('myForm', 'firstName')).toBe('my-form-first-name');
|
|
136
|
-
});
|
|
137
|
-
it('| form / submit / cancel testId-k', () => {
|
|
138
|
-
expect(index_1.DyE2E_TestId_Util.form('login')).toBe('login-form');
|
|
139
|
-
expect(index_1.DyE2E_TestId_Util.formSubmit('login')).toBe('login-submit');
|
|
140
|
-
expect(index_1.DyE2E_TestId_Util.formCancel('login')).toBe('login-cancel');
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
//# sourceMappingURL=contracts.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.spec.js","sourceRoot":"","sources":["../../../src/_modules/contracts/contracts.spec.ts"],"names":[],"mappings":";;AAAA,mCAeiB;AAEjB,QAAQ,CAAC,oCAAoC,EAAE,GAAS,EAAE;IAExD,8CAA8C;IAC9C,QAAQ,CAAC,SAAS,EAAE,GAAS,EAAE;QAE7B,EAAE,CAAC,gEAAgE,EAAE,GAAS,EAAE;YAC9E,MAAM,CAAC,gCAAwB,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAChE,MAAM,CAAC,gCAAwB,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC3D,MAAM,CAAC,gCAAwB,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;YACvE,MAAM,CAAC,gCAAwB,CAAC,MAAM,CAAC,CA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Aa,CAAC,CAAC;QACxE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qBAAqB,EAAE,GAAS,EAAE;YACnC,MAAM,CAAC,yBAAiB,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;QACpF,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,mCAAmC,EAAE,GAAS,EAAE;YACjD,MAAM,CAAC,yBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAC3D,MAAM,CAAC,yBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;YACnE,MAAM,CAAC,yBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-comparison.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-comparison.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cwv_metric_type_enum_1 = require("../contracts/_enums/cwv-metric-type.enum");
|
|
4
|
-
const cwv_comparison_util_1 = require("./_collections/cwv-comparison.util");
|
|
5
|
-
describe('| dynamo-e2e | CWV Comparison Util (Wave-3)', () => {
|
|
6
|
-
it('| ures report-ok → [] (nincs metric)', () => {
|
|
7
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports({}, {});
|
|
8
|
-
expect(result.length).toBe(0);
|
|
9
|
-
});
|
|
10
|
-
it('| stable: ±5% alatti változás', () => {
|
|
11
|
-
const oldR = { summary: { lcp: { p75: 2000 } } };
|
|
12
|
-
const newR = { summary: { lcp: { p75: 2080 } } };
|
|
13
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
14
|
-
expect(result[0].status).toBe('stable');
|
|
15
|
-
});
|
|
16
|
-
it('| improved: >5% csökkenés', () => {
|
|
17
|
-
const oldR = { summary: { lcp: { p75: 2000 } } };
|
|
18
|
-
const newR = { summary: { lcp: { p75: 1500 } } };
|
|
19
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
20
|
-
expect(result[0].status).toBe('improved');
|
|
21
|
-
expect(result[0].delta).toBe(-500);
|
|
22
|
-
});
|
|
23
|
-
it('| regressed: >5% növekedés', () => {
|
|
24
|
-
const oldR = { summary: { lcp: { p75: 2000 } } };
|
|
25
|
-
const newR = { summary: { lcp: { p75: 3000 } } };
|
|
26
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
27
|
-
expect(result[0].status).toBe('regressed');
|
|
28
|
-
expect(result[0].deltaPercent).toBe(50);
|
|
29
|
-
});
|
|
30
|
-
it('| custom tolerance — 1% strict mode', () => {
|
|
31
|
-
const oldR = { summary: { lcp: { p75: 2000 } } };
|
|
32
|
-
const newR = { summary: { lcp: { p75: 2050 } } };
|
|
33
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR, 1);
|
|
34
|
-
expect(result[0].status).toBe('regressed');
|
|
35
|
-
});
|
|
36
|
-
it('| több metric egyszerre', () => {
|
|
37
|
-
const oldR = { summary: { lcp: { p75: 2000 }, cls: { p75: 0.05 }, inp: { p75: 150 } } };
|
|
38
|
-
const newR = { summary: { lcp: { p75: 2100 }, cls: { p75: 0.20 }, inp: { p75: 100 } } };
|
|
39
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
40
|
-
expect(result.length).toBe(3);
|
|
41
|
-
const lcp = result.find(r => r.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp);
|
|
42
|
-
const cls = result.find(r => r.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls);
|
|
43
|
-
const inp = result.find(r => r.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp);
|
|
44
|
-
expect(lcp?.status).toBe('stable');
|
|
45
|
-
expect(cls?.status).toBe('regressed');
|
|
46
|
-
expect(inp?.status).toBe('improved');
|
|
47
|
-
});
|
|
48
|
-
it('| regressionsOnly — szűr', () => {
|
|
49
|
-
const oldR = { summary: { lcp: { p75: 2000 }, cls: { p75: 0.05 } } };
|
|
50
|
-
const newR = { summary: { lcp: { p75: 3000 }, cls: { p75: 0.05 } } };
|
|
51
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
52
|
-
const regressions = cwv_comparison_util_1.DyE2E_CWVComparison_Util.regressionsOnly(result);
|
|
53
|
-
expect(regressions.length).toBe(1);
|
|
54
|
-
expect(regressions[0].metric).toBe(cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp);
|
|
55
|
-
});
|
|
56
|
-
it('| formatMarkdownTable — header + row markdown', () => {
|
|
57
|
-
const oldR = { summary: { lcp: { p75: 2000 } } };
|
|
58
|
-
const newR = { summary: { lcp: { p75: 3000 } } };
|
|
59
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
60
|
-
const md = cwv_comparison_util_1.DyE2E_CWVComparison_Util.formatMarkdownTable(result);
|
|
61
|
-
expect(md).toContain('| Metric | Old p75 | New p75 | Delta | Δ% | Status |');
|
|
62
|
-
expect(md).toContain('LCP');
|
|
63
|
-
expect(md).toContain('🔴');
|
|
64
|
-
expect(md).toContain('regressed');
|
|
65
|
-
});
|
|
66
|
-
it('| formatMarkdownTable — üres → "_No comparable metrics._"', () => {
|
|
67
|
-
const md = cwv_comparison_util_1.DyE2E_CWVComparison_Util.formatMarkdownTable([]);
|
|
68
|
-
expect(md).toBe('_No comparable metrics._');
|
|
69
|
-
});
|
|
70
|
-
it('| NaN p75 → metric kihagyva', () => {
|
|
71
|
-
const oldR = { summary: { lcp: { p75: 2000 }, cls: {} } };
|
|
72
|
-
const newR = { summary: { lcp: { p75: 2100 }, cls: { p75: 0.1 } } };
|
|
73
|
-
const result = cwv_comparison_util_1.DyE2E_CWVComparison_Util.compareReports(oldR, newR);
|
|
74
|
-
expect(result.length).toBe(1); // csak lcp, mert cls.oldP75 NaN
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=cwv-comparison.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-comparison.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-comparison.spec.ts"],"names":[],"mappings":";;AAAA,mFAAgF;AAChF,4EAAqG;AAErG,QAAQ,CAAC,6CAA6C,EAAE,GAAS,EAAE;IAEjE,EAAE,CAAC,sCAAsC,EAAE,GAAS,EAAE;QACpD,MAAM,MAAM,GAAG,8CAAwB,CAAC,cAAc,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/D,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+BAA+B,EAAE,GAAS,EAAE;QAC7C,MAAM,IAAI,GAA0B,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACxE,MAAM,IAAI,GAA0B,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QACxE,MAAM,MAAM,GAAG,8CAAwB,CAAC,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC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