From fae934fce0df0aae2667dc19171268f3a0bd04af Mon Sep 17 00:00:00 2001 From: Bryan Mauger Date: Thu, 22 Sep 2022 08:51:54 -0400 Subject: [PATCH 1/5] CSR-795 update paragraph spacing. --- src/common-components/modal/modal.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common-components/modal/modal.vue b/src/common-components/modal/modal.vue index 686c53136..4dd99fbc5 100644 --- a/src/common-components/modal/modal.vue +++ b/src/common-components/modal/modal.vue @@ -60,6 +60,11 @@ export default { ul { margin-bottom: 0; } + p { + &:last-child { + margin-bottom: 0; + } + } } } } From 8cb0a3c26a64e80ed659bbaef5bdedd3e17e230e Mon Sep 17 00:00:00 2001 From: CarlNation Date: Fri, 23 Sep 2022 11:28:10 -0400 Subject: [PATCH 2/5] CSR-855 send save quote id to heritage --- src/helpers/heritage-integration/navigation-helper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helpers/heritage-integration/navigation-helper.js b/src/helpers/heritage-integration/navigation-helper.js index 0630d8b65..9720598eb 100644 --- a/src/helpers/heritage-integration/navigation-helper.js +++ b/src/helpers/heritage-integration/navigation-helper.js @@ -50,6 +50,7 @@ export async function navigateToHeritageFunnel(shouldSaveOrder = true) { { corid: store.getters.order.referralCorrelationId, src: "concept-funnel", + conceptsqid: store.getters.applicationUser.savedSessionId } ); } From c4056d1b0c71dd233e3d59cbd8252d51c05e3e02 Mon Sep 17 00:00:00 2001 From: FrankRua Date: Fri, 23 Sep 2022 11:49:40 -0400 Subject: [PATCH 3/5] update pipelines --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 1ded09677..4767a7739 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -26,7 +26,7 @@ resources: type: github name: Safelite/AzureDevOps endpoint: Safelite - ref: refs/tags/t5.5.19 + ref: refs/tags/t5.5.31 variables: - group: Digital-Infrastructure @@ -173,5 +173,6 @@ stages: cfDistributionId: $(cfDistributionId) - template: templates/digital/auto-tag.yml@AzureDevOps parameters: + dependsOn: prodBuildDeployment userName: SafeliteAzureDevops userEmail: githubazuredevops@safelite.com \ No newline at end of file From 0a4ffee4478fd0b683261abeb6a252e3f6e2be3d Mon Sep 17 00:00:00 2001 From: Scott Kiener Date: Thu, 29 Sep 2022 07:36:30 -0400 Subject: [PATCH 4/5] CSR-726 | Cash or Insurance Toggle Unit Tests Default selection logic Fix for list-button-horizontal --- .../cash-or-insurance-question.spec.js | 57 +++++++++++++++++++ .../cash-or-insurance-question.vue | 8 ++- src/layouts/quote/quote.vue | 30 +++++++++- .../list-button-horizontal.vue | 2 +- 4 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js diff --git a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js new file mode 100644 index 000000000..7dbe32604 --- /dev/null +++ b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.spec.js @@ -0,0 +1,57 @@ +import { shallowMount } from "@vue/test-utils"; +import CashOrInsuranceQuestion from "./cash-or-insurance-question"; + + +describe("cash-or-insurance-question.vue", () => { + it("Should emit a false boolean value when selectedValues is 'CashAnswer' (update:modelValue)", async () => { + + //Arrange + const wrapper = shallowMount(CashOrInsuranceQuestion, { + propsData: mockProps, + mixins: [mockMixin] + }); + + //Act + wrapper.vm.selectedValues = "CashAnswer"; + await wrapper.vm.$nextTick(); + + //Assert + expect(wrapper.emitted()["update:modelValue"][0]).toEqual([false]); + expect(typeof wrapper.emitted()["update:modelValue"][0][0]).toBe("boolean"); + }); + it("Should return 'CashAnswer' from selectedValues when modelValue is set to false", async () => { + + //Arrange + const wrapper = shallowMount(CashOrInsuranceQuestion, { + propsData: mockProps, + mixins: [mockMixin] + }); + + //Act + wrapper.setProps({modelValue : false}); + await wrapper.vm.$nextTick(); + + //Assert + expect(wrapper.vm.selectedValues).toBe("CashAnswer"); + }); +}); + + /////////////// + // Constants // + /////////////// + +const mockMixin = { + methods: { + getCmsContent: jest.fn((widgetName, cmsFieldName) => { + return mockCmsContent[cmsFieldName]; + }) + } +} + +const mockProps = { + modelValue: true, +} + +const mockCmsContent = { + 'Text': "Sample text here.", +} diff --git a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue index b2431406d..f745e8443 100644 --- a/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue +++ b/src/layouts/quote/cash-or-insurance-question/cash-or-insurance-question.vue @@ -14,6 +14,9 @@