diff --git a/jest.config.js b/jest.config.js index efec3da84..87d9800fb 100644 --- a/jest.config.js +++ b/jest.config.js @@ -22,6 +22,8 @@ module.exports = { "!src/common-components/funnel-header/menu-modal/**/*.vue", "!src/layouts/schedule/helpers/schedule-helper.js", // Temp test exclusion while in development "!src/layouts/review/*.vue", // Temp test exclusion while in development + "!src/layouts/payment/*.vue", // Temp test exclusion while in development + "!src/layouts/payment-pia-return/*.vue", // Temp test exclusion while in development // END ], // ! means exclude from coverage. testMatch: ["**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)"], diff --git a/package-lock.json b/package-lock.json index 8d4b6e08d..91e44113b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "canvas-confetti": "^1.4.0", "core-js": "^3.6.5", "http-status-codes": "^2.1.4", + "iframe-resizer": "^4.3.7", "jest-junit": "^13.0.0", "maska": "^1.5.0", "vee-validate": "^4.5.7", @@ -11813,6 +11814,18 @@ "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", "dev": true }, + "node_modules/iframe-resizer": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/iframe-resizer/-/iframe-resizer-4.3.7.tgz", + "integrity": "sha512-a3EGVScU9NtUpj6lWvGhVw3EfOw5AopRs5xGsQU385kWdgQt++OsD6PCnTV+8YkgBu/g28rLIh0EztFg9UQr1Q==", + "engines": { + "node": ">=0.8.0" + }, + "funding": { + "type": "individual", + "url": "https://github.com/davidjbradshaw/iframe-resizer/blob/master/FUNDING.md" + } + }, "node_modules/ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", @@ -33845,6 +33858,11 @@ "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", "dev": true }, + "iframe-resizer": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/iframe-resizer/-/iframe-resizer-4.3.7.tgz", + "integrity": "sha512-a3EGVScU9NtUpj6lWvGhVw3EfOw5AopRs5xGsQU385kWdgQt++OsD6PCnTV+8YkgBu/g28rLIh0EztFg9UQr1Q==" + }, "ignore": { "version": "4.0.6", "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", diff --git a/package.json b/package.json index a910ad0af..d99b971c2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "canvas-confetti": "^1.4.0", "core-js": "^3.6.5", "http-status-codes": "^2.1.4", + "iframe-resizer": "^4.3.7", "jest-junit": "^13.0.0", "maska": "^1.5.0", "vee-validate": "^4.5.7", diff --git a/public/css/hop-styling.css b/public/css/hop-styling.css index 1f0b0ddc2..1c0b155a0 100644 --- a/public/css/hop-styling.css +++ b/public/css/hop-styling.css @@ -75,14 +75,11 @@ body .creditCardSpecific div { padding: 8px 0; } body .creditCardSpecific div .headerlinecontainer { - padding: 0; + display: none; } body .creditCardSpecific div label { font-weight: 500; } -body .creditCardSpecific div:first-child { - display: none; -} body .creditCardSpecific #infoRow2 { margin-bottom: 0; } diff --git a/public/scss/hop-styling.scss b/public/scss/hop-styling.scss index 0e646a591..badab0912 100644 --- a/public/scss/hop-styling.scss +++ b/public/scss/hop-styling.scss @@ -88,14 +88,11 @@ body { div { padding: 8px 0; .headerlinecontainer { - padding: 0; + display: none; } label { font-weight: 500; } - &:first-child { - display: none; - } } #infoRow2 { margin-bottom: 0; diff --git a/src/App.vue b/src/App.vue index aef77fcb0..31fb663c3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,15 +5,33 @@ + diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index e4c997f6d..24a8b8f41 100644 --- a/src/digital-components/button-question/button-question.vue +++ b/src/digital-components/button-question/button-question.vue @@ -92,6 +92,7 @@ import listButton from "@/ux-components/list-button/list-button"; import listButtonHorizontal from "@/ux-components/list-button-horizontal/list-button-horizontal"; import listCard from "@/ux-components/list-card/list-card"; import radio from "@/ux-components/radio/radio"; +import checkbox from "@/ux-components/checkbox/checkbox"; import { useField, ErrorMessage } from "vee-validate"; import { queryStrings } from "@/constants/query-strings"; @@ -132,7 +133,6 @@ export default { suppressError: Boolean, useTextForValue: Boolean, valueToLogType: String, - additionalButtonData: Object, isSmallQuestionText: Boolean, customButtonQuestionId: String, logDisplayedValuesEvent: { @@ -209,6 +209,9 @@ export default { case "radio": classes = "ui-radio d-flex"; break; + case "checkbox": + classes = "ui-checkbox d-flex"; + break; case "servicePackageRadio": classes = "package-main"; break; @@ -252,7 +255,7 @@ export default { buttonFooterCopy: answer.buttonFooterCopy ?? answer.buttonFooterCopy, buttonImage: answer.buttonImage ?? answer.AnswerImageUrl, buttonImageId: answer.buttonImageId ?? answer.ImageId, - additionalButtonData: answer.additionalButtonData ?? answer.additionalButtonData, + additionalButtonData: answer.additionalButtonData, groupName: this.formatString(this.groupName), value: answer.value ?? @@ -317,6 +320,7 @@ export default { listCard, ErrorMessage, radio, + checkbox, }, }; diff --git a/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue b/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue deleted file mode 100644 index 11ee74e32..000000000 --- a/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - diff --git a/src/fmg-components/loading-modal/loading-modal.vue b/src/fmg-components/loading-modal/loading-modal.vue index 4aa5cacdf..c3722000b 100644 --- a/src/fmg-components/loading-modal/loading-modal.vue +++ b/src/fmg-components/loading-modal/loading-modal.vue @@ -1,5 +1,5 @@