@futdevpro/dynamo-e2e 1.18.10 → 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 +6 -0
- package/build/_modules/presets/_collections/playwright-config.factory.js.map +1 -1
- package/build/_modules/presets/_models/interfaces/playwright-config-options.interface.d.ts +4 -0
- package/build/_modules/presets/_models/interfaces/playwright-config-options.interface.d.ts.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 -286
- 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,78 +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_default_thresholds_const_1 = require("../contracts/_collections/constants/cwv-default-thresholds.const");
|
|
5
|
-
const cwv_measurement_data_model_1 = require("./_models/cwv-measurement.data-model");
|
|
6
|
-
const cwv_diagnose_util_1 = require("./_collections/cwv-diagnose.util");
|
|
7
|
-
describe('| dynamo-e2e | CWV Diagnose Util (Wave-3)', () => {
|
|
8
|
-
it('| üres measurement → null', () => {
|
|
9
|
-
const result = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric([], cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
10
|
-
expect(result).toBeNull();
|
|
11
|
-
});
|
|
12
|
-
it('| LCP p75 < threshold → OK', () => {
|
|
13
|
-
const ms = [
|
|
14
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 1500, iteration: 0, route: '/x' }),
|
|
15
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 2000, iteration: 1, route: '/x' }),
|
|
16
|
-
];
|
|
17
|
-
const result = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(ms, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
18
|
-
expect(result).not.toBeNull();
|
|
19
|
-
expect(result?.suggestion).toBe('OK — threshold tartva.');
|
|
20
|
-
expect(result?.summary).toContain('LCP p75');
|
|
21
|
-
expect(result?.summary).not.toContain('FAIL');
|
|
22
|
-
});
|
|
23
|
-
it('| LCP p75 > threshold → FAIL + suggestion', () => {
|
|
24
|
-
const ms = [
|
|
25
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 4000, iteration: 0, route: '/x' }),
|
|
26
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 5500, iteration: 1, route: '/x' }),
|
|
27
|
-
];
|
|
28
|
-
const result = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(ms, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
29
|
-
expect(result?.summary).toContain('FAIL');
|
|
30
|
-
expect(result?.suggestion).not.toBe('OK — threshold tartva.');
|
|
31
|
-
});
|
|
32
|
-
it('| LCP target IMG → IMG-specifikus suggestion', () => {
|
|
33
|
-
const ms = [
|
|
34
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({
|
|
35
|
-
metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 5000, iteration: 0, route: '/x',
|
|
36
|
-
attribution: { element: 'IMG#hero-banner' },
|
|
37
|
-
}),
|
|
38
|
-
];
|
|
39
|
-
const result = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(ms, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
40
|
-
expect(result?.worstTarget).toBe('IMG#hero-banner');
|
|
41
|
-
expect(result?.suggestion).toContain('preload');
|
|
42
|
-
});
|
|
43
|
-
it('| CLS p75 > 0.1 → FAIL + dimension suggestion', () => {
|
|
44
|
-
const ms = [
|
|
45
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, value: 0.2, iteration: 0, route: '/x' }),
|
|
46
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, value: 0.3, iteration: 1, route: '/x' }),
|
|
47
|
-
];
|
|
48
|
-
const result = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(ms, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
49
|
-
expect(result?.summary).toContain('FAIL');
|
|
50
|
-
expect(result?.suggestion).toContain('dimension');
|
|
51
|
-
});
|
|
52
|
-
it('| INP p75 > 200ms → FAIL + long-task suggestion', () => {
|
|
53
|
-
const ms = [
|
|
54
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp, value: 500, iteration: 0, route: '/x' }),
|
|
55
|
-
];
|
|
56
|
-
const result = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(ms, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.inp, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
57
|
-
expect(result?.suggestion).toContain('long tasks');
|
|
58
|
-
});
|
|
59
|
-
it('| TTFB / FCP suggestion-ágak', () => {
|
|
60
|
-
const ttfbMs = [new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.ttfb, value: 2000, iteration: 0, route: '/x' })];
|
|
61
|
-
const fcpMs = [new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.fcp, value: 3000, iteration: 0, route: '/x' })];
|
|
62
|
-
const ttfb = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(ttfbMs, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.ttfb, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
63
|
-
const fcp = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseMetric(fcpMs, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.fcp, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
64
|
-
expect(ttfb?.suggestion).toContain('caching');
|
|
65
|
-
expect(fcp?.suggestion).toContain('critical CSS');
|
|
66
|
-
});
|
|
67
|
-
it('| diagnoseAll több metric-re egyszerre', () => {
|
|
68
|
-
const ms = [
|
|
69
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 1500, iteration: 0, route: '/x' }),
|
|
70
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, value: 0.05, iteration: 0, route: '/x' }),
|
|
71
|
-
];
|
|
72
|
-
const all = cwv_diagnose_util_1.DyE2E_CWVDiagnose_Util.diagnoseAll(ms, cwv_default_thresholds_const_1.CWV_GOOD_THRESHOLDS);
|
|
73
|
-
expect(all.length).toBe(2); // LCP + CLS
|
|
74
|
-
expect(all.find(h => h.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp)).toBeDefined();
|
|
75
|
-
expect(all.find(h => h.metric === cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls)).toBeDefined();
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
//# sourceMappingURL=cwv-diagnose.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-diagnose.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-diagnose.spec.ts"],"names":[],"mappings":";;AAAA,mFAAgF;AAChF,mHAAuG;AACvG,qFAAsF;AACtF,wEAA0E;AAE1E,QAAQ,CAAC,2CAA2C,EAAE,GAAS,EAAE;IAE/D,EAAE,CAAC,2BAA2B,EAAE,GAAS,EAAE;QACzC,MAAM,MAAM,GAAG,0CAAsB,CAAC,cAAc,CAAC,EAAE,EAAE,2CAAoB,CAAC,GAAG,EAAE,kDAAmB,CAAC,CAAC;QACxG,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAS,EAAE;QAC1C,MAAM,EAAE,GAAG;YACT,IAAI,2DAA8B,CAAC,EAAE,MAAM,EAAE,2CAAoB,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YAChH,IAAI,2DAA8B,CAAC,EAAE,MAAM,EAAE,2CAAoB,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SACjH,CAAC;QACF,MAAM,MAAM,GAAG,0CAAsB,CAAC,cAAc,CAAC,EAAE,EAAE,2CAAoB,CAAC,GAAG,EAAE,kDAAmB,CAAC,CAAC;QACxG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAC9B,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAC1D,MAAM,CAAC,M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AAK,EAAE,IAAI,EAAE,CAAC;SACjH,CAAC;QACF,MAAM,GAAG,GAAG,0CAAsB,CAAC,WAAW,CAAC,EAAE,EAAE,kDAAmB,CAAC,CAAC;QACxE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY;QACxC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,2CAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3E,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,2CAAoB,CAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7E,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-suite.generator.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-suite.generator.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,81 +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_aggregator_util_1 = require("./_collections/cwv-aggregator.util");
|
|
5
|
-
const cwv_measurement_data_model_1 = require("./_models/cwv-measurement.data-model");
|
|
6
|
-
const cwv_suite_generator_1 = require("./cwv-suite.generator");
|
|
7
|
-
describe('| dynamo-e2e | CWV suite generator (MP-05)', () => {
|
|
8
|
-
describe('| Aggregator', () => {
|
|
9
|
-
it('| percentile — egyetlen ertek', () => {
|
|
10
|
-
expect(cwv_aggregator_util_1.DyE2E_CWVAggregator_Util.percentile([5], 0.5)).toBe(5);
|
|
11
|
-
});
|
|
12
|
-
it('| percentile — p50 a median', () => {
|
|
13
|
-
expect(cwv_aggregator_util_1.DyE2E_CWVAggregator_Util.percentile([1, 2, 3], 0.5)).toBe(2);
|
|
14
|
-
});
|
|
15
|
-
it('| percentile — p75 lineáris interpolációval', () => {
|
|
16
|
-
// [10, 20, 30, 40, 50] → rank = 0.75 * 4 = 3 → sorted[3] = 40
|
|
17
|
-
expect(cwv_aggregator_util_1.DyE2E_CWVAggregator_Util.percentile([10, 20, 30, 40, 50], 0.75)).toBe(40);
|
|
18
|
-
});
|
|
19
|
-
it('| summarize — több measurement-ből', () => {
|
|
20
|
-
const ms = [
|
|
21
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 1000, iteration: 0, route: '/a' }),
|
|
22
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 2000, iteration: 1, route: '/a' }),
|
|
23
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp, value: 3000, iteration: 2, route: '/a' }),
|
|
24
|
-
new cwv_measurement_data_model_1.DyE2E_CWVMeasurement_DataModel({ metric: cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.cls, value: 0.05, iteration: 0, route: '/a' }),
|
|
25
|
-
];
|
|
26
|
-
const summary = cwv_aggregator_util_1.DyE2E_CWVAggregator_Util.summarize(ms, cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp);
|
|
27
|
-
expect(summary.n).toBe(3);
|
|
28
|
-
expect(summary.min).toBe(1000);
|
|
29
|
-
expect(summary.max).toBe(3000);
|
|
30
|
-
expect(summary.mean).toBe(2000);
|
|
31
|
-
expect(summary.p50).toBe(2000);
|
|
32
|
-
});
|
|
33
|
-
it('| summarize — üres mérés → NaN-ok', () => {
|
|
34
|
-
const summary = cwv_aggregator_util_1.DyE2E_CWVAggregator_Util.summarize([], cwv_metric_type_enum_1.DyE2E_CWVMetric_Type.lcp);
|
|
35
|
-
expect(summary.n).toBe(0);
|
|
36
|
-
expect(isNaN(summary.p50)).toBe(true);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
describe('| Generator emit', () => {
|
|
40
|
-
it('| ures route-listaval valid spec.ts', () => {
|
|
41
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({ routes: [] });
|
|
42
|
-
expect(spec).toContain(`import { test, expect } from '@playwright/test';`);
|
|
43
|
-
expect(spec).toContain('CWV diagnostics');
|
|
44
|
-
});
|
|
45
|
-
it('| 1 route → emit-el N iter loop-ot + JSON-report-ot + assertion-okat', () => {
|
|
46
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
47
|
-
routes: [{ key: 'home', path: '/' }],
|
|
48
|
-
});
|
|
49
|
-
expect(spec).toContain('for (let iter: number = 0; iter < 5;');
|
|
50
|
-
expect(spec).toContain('cwv-report');
|
|
51
|
-
expect(spec).toContain('LCP threshold 2500ms');
|
|
52
|
-
expect(spec).toContain('CLS threshold 0.1');
|
|
53
|
-
});
|
|
54
|
-
it('| custom thresholds → asszertok', () => {
|
|
55
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
56
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
57
|
-
thresholds: { lcp_p75_ms: 4000, cls_p75: 0.25 },
|
|
58
|
-
});
|
|
59
|
-
expect(spec).toContain('LCP threshold 4000ms');
|
|
60
|
-
expect(spec).toContain('CLS threshold 0.25');
|
|
61
|
-
});
|
|
62
|
-
it('| iterationsPerRoute override', () => {
|
|
63
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
64
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
65
|
-
iterationsPerRoute: 10,
|
|
66
|
-
});
|
|
67
|
-
expect(spec).toContain('iter < 10');
|
|
68
|
-
});
|
|
69
|
-
it('| stable STAMP → deterministic', () => {
|
|
70
|
-
const a = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({ routes: [{ key: 'x', path: '/x' }] });
|
|
71
|
-
const b = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({ routes: [{ key: 'x', path: '/x' }] });
|
|
72
|
-
expect(a).toBe(b);
|
|
73
|
-
});
|
|
74
|
-
it('| inlined page-script JSON-encoded (no string-break)', () => {
|
|
75
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({ routes: [{ key: 'x', path: '/x' }] });
|
|
76
|
-
expect(spec).toContain('DYE2E_WEB_VITALS_PAGE_SCRIPT');
|
|
77
|
-
expect(spec).toContain('__dye2e_cwv_events__');
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
//# sourceMappingURL=cwv-suite.generator.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-suite.generator.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-suite.generator.spec.ts"],"names":[],"mappings":";;AAAA,mFAAgF;AAChF,4EAA8E;AAC9E,qFAAsF;AACtF,+DAAiE;AAEjE,QAAQ,CAAC,4CAA4C,EAAE,GAAS,EAAE;IAEhE,QAAQ,CAAC,cAAc,EAAE,GAAS,EAAE;QAElC,EAAE,CAAC,+BAA+B,EAAE,GAAS,EAAE;YAC7C,MAAM,CAAC,8CAAwB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,6BAA6B,EAAE,GAAS,EAAE;YAC3C,MAAM,CAAC,8CAAwB,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC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E,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;YACxF,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,sDAAsD,EAAE,GAAS,EAAE;YACpE,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;YAC3F,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAC;YACvD,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-summarize.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-summarize.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cwv_summarize_util_1 = require("./_collections/cwv-summarize.util");
|
|
4
|
-
describe('| dynamo-e2e | CWV Summarize Util (Wave-3)', () => {
|
|
5
|
-
describe('| toMarkdown', () => {
|
|
6
|
-
it('| üres summary → csak header + tabla-header', () => {
|
|
7
|
-
const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown({ route: '/x' });
|
|
8
|
-
expect(md).toContain('CWV summary — /x');
|
|
9
|
-
expect(md).toContain('| Metric | n | p50 | p75 | p95 | Target | Status |');
|
|
10
|
-
});
|
|
11
|
-
it('| lcp passing → 🟢', () => {
|
|
12
|
-
const report = {
|
|
13
|
-
route: '/home',
|
|
14
|
-
summary: { lcp: { n: 5, p50: 1500, p75: 2000, p95: 2400 } },
|
|
15
|
-
};
|
|
16
|
-
const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown(report);
|
|
17
|
-
expect(md).toContain('🟢');
|
|
18
|
-
expect(md).toContain('LCP');
|
|
19
|
-
expect(md).toContain('2000.00ms');
|
|
20
|
-
});
|
|
21
|
-
it('| lcp failing → 🔴', () => {
|
|
22
|
-
const report = {
|
|
23
|
-
route: '/home',
|
|
24
|
-
summary: { lcp: { n: 5, p75: 4000 } },
|
|
25
|
-
};
|
|
26
|
-
const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown(report);
|
|
27
|
-
expect(md).toContain('🔴');
|
|
28
|
-
});
|
|
29
|
-
it('| n=0 metrik kihagyva', () => {
|
|
30
|
-
const report = {
|
|
31
|
-
summary: { lcp: { n: 0 }, cls: { n: 3, p75: 0.05 } },
|
|
32
|
-
};
|
|
33
|
-
const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown(report);
|
|
34
|
-
expect(md).not.toContain('| LCP |');
|
|
35
|
-
expect(md).toContain('| CLS |');
|
|
36
|
-
});
|
|
37
|
-
it('| route opcionalis — "unknown route" default', () => {
|
|
38
|
-
const md = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toMarkdown({});
|
|
39
|
-
expect(md).toContain('unknown route');
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
describe('| toJsonSummary', () => {
|
|
43
|
-
it('| üres summary → minden no-data', () => {
|
|
44
|
-
const json = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary({});
|
|
45
|
-
expect(json.lcp.status).toBe('no-data');
|
|
46
|
-
expect(json.cls.status).toBe('no-data');
|
|
47
|
-
expect(json.inp.status).toBe('no-data');
|
|
48
|
-
});
|
|
49
|
-
it('| lcp pass + cls fail egyszerre', () => {
|
|
50
|
-
const report = {
|
|
51
|
-
summary: { lcp: { n: 5, p75: 2000 }, cls: { n: 5, p75: 0.3 } },
|
|
52
|
-
};
|
|
53
|
-
const json = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary(report);
|
|
54
|
-
expect(json.lcp.status).toBe('pass');
|
|
55
|
-
expect(json.lcp.p75).toBe(2000);
|
|
56
|
-
expect(json.cls.status).toBe('fail');
|
|
57
|
-
expect(json.cls.p75).toBe(0.3);
|
|
58
|
-
});
|
|
59
|
-
it('| custom thresholds figyelembe vesz', () => {
|
|
60
|
-
const report = {
|
|
61
|
-
summary: { lcp: { n: 5, p75: 3000 } },
|
|
62
|
-
};
|
|
63
|
-
const stricter = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary(report, { lcp_p75_ms: 2000 });
|
|
64
|
-
expect(stricter.lcp.status).toBe('fail');
|
|
65
|
-
const looser = cwv_summarize_util_1.DyE2E_CWVSummarize_Util.toJsonSummary(report, { lcp_p75_ms: 4000 });
|
|
66
|
-
expect(looser.lcp.status).toBe('pass');
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=cwv-summarize.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cwv-summarize.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/cwv-summarize.spec.ts"],"names":[],"mappings":";;AAAA,0EAAsG;AAEtG,QAAQ,CAAC,4CAA4C,EAAE,GAAS,EAAE;IAEhE,QAAQ,CAAC,cAAc,EAAE,GAAS,EAAE;QAElC,EAAE,CAAC,6CAA6C,EAAE,GAAS,EAAE;YAC3D,MAAM,EAAE,GAAW,4CAAuB,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACvE,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;YACzC,MAAM,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,oDAAoD,CAAC,CAAC;QAC7E,CAAC,CAAC,C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,CAAC,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,qCAAqC,EAAE,GAAS,EAAE;YACnD,MAAM,MAAM,GAA6B;gBACvC,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;aACtC,CAAC;YACF,MAAM,QAAQ,GAAG,4CAAuB,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YACrF,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzC,MAAM,MAAM,GAAG,4CAAuB,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;YACnF,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IAEL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inp-emit-integration.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/inp-emit-integration.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cwv_suite_generator_1 = require("./cwv-suite.generator");
|
|
4
|
-
describe('| dynamo-e2e | INP emit integration (Wave-3)', () => {
|
|
5
|
-
it('| inp_p75_ms threshold nélkül NEM emit-eli az INP page-script DECLARÁCIÓT', () => {
|
|
6
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
7
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
8
|
-
thresholds: { lcp_p75_ms: 2500, cls_p75: 0.1 },
|
|
9
|
-
});
|
|
10
|
-
expect(spec).not.toContain('const DYE2E_INP_PAGE_SCRIPT: string =');
|
|
11
|
-
expect(spec).not.toContain('__dye2e_inp_setup__');
|
|
12
|
-
});
|
|
13
|
-
it('| inp_p75_ms threshold-tal emit-eli az INP page-script DECLARÁCIÓT', () => {
|
|
14
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
15
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
16
|
-
thresholds: { lcp_p75_ms: 2500, cls_p75: 0.1, inp_p75_ms: 200 },
|
|
17
|
-
});
|
|
18
|
-
expect(spec).toContain('const DYE2E_INP_PAGE_SCRIPT: string =');
|
|
19
|
-
expect(spec).toContain('__dye2e_inp_setup__');
|
|
20
|
-
});
|
|
21
|
-
it('| INP-script feltételes addInitScript hivás', () => {
|
|
22
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
23
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
24
|
-
thresholds: { lcp_p75_ms: 2500, inp_p75_ms: 200 },
|
|
25
|
-
});
|
|
26
|
-
expect(spec).toContain(`typeof DYE2E_INP_PAGE_SCRIPT !== 'undefined'`);
|
|
27
|
-
});
|
|
28
|
-
it('| INP threshold-asszertelt a per-route block-ban (mindig emit-elve)', () => {
|
|
29
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
30
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
31
|
-
thresholds: { inp_p75_ms: 200 },
|
|
32
|
-
});
|
|
33
|
-
expect(spec).toContain('INP threshold 200ms');
|
|
34
|
-
});
|
|
35
|
-
it('| INP snapshot-hook a page.evaluate-ben', () => {
|
|
36
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
37
|
-
routes: [{ key: 'x', path: '/x' }],
|
|
38
|
-
thresholds: { lcp_p75_ms: 2500 },
|
|
39
|
-
});
|
|
40
|
-
expect(spec).toContain('__dye2e_inp_snapshot__');
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=inp-emit-integration.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inp-emit-integration.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/inp-emit-integration.spec.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,QAAQ,CAAC,8CAA8C,EAAE,GAAS,EAAE;IAElE,EAAE,CAAC,2EAA2E,EAAE,GAAS,EAAE;QACzF,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC;YACjD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAClC,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE;SAC/C,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,uCAAuC,CAAC,CAAC;QACpE,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,oEAAoE,EAAE,GAAS,EAAE;QAClF,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC;YACjD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;YAClC,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GA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AC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inp-interaction-driver.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/inp-interaction-driver.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cwv_suite_generator_1 = require("./cwv-suite.generator");
|
|
4
|
-
describe('| dynamo-e2e | INP interaction-driver (Wave-3 closure)', () => {
|
|
5
|
-
it('| inp_p75_ms threshold → emit-el szintetikus interakciókat', () => {
|
|
6
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
7
|
-
routes: [{ key: 'home', path: '/' }],
|
|
8
|
-
thresholds: { lcp_p75_ms: 2500, inp_p75_ms: 200 },
|
|
9
|
-
});
|
|
10
|
-
expect(spec).toContain('page.mouse.click');
|
|
11
|
-
expect(spec).toContain(`page.keyboard.press('Tab')`);
|
|
12
|
-
expect(spec).toContain(`page.keyboard.press('Enter')`);
|
|
13
|
-
});
|
|
14
|
-
it('| inp_p75_ms threshold nélkül NEM emit-eli az INP-driver interakciókat (typeof guard)', () => {
|
|
15
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
16
|
-
routes: [{ key: 'home', path: '/' }],
|
|
17
|
-
thresholds: { lcp_p75_ms: 2500 },
|
|
18
|
-
});
|
|
19
|
-
// A typeof DYE2E_INP_PAGE_SCRIPT !== 'undefined' guard kondicionalja a mouse.click-et,
|
|
20
|
-
// és a script-deklaráció nincs az emit-ben, tehát az IF nem fut.
|
|
21
|
-
expect(spec).not.toContain('const DYE2E_INP_PAGE_SCRIPT');
|
|
22
|
-
// Az interakció-block változatlanul a spec-ben (futtatás-időben skip-elve a guard alatt)
|
|
23
|
-
expect(spec).toContain('Wave-3 INP interaction-driver');
|
|
24
|
-
});
|
|
25
|
-
it('| try/catch swallow — interaction-target hiánya nem dob', () => {
|
|
26
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
27
|
-
routes: [{ key: 'home', path: '/' }],
|
|
28
|
-
thresholds: { inp_p75_ms: 200 },
|
|
29
|
-
});
|
|
30
|
-
expect(spec).toContain('try');
|
|
31
|
-
expect(spec).toContain('catch');
|
|
32
|
-
expect(spec).toContain('swallow');
|
|
33
|
-
});
|
|
34
|
-
it('| settle-wait minden interakció között', () => {
|
|
35
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
36
|
-
routes: [{ key: 'home', path: '/' }],
|
|
37
|
-
thresholds: { inp_p75_ms: 200 },
|
|
38
|
-
});
|
|
39
|
-
const settleCount = (spec.match(/waitForTimeout\(50\)/g) ?? []).length;
|
|
40
|
-
// 3 settle-wait — minden interakció után
|
|
41
|
-
expect(settleCount).toBeGreaterThanOrEqual(3);
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
//# sourceMappingURL=inp-interaction-driver.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inp-interaction-driver.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/inp-interaction-driver.spec.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,QAAQ,CAAC,wDAAwD,EAAE,GAAS,EAAE;IAE5E,EAAE,CAAC,4DAA4D,EAAE,GAAS,EAAE;QAC1E,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC;YACjD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;YACpC,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE;SAClD,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAC3C,MAAM,CAAC,IAAI,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AG,EAAE,CAAC;YACpC,UAAU,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE;SAChC,CAAC,CAAC;QACH,MAAM,WAAW,GAAW,CAAC,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QAC/E,yCAAyC;QACzC,MAAM,CAAC,WAAW,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inp-script.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/inp-script.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const inp_interaction_script_const_1 = require("./_collections/inp-interaction-script.const");
|
|
4
|
-
describe('| dynamo-e2e | INP page-script (Wave-3)', () => {
|
|
5
|
-
it('| pure JS — semmi TS-syntax', () => {
|
|
6
|
-
// A page-script PURE JavaScript, NEM TypeScript — a browser direkt futtatja.
|
|
7
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).not.toContain('as any');
|
|
8
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).not.toContain(': void');
|
|
9
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).not.toContain('interface ');
|
|
10
|
-
});
|
|
11
|
-
it('| `window.__dye2e_cwv_events__` tömbbe rakja az INP-t', () => {
|
|
12
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('__dye2e_cwv_events__');
|
|
13
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain(`pushEvent('inp'`);
|
|
14
|
-
});
|
|
15
|
-
it('| PerformanceObserver "event" type-ot figyel + interactionId-vel', () => {
|
|
16
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('PerformanceObserver');
|
|
17
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain(`type: 'event'`);
|
|
18
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('interactionId');
|
|
19
|
-
});
|
|
20
|
-
it('| longestInteraction-t tárol el (P75-asszertelhetö)', () => {
|
|
21
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('longestInteraction');
|
|
22
|
-
});
|
|
23
|
-
it('| snapshot pagehide + visibilitychange-en', () => {
|
|
24
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain(`'pagehide'`);
|
|
25
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain(`'visibilitychange'`);
|
|
26
|
-
});
|
|
27
|
-
it('| re-injection guard (idempotent)', () => {
|
|
28
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('__dye2e_inp_setup__');
|
|
29
|
-
});
|
|
30
|
-
it('| try/catch unsupported PerformanceObserver-en', () => {
|
|
31
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('try');
|
|
32
|
-
expect(inp_interaction_script_const_1.DYE2E_INP_PAGE_SCRIPT).toContain('catch');
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=inp-script.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inp-script.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/inp-script.spec.ts"],"names":[],"mappings":";;AAAA,8FAAoF;AAEpF,QAAQ,CAAC,yCAAyC,EAAE,GAAS,EAAE;IAE7D,EAAE,CAAC,6BAA6B,EAAE,GAAS,EAAE;QAC3C,6EAA6E;QAC7E,MAAM,CAAC,oDAAqB,CAAC,CAAC,GAAG,CAAC,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AS,EAAE;QAC9D,MAAM,CAAC,oDAAqB,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,CAAC,oDAAqB,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"per-route-thresholds.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/cwv/per-route-thresholds.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cwv_suite_generator_1 = require("./cwv-suite.generator");
|
|
4
|
-
describe('| dynamo-e2e | Per-route CWV threshold (Wave-3.5)', () => {
|
|
5
|
-
it('| route saját cwvThresholds-szal felülírja a global thresholds-ot', () => {
|
|
6
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
7
|
-
routes: [
|
|
8
|
-
{ key: 'home', path: '/' },
|
|
9
|
-
{ key: 'admin', path: '/admin', cwvThresholds: { lcp_p75_ms: 4000 } }, // looser per-route
|
|
10
|
-
],
|
|
11
|
-
thresholds: { lcp_p75_ms: 2500 },
|
|
12
|
-
});
|
|
13
|
-
// A globális threshold 2500ms, de a /admin route 4000ms-t kap
|
|
14
|
-
expect(spec).toContain('LCP threshold 2500ms');
|
|
15
|
-
expect(spec).toContain('LCP threshold 4000ms');
|
|
16
|
-
});
|
|
17
|
-
it('| route cwvThresholds nélkül a global thresholds-ot használja', () => {
|
|
18
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
19
|
-
routes: [{ key: 'home', path: '/' }],
|
|
20
|
-
thresholds: { lcp_p75_ms: 2500 },
|
|
21
|
-
});
|
|
22
|
-
expect(spec).toContain('LCP threshold 2500ms');
|
|
23
|
-
expect(spec).not.toContain('LCP threshold 4000ms');
|
|
24
|
-
});
|
|
25
|
-
it('| route cwvThresholds több metric-re', () => {
|
|
26
|
-
const spec = cwv_suite_generator_1.DyE2E_CWVSuite_Generator.emit({
|
|
27
|
-
routes: [{
|
|
28
|
-
key: 'heavy', path: '/heavy',
|
|
29
|
-
cwvThresholds: { lcp_p75_ms: 5000, cls_p75: 0.3, inp_p75_ms: 500 },
|
|
30
|
-
}],
|
|
31
|
-
});
|
|
32
|
-
expect(spec).toContain('LCP threshold 5000ms');
|
|
33
|
-
expect(spec).toContain('CLS threshold 0.3');
|
|
34
|
-
expect(spec).toContain('INP threshold 500ms');
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=per-route-thresholds.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"per-route-thresholds.spec.js","sourceRoot":"","sources":["../../../src/_modules/cwv/per-route-thresholds.spec.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,QAAQ,CAAC,mDAAmD,EAAE,GAAS,EAAE;IAEvE,EAAE,CAAC,mEAAmE,EAAE,GAAS,EAAE;QACjF,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC;YACjD,MAAM,EAAE;gBACN,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;gBAC1B,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,mBAAmB;aAC3F;YACD,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;QACH,8DAA8D;QAC9D,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QAC/C,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,+DAA+D,EAAE,GAAS,EAAE;QAC7E,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC;YACjD,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;YACpC,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QAC/C,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sCAAsC,EAAE,GAAS,EAAE;QACpD,MAAM,IAAI,GAAW,8CAAwB,CAAC,IAAI,CAAC;YACjD,MAAM,EAAE,CAAC;oBACP,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ;oBAC5B,aAAa,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE;iBACnE,CAAC;SACH,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;QAC/C,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;QAC5C,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.spec.d.ts","sourceRoot":"","sources":["../../../src/_modules/generators/bootstrap.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const cli_runner_util_1 = require("./_collections/cli-runner.util");
|
|
4
|
-
describe('| dynamo-e2e | CLI bootstrap', () => {
|
|
5
|
-
it('| bootstrapFiles — visszaad 5 fájlt', () => {
|
|
6
|
-
const files = cli_runner_util_1.DyE2E_CliRunner_Util.bootstrapFiles();
|
|
7
|
-
expect(Object.keys(files).length).toBeGreaterThanOrEqual(5);
|
|
8
|
-
expect(files['playwright.config.ts']).toBeDefined();
|
|
9
|
-
expect(files['e2e/generate.ts']).toBeDefined();
|
|
10
|
-
expect(files['e2e/README.md']).toBeDefined();
|
|
11
|
-
});
|
|
12
|
-
it('| playwright.config.ts — DyE2E_getPlaywrightConfig factory-wrapper (SSOT a presets-ben)', () => {
|
|
13
|
-
const files = cli_runner_util_1.DyE2E_CliRunner_Util.bootstrapFiles();
|
|
14
|
-
const cfg = files['playwright.config.ts'];
|
|
15
|
-
expect(cfg).toContain('DyE2E_getPlaywrightConfig');
|
|
16
|
-
expect(cfg).toContain(`@futdevpro/dynamo-e2e/presets`);
|
|
17
|
-
expect(cfg).toContain('./e2e/tests');
|
|
18
|
-
expect(cfg).toContain('E2E_BASE_URL');
|
|
19
|
-
expect(cfg).toContain('envDir: __dirname');
|
|
20
|
-
});
|
|
21
|
-
it('| playwright.config.ts — TEST szerver default, NEM localhost (E2E env convention)', () => {
|
|
22
|
-
const files = cli_runner_util_1.DyE2E_CliRunner_Util.bootstrapFiles();
|
|
23
|
-
const cfg = files['playwright.config.ts'];
|
|
24
|
-
expect(cfg).toContain('DEFAULT_TEST_BASE_URL');
|
|
25
|
-
expect(cfg).toContain('test.your-app.example.com');
|
|
26
|
-
expect(cfg).toContain('feedback_e2e_ldp_local_cicd_test_target');
|
|
27
|
-
});
|
|
28
|
-
it('| e2e/generate.ts — DyE2E_FormSuite_Generator import + emit', () => {
|
|
29
|
-
const files = cli_runner_util_1.DyE2E_CliRunner_Util.bootstrapFiles();
|
|
30
|
-
const gen = files['e2e/generate.ts'];
|
|
31
|
-
expect(gen).toContain(`@futdevpro/dynamo-e2e/generators`);
|
|
32
|
-
expect(gen).toContain('DyE2E_FormSuite_Generator');
|
|
33
|
-
expect(gen).toContain('.emit(');
|
|
34
|
-
});
|
|
35
|
-
it('| .gitkeep files a directory-creation-höz', () => {
|
|
36
|
-
const files = cli_runner_util_1.DyE2E_CliRunner_Util.bootstrapFiles();
|
|
37
|
-
expect(files['e2e/tests/.gitkeep']).toBeDefined();
|
|
38
|
-
expect(files['e2e/tests/generated/.gitkeep']).toBeDefined();
|
|
39
|
-
});
|
|
40
|
-
it('| helpText "bootstrap" parancsot megemlít', () => {
|
|
41
|
-
const help = cli_runner_util_1.DyE2E_CliRunner_Util.helpText();
|
|
42
|
-
expect(help).toContain('bootstrap');
|
|
43
|
-
expect(help).toContain('--force');
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=bootstrap.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.spec.js","sourceRoot":"","sources":["../../../src/_modules/generators/bootstrap.spec.ts"],"names":[],"mappings":";;AAAA,oEAAsE;AAEtE,QAAQ,CAAC,8BAA8B,EAAE,GAAS,EAAE;IAElD,EAAE,CAAC,qCAAqC,EAAE,GAAS,EAAE;QACnD,MAAM,KAAK,GAAG,sCAAoB,CAAC,cAAc,EAAE,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;QAC5D,MAAM,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACpD,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC/C,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yFAAyF,EAAE,GAAS,EAAE;QACvG,MAAM,KAAK,GAAG,sCAAoB,CAAC,cAAc,EAAE,CAAC;QACpD,MA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