@pega/custom-dx-components 24.2.16 → 25.1.10-alpha-0.1
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/package.json +37 -35
- package/src/cli.js +6 -0
- package/src/constants.js +11 -3
- package/src/tasks/authenticate/index.js +5 -0
- package/src/tasks/build-all/index.js +20 -1
- package/src/tasks/build-jest-assets/index.js +7 -8
- package/src/tasks/build-lib/helper.js +39 -20
- package/src/tasks/build-lib/index.js +40 -18
- package/src/tasks/create/index.js +5 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.test.tsx.mustache +19 -0
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.ts.mustache +0 -24
- package/src/tasks/create/templates/Constellation/Field/Date/demo.test.tsx.mustache +52 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.test.tsx.mustache +72 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.test.tsx.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.test.tsx.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.test.tsx.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/localizations.json.mustache +10 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.test.tsx.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.test.tsx.mustache +25 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.test.tsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +7 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/localizations.json.mustache +5 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.ts.mustache +0 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.test.tsx.mustache +29 -0
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.test.tsx.mustache +19 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.test.tsx.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.test.tsx.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.test.tsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.test.tsx.mustache +47 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.test.tsx.mustache +58 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.test.tsx.mustache +40 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.test.tsx.mustache +56 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +4 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.test.tsx.mustache +24 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.test.tsx.mustache +28 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/localizations.json.mustache +8 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.test.tsx.mustache +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/localizations.json.mustache +10 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.test.tsx.mustache +29 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.test.tsx.mustache +28 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +2 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.test.tsx.mustache +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.test.tsx.mustache +19 -0
- package/src/tasks/create-all/index.js +5 -1
- package/src/tasks/create-lib/helper.js +6 -2
- package/src/tasks/create-lib/index.js +18 -6
- package/src/tasks/create-version/helper.js +30 -0
- package/src/tasks/create-version/index.js +27 -8
- package/src/tasks/delete/helper.js +6 -2
- package/src/tasks/delete/index.js +5 -1
- package/src/tasks/delete-lib/helper.js +0 -1
- package/src/tasks/delete-lib/index.js +10 -11
- package/src/tasks/delete-pub/helper.js +142 -1
- package/src/tasks/delete-pub/index.js +75 -10
- package/src/tasks/delete-version/index.js +8 -2
- package/src/tasks/export-archive/helper.js +47 -3
- package/src/tasks/export-archive/index.js +70 -44
- package/src/tasks/import-archive/helper.js +249 -4
- package/src/tasks/import-archive/index.js +476 -40
- package/src/tasks/import-comp/helper.js +26 -3
- package/src/tasks/import-comp/index.js +78 -117
- package/src/tasks/index.js +1 -0
- package/src/tasks/init/template/.eslintrc.json +1 -1
- package/src/tasks/init/template/.storybook/{main.js → main.ts} +4 -3
- package/src/tasks/init/template/.storybook/manager.ts +6 -0
- package/src/tasks/init/template/.storybook/preview.tsx +4 -1
- package/src/tasks/init/template/.storybook/theme.js +1 -1
- package/src/tasks/init/template/babel.config.cjs +18 -9
- package/src/tasks/init/template/jest.config.cjs +29 -4
- package/src/tasks/init/template/package.json.mustache +54 -35
- package/src/tasks/init/template/setupFiles.ts +5 -0
- package/src/tasks/init/template/setupTests.ts +99 -0
- package/src/tasks/init/template/tasks.config.json +1 -1
- package/src/tasks/init/template/tsconfig.json +4 -1
- package/src/tasks/list/helper.js +21 -2
- package/src/tasks/list-lib/index.js +10 -1
- package/src/tasks/list-pub/helper.js +102 -1
- package/src/tasks/list-pub/index.js +108 -36
- package/src/tasks/move/index.js +1 -1
- package/src/tasks/promote-webpack/index.js +0 -3
- package/src/tasks/publish/helper.js +9 -7
- package/src/tasks/publish/index.js +85 -16
- package/src/tasks/publish-all/index.js +12 -1
- package/src/tasks/publish-archive/helper.js +58 -0
- package/src/tasks/publish-archive/index.js +238 -0
- package/src/tasks/publish-lib/index.js +277 -69
- package/src/tasks/rename/index.js +9 -1
- package/src/tasks/rename-lib/index.js +10 -1
- package/src/tasks/restore/index.js +84 -0
- package/src/tasks/set-perm/index.js +1 -2
- package/src/tasks/show-help/index.js +34 -13
- package/src/tasks/show-status/index.js +34 -11
- package/src/tasks/store/index.js +39 -18
- package/src/tasks/switch-lib/helper.js +0 -1
- package/src/tasks/switch-lib/index.js +13 -9
- package/src/tasks/switch-version/index.js +11 -6
- package/src/tasks/validator/index.js +1 -1
- package/src/util.js +463 -114
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +2 -1
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
- package/tests/assets/library/components/create/shared/create-nonce.ts +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyDetails}/Avatar.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyDetails}/Operator.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyPageCaseWidget}/Avatar.tsx +3 -4
- package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/Operator.tsx +3 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +76 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
- package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/create/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +12 -8
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +12 -8
- package/tests/functional/localCreateBuildDelete.test.js +12 -8
- package/tests/functional/localCreateListDelete.test.js +14 -9
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +13 -9
- package/tests/functional/localCreatePublishDelete.test.js +12 -8
- package/tests/functional/localCreateRenameDelete.test.js +12 -8
- package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +14 -14
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +17 -17
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +20 -20
- package/tests/functional/localLibCreateLibDeleteLib.test.js +17 -17
- package/tests/functional/localLibCreateLibExportImportLib.test.js +27 -27
- package/tests/functional/localLibCreateLibExportLib.test.js +19 -19
- package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +14 -14
- package/tests/functional/localLibCreateLibListDeleteLib.test.js +22 -22
- package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +31 -31
- package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +20 -20
- package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +13 -29
- package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +376 -0
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +18 -18
- package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +27 -27
- package/tests/functional/localPromoteRevertWP.test.js +9 -8
- package/tests/functional/localLibCreateLibPermDeleteLib.test.js +0 -144
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { fireEvent, render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyPicklist } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyPicklist', async () => {
|
|
11
|
+
render(<BasePegaDxilMyPicklist />);
|
|
12
|
+
expect(await screen.findByText('Picklist Sample')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('Picklist Helper Text')).toBeVisible();
|
|
14
|
+
|
|
15
|
+
const picklistElement = (screen.getByTestId('picklist-12345678') as HTMLSelectElement);
|
|
16
|
+
expect(picklistElement).toHaveAttribute('label', 'Picklist Sample');
|
|
17
|
+
expect(picklistElement.value).toContain('');
|
|
18
|
+
|
|
19
|
+
fireEvent.click(picklistElement);
|
|
20
|
+
|
|
21
|
+
fireEvent.change(picklistElement, { target: { value: 'Option 1' } });
|
|
22
|
+
|
|
23
|
+
expect(picklistElement.value).toContain('Option 1');
|
|
24
|
+
|
|
25
|
+
});
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"componentKey": "Pega_DXIL_MyRadiobuttons",
|
|
10
10
|
"type": "Field",
|
|
11
11
|
"subtype": "Picklist",
|
|
12
|
+
"subtypeLabel": "Radio buttons",
|
|
12
13
|
"icon": "images/pz-dropdown-active.svg",
|
|
13
14
|
"properties": [
|
|
14
15
|
{
|
|
@@ -17,6 +18,31 @@
|
|
|
17
18
|
"format": "TEXT",
|
|
18
19
|
"required": true
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"name": "labelOption",
|
|
23
|
+
"label": "Field label",
|
|
24
|
+
"format": "SELECT",
|
|
25
|
+
"defaultValue": "custom",
|
|
26
|
+
"visibility": "@PLATFORMNAME != 'launchpad'",
|
|
27
|
+
"source": [
|
|
28
|
+
{
|
|
29
|
+
"key": "default",
|
|
30
|
+
"value": "Default"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "custom",
|
|
34
|
+
"value": "Custom"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "label",
|
|
40
|
+
"label": "Custom field label",
|
|
41
|
+
"format": "VALUEINPUT",
|
|
42
|
+
"required": true,
|
|
43
|
+
"ruleType": "Paragraph",
|
|
44
|
+
"visibility": "@PLATFORMNAME != 'launchpad'"
|
|
45
|
+
},
|
|
20
46
|
{
|
|
21
47
|
"name": "readOnly",
|
|
22
48
|
"label": "Edit mode",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { fireEvent, render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyRadiobuttons } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyRadiobuttons', async () => {
|
|
11
|
+
render(<BasePegaDxilMyRadiobuttons />);
|
|
12
|
+
expect(await screen.findByText('Picklist Sample')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('Picklist Helper Text')).toBeVisible();
|
|
14
|
+
|
|
15
|
+
const radioElement = (screen.getByTestId('picklist-12345678') as HTMLSelectElement);
|
|
16
|
+
expect(radioElement.value).toBeUndefined();
|
|
17
|
+
|
|
18
|
+
const optionRadios = screen.getAllByRole('radio');
|
|
19
|
+
const option1 = optionRadios[1] as HTMLInputElement;
|
|
20
|
+
const option2 = optionRadios[2] as HTMLInputElement;
|
|
21
|
+
|
|
22
|
+
fireEvent.click(option1);
|
|
23
|
+
expect(option1).toBeChecked();
|
|
24
|
+
|
|
25
|
+
fireEvent.click(option2);
|
|
26
|
+
expect(option2).toBeChecked();
|
|
27
|
+
expect(option1).not.toBeChecked();
|
|
28
|
+
|
|
29
|
+
});
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"componentKey": "Pega_DXIL_MySearchbox",
|
|
10
10
|
"type": "Field",
|
|
11
11
|
"subtype": "Picklist",
|
|
12
|
+
"subtypeLabel": "Search box",
|
|
12
13
|
"icon": "images/pz-dropdown-active.svg",
|
|
13
14
|
"properties": [
|
|
14
15
|
{
|
|
@@ -17,6 +18,31 @@
|
|
|
17
18
|
"format": "TEXT",
|
|
18
19
|
"required": true
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"name": "labelOption",
|
|
23
|
+
"label": "Field label",
|
|
24
|
+
"format": "SELECT",
|
|
25
|
+
"defaultValue": "custom",
|
|
26
|
+
"visibility": "@PLATFORMNAME != 'launchpad'",
|
|
27
|
+
"source": [
|
|
28
|
+
{
|
|
29
|
+
"key": "default",
|
|
30
|
+
"value": "Default"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "custom",
|
|
34
|
+
"value": "Custom"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "label",
|
|
40
|
+
"label": "Custom field label",
|
|
41
|
+
"format": "VALUEINPUT",
|
|
42
|
+
"required": true,
|
|
43
|
+
"ruleType": "Paragraph",
|
|
44
|
+
"visibility": "@PLATFORMNAME != 'launchpad'"
|
|
45
|
+
},
|
|
20
46
|
{
|
|
21
47
|
"name": "readOnly",
|
|
22
48
|
"label": "Edit mode",
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { fireEvent, render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMySearchbox } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMySearchbox', async () => {
|
|
11
|
+
render(<BasePegaDxilMySearchbox />);
|
|
12
|
+
expect(await screen.findByText('Picklist Sample')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('Picklist Helper Text')).toBeVisible();
|
|
14
|
+
|
|
15
|
+
const searchboxElement = screen.getByTestId(
|
|
16
|
+
'picklist-12345678:combo-box:control'
|
|
17
|
+
) as HTMLInputElement;
|
|
18
|
+
// expect(searchboxElement).toHaveAttribute('role', 'searchbox');
|
|
19
|
+
expect(searchboxElement).toHaveAttribute('role', 'combobox');
|
|
20
|
+
expect(searchboxElement).toHaveAttribute('autocomplete', 'off');
|
|
21
|
+
expect(searchboxElement).toHaveAttribute('placeholder', 'Select...');
|
|
22
|
+
expect(searchboxElement.value).toContain('');
|
|
23
|
+
|
|
24
|
+
fireEvent.click(searchboxElement);
|
|
25
|
+
|
|
26
|
+
// because need to wait after button pressed before finding the data picker pop up, need to do this
|
|
27
|
+
// via "await" and "findByTestId" (as opposed to getByTestId)
|
|
28
|
+
const dataPickerPopUp = await screen.findByTestId(':menu:');
|
|
29
|
+
expect(dataPickerPopUp).not.toBeNull();
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
});
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx
CHANGED
|
@@ -179,7 +179,9 @@ export const doSearch = (
|
|
|
179
179
|
const selectedItem = menuHelpers.getSelected(updatedItems)[0];
|
|
180
180
|
let listIndex = -1;
|
|
181
181
|
const findSelectedItem = progressivePaginatedRecords.find(
|
|
182
|
+
// @ts-ignore
|
|
182
183
|
(record: { id: string }, index: number) => {
|
|
184
|
+
// @ts-ignore
|
|
183
185
|
if (record.id === selectedItem?.id) {
|
|
184
186
|
listIndex = index;
|
|
185
187
|
return true;
|
|
@@ -830,8 +832,10 @@ function PegaDxilMySearchbox(props: PegaDxilMySearchboxProps) {
|
|
|
830
832
|
const clearSelections = () => {
|
|
831
833
|
// @ts-ignore
|
|
832
834
|
setItems(cur =>
|
|
835
|
+
// @ts-ignore
|
|
833
836
|
menuHelpers.mapTree(cur, item => {
|
|
834
837
|
return {
|
|
838
|
+
// @ts-ignore
|
|
835
839
|
...item,
|
|
836
840
|
selected: false
|
|
837
841
|
};
|
|
@@ -1112,8 +1116,11 @@ function PegaDxilMySearchbox(props: PegaDxilMySearchboxProps) {
|
|
|
1112
1116
|
onChange={onChangeHandler}
|
|
1113
1117
|
onBlur={onBlurHandler}
|
|
1114
1118
|
menu={{
|
|
1119
|
+
// @ts-ignore
|
|
1115
1120
|
items: menuHelpers.mapTree(items, (item) => ({
|
|
1121
|
+
// @ts-ignore
|
|
1116
1122
|
...item,
|
|
1123
|
+
// @ts-ignore
|
|
1117
1124
|
testId: item.id ?? undefined,
|
|
1118
1125
|
// @ts-ignore
|
|
1119
1126
|
selected: item.items ? undefined : !!item.selected || item.id === selected?.id
|
|
@@ -165,10 +165,6 @@ export function updateWithTimeZone(stateFromTable, meta) {
|
|
|
165
165
|
return stateFromTable;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export function isHybrid() {
|
|
169
|
-
return typeof pega !== 'undefined' && typeof pega.desktop !== 'undefined';
|
|
170
|
-
}
|
|
171
|
-
|
|
172
168
|
export const isPageListInPath = (propertyName, currentClassID) => {
|
|
173
169
|
if (!propertyName.includes('.')) {
|
|
174
170
|
return false;
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyText } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyText', async () => {
|
|
11
|
+
render(<BasePegaDxilMyText />);
|
|
12
|
+
expect(await screen.findByText('Text Sample')).toBeVisible();
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const textElement = (screen.getByTestId('Text-12345678:input:control') as HTMLInputElement);
|
|
16
|
+
expect(textElement.value).toBe('');
|
|
17
|
+
|
|
18
|
+
expect(textElement).toHaveAttribute('placeholder', 'Text Placeholder');
|
|
19
|
+
});
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"componentKey": "Pega_DXIL_MyTextInput",
|
|
10
10
|
"type": "Field",
|
|
11
11
|
"subtype": "Text",
|
|
12
|
+
"subtypeLabel": "Text",
|
|
12
13
|
"icon": "images/pz-text-input-active.svg",
|
|
13
14
|
"properties": [
|
|
14
15
|
{
|
|
@@ -17,6 +18,31 @@
|
|
|
17
18
|
"format": "TEXT",
|
|
18
19
|
"required": true
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"name": "labelOption",
|
|
23
|
+
"label": "Field label",
|
|
24
|
+
"format": "SELECT",
|
|
25
|
+
"defaultValue": "custom",
|
|
26
|
+
"visibility": "@PLATFORMNAME != 'launchpad'",
|
|
27
|
+
"source": [
|
|
28
|
+
{
|
|
29
|
+
"key": "default",
|
|
30
|
+
"value": "Default"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "custom",
|
|
34
|
+
"value": "Custom"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "label",
|
|
40
|
+
"label": "Custom field label",
|
|
41
|
+
"format": "VALUEINPUT",
|
|
42
|
+
"required": true,
|
|
43
|
+
"ruleType": "Paragraph",
|
|
44
|
+
"visibility": "@PLATFORMNAME != 'launchpad'"
|
|
45
|
+
},
|
|
20
46
|
{
|
|
21
47
|
"name": "readOnly",
|
|
22
48
|
"label": "Edit mode",
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyTextInput } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyTextInput', async () => {
|
|
11
|
+
render(<BasePegaDxilMyTextInput />);
|
|
12
|
+
expect(await screen.findByText('TextInput Sample')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('TextInput Helper Text')).toBeVisible();
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
const textInputElement = (screen.getByTestId('TextInput-12345678') as HTMLInputElement);
|
|
17
|
+
expect(textInputElement.value).toBe('');
|
|
18
|
+
|
|
19
|
+
expect(textInputElement).toHaveAttribute('placeholder', 'TextInput Placeholder');
|
|
20
|
+
});
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"componentKey": "Pega_DXIL_MyTimeOfDay",
|
|
10
10
|
"type": "Field",
|
|
11
11
|
"subtype": "TimeOfDay",
|
|
12
|
+
"subtypeLabel": "TimeOfDay",
|
|
12
13
|
"icon": "images/pz-date-time-active.svg",
|
|
13
14
|
"properties": [
|
|
14
15
|
{
|
|
@@ -17,6 +18,31 @@
|
|
|
17
18
|
"format": "TEXT",
|
|
18
19
|
"required": true
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"name": "labelOption",
|
|
23
|
+
"label": "Field label",
|
|
24
|
+
"format": "SELECT",
|
|
25
|
+
"defaultValue": "custom",
|
|
26
|
+
"visibility": "@PLATFORMNAME != 'launchpad'",
|
|
27
|
+
"source": [
|
|
28
|
+
{
|
|
29
|
+
"key": "default",
|
|
30
|
+
"value": "Default"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "custom",
|
|
34
|
+
"value": "Custom"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "label",
|
|
40
|
+
"label": "Custom field label",
|
|
41
|
+
"format": "VALUEINPUT",
|
|
42
|
+
"required": true,
|
|
43
|
+
"ruleType": "Paragraph",
|
|
44
|
+
"visibility": "@PLATFORMNAME != 'launchpad'"
|
|
45
|
+
},
|
|
20
46
|
{
|
|
21
47
|
"name": "readOnly",
|
|
22
48
|
"label": "Edit mode",
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyTimeOfDay } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyTimeOfDay', async () => {
|
|
11
|
+
render(<BasePegaDxilMyTimeOfDay/>);
|
|
12
|
+
expect(await screen.findByText('TimeOfDay Label')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('TimeOfDay helper text')).toBeVisible();
|
|
14
|
+
|
|
15
|
+
// const dateElement = screen.getByRole('textbox');
|
|
16
|
+
// for some odd reason, checking the full string of "USD 0.00" doesn't pass
|
|
17
|
+
// expect(currencyElement).toHaveValue('USD 0.00');
|
|
18
|
+
|
|
19
|
+
const myHour = (screen.getByTestId(':time-input:control-hour') as HTMLInputElement);
|
|
20
|
+
expect(myHour.value).toContain('01');
|
|
21
|
+
expect(myHour).toHaveAttribute('placeholder', 'hh');
|
|
22
|
+
|
|
23
|
+
const myMinute = (screen.getByTestId(':time-input:control-minute') as HTMLInputElement);
|
|
24
|
+
expect(myMinute.value).toContain('30');
|
|
25
|
+
expect(myMinute).toHaveAttribute('placeholder', 'mm');
|
|
26
|
+
|
|
27
|
+
const myPeriod = (screen.getByTestId(':time-input:control-period') as HTMLSelectElement).value;
|
|
28
|
+
expect(myPeriod).toContain('PM');
|
|
29
|
+
|
|
30
|
+
// no clear button
|
|
31
|
+
|
|
32
|
+
// pressing time button, reveals a <div> that has no ID, so can't test for it.
|
|
33
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { fireEvent, render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const { BasePegaDxilMyTwoColumnDetails } = composeStories(DemoStories);
|
|
11
|
+
|
|
12
|
+
test('renders PegaDxilMyTwoColumnDetails', async () => {
|
|
13
|
+
render(<BasePegaDxilMyTwoColumnDetails />);
|
|
14
|
+
expect(await screen.findByText('Details Region template')).toBeVisible();
|
|
15
|
+
expect(await screen.findByText('Work Status')).toBeVisible();
|
|
16
|
+
expect(await screen.findByText('Case ID')).toBeVisible();
|
|
17
|
+
expect(await screen.findByText('Create date/time')).toBeVisible();
|
|
18
|
+
expect(await screen.findByText('Create Operator')).toBeVisible();
|
|
19
|
+
|
|
20
|
+
// expect(await screen.findByText('New')).toBeVisible();
|
|
21
|
+
|
|
22
|
+
expect(await screen.findByText('M-1002')).toBeVisible();
|
|
23
|
+
expect(await screen.findByText('December 11, 2022 at 8:06:27 PM')).toBeVisible();
|
|
24
|
+
|
|
25
|
+
// 2 columns of same
|
|
26
|
+
const SLADeadline = await screen.findAllByText('SLA Deadline');
|
|
27
|
+
expect(SLADeadline).toHaveLength(2);
|
|
28
|
+
|
|
29
|
+
const SLAGoal = await screen.findAllByText('SLA Goal');
|
|
30
|
+
expect(SLAGoal).toHaveLength(2);
|
|
31
|
+
|
|
32
|
+
const SLAStartTime = await screen.findAllByText('SLA Start Time');
|
|
33
|
+
expect(SLAStartTime).toHaveLength(2);
|
|
34
|
+
|
|
35
|
+
const Deadline = await screen.findAllByText('Deadline');
|
|
36
|
+
expect(Deadline).toHaveLength(2);
|
|
37
|
+
|
|
38
|
+
const Goal = await screen.findAllByText('Goal');
|
|
39
|
+
expect(Goal).toHaveLength(2);
|
|
40
|
+
|
|
41
|
+
const StartTime = await screen.findAllByText('Start Time');
|
|
42
|
+
expect(StartTime).toHaveLength(2);
|
|
43
|
+
|
|
44
|
+
const frenchBefore = screen.queryByText('french DigV2');
|
|
45
|
+
expect(frenchBefore).not.toBeInTheDocument();
|
|
46
|
+
|
|
47
|
+
// admin button
|
|
48
|
+
const adminButton = screen.getByRole('button');
|
|
49
|
+
fireEvent.click(adminButton);
|
|
50
|
+
|
|
51
|
+
const frenchArr = await screen.findAllByText('french DigV2');
|
|
52
|
+
expect(frenchArr[0]).toBeVisible();
|
|
53
|
+
expect(frenchArr[1]).toBeVisible();
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyTwoColumnForm } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyTwoColumnForm', async () => {
|
|
11
|
+
render(<BasePegaDxilMyTwoColumnForm />);
|
|
12
|
+
expect(await screen.findByText('Form Region template')).toBeVisible();
|
|
13
|
+
|
|
14
|
+
// labels
|
|
15
|
+
expect(await screen.findByText('First Name')).toBeVisible();
|
|
16
|
+
expect(await screen.findByText('Middle Name')).toBeVisible();
|
|
17
|
+
expect(await screen.findByText('Last Name')).toBeVisible();
|
|
18
|
+
expect(await screen.findByText('Email')).toBeVisible();
|
|
19
|
+
expect(await screen.findByText('Phone Number')).toBeVisible();
|
|
20
|
+
expect(await screen.findByText('Service Date')).toBeVisible();
|
|
21
|
+
|
|
22
|
+
const inputElements = screen.getAllByTestId(':input:control');
|
|
23
|
+
expect((inputElements[0] as HTMLInputElement).value).toBe('John');
|
|
24
|
+
expect((inputElements[1] as HTMLInputElement).value).toBe('');
|
|
25
|
+
expect((inputElements[2] as HTMLInputElement).value).toBe('Doe');
|
|
26
|
+
expect((inputElements[3] as HTMLInputElement).value).toBe('John@doe.com');
|
|
27
|
+
|
|
28
|
+
const myPhone = (screen.getByTestId(':phone-input:control') as HTMLInputElement).value;
|
|
29
|
+
expect(myPhone).toContain('(639) 797-5093');
|
|
30
|
+
|
|
31
|
+
const myClearMonth = (screen.getByTestId(':date-input:control-month') as HTMLInputElement).value;
|
|
32
|
+
expect(myClearMonth).toContain('01');
|
|
33
|
+
|
|
34
|
+
const myClearDay = (screen.getByTestId(':date-input:control-day') as HTMLInputElement).value;
|
|
35
|
+
expect(myClearDay).toContain('25');
|
|
36
|
+
|
|
37
|
+
const myClearYear = (screen.getByTestId(':date-input:control-year') as HTMLInputElement).value;
|
|
38
|
+
expect(myClearYear).toContain('2023');
|
|
39
|
+
|
|
40
|
+
// verify 2 columns
|
|
41
|
+
const fieldSet = screen.getByRole('group');
|
|
42
|
+
|
|
43
|
+
// <fieldset>
|
|
44
|
+
// <legend></legend>
|
|
45
|
+
// <div>
|
|
46
|
+
// <div>
|
|
47
|
+
// <div> 2 divs (columns) </div>
|
|
48
|
+
// </div>
|
|
49
|
+
// </div>
|
|
50
|
+
// </fieldset>
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line testing-library/no-node-access
|
|
53
|
+
expect(fieldSet.children[1].children[0].children[0].children).toHaveLength(2);
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
});
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"componentKey": "Pega_DXIL_MyURL",
|
|
10
10
|
"type": "Field",
|
|
11
11
|
"subtype": "Text-URL",
|
|
12
|
+
"subtypeLabel": "URL",
|
|
12
13
|
"icon": "images/pz-url-active.svg",
|
|
13
14
|
"properties": [
|
|
14
15
|
{
|
|
@@ -17,6 +18,31 @@
|
|
|
17
18
|
"format": "TEXT",
|
|
18
19
|
"required": true
|
|
19
20
|
},
|
|
21
|
+
{
|
|
22
|
+
"name": "labelOption",
|
|
23
|
+
"label": "Field label",
|
|
24
|
+
"format": "SELECT",
|
|
25
|
+
"defaultValue": "custom",
|
|
26
|
+
"visibility": "@PLATFORMNAME != 'launchpad'",
|
|
27
|
+
"source": [
|
|
28
|
+
{
|
|
29
|
+
"key": "default",
|
|
30
|
+
"value": "Default"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "custom",
|
|
34
|
+
"value": "Custom"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "label",
|
|
40
|
+
"label": "Custom field label",
|
|
41
|
+
"format": "VALUEINPUT",
|
|
42
|
+
"required": true,
|
|
43
|
+
"ruleType": "Paragraph",
|
|
44
|
+
"visibility": "@PLATFORMNAME != 'launchpad'"
|
|
45
|
+
},
|
|
20
46
|
{
|
|
21
47
|
"name": "readOnly",
|
|
22
48
|
"label": "Edit mode",
|
package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
const { BasePegaDxilMyUrl } = composeStories(DemoStories);
|
|
9
|
+
|
|
10
|
+
test('renders PegaDxilMyUrl', async () => {
|
|
11
|
+
render(<BasePegaDxilMyUrl />);
|
|
12
|
+
expect(await screen.findByText('URL Sample')).toBeVisible();
|
|
13
|
+
expect(await screen.findByText('URL Helper Text')).toBeVisible();
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
const urlElement = (screen.getByTestId('url-12345678') as HTMLInputElement);
|
|
17
|
+
expect(urlElement.value).toBe('');
|
|
18
|
+
|
|
19
|
+
expect(urlElement).toHaveAttribute('placeholder', 'URL Placeholder');
|
|
20
|
+
});
|