diff --git a/playwright-tests/.npmrc b/playwright-tests/.npmrc index 44002a41d..13a1273bf 100644 --- a/playwright-tests/.npmrc +++ b/playwright-tests/.npmrc @@ -1,3 +1,3 @@ -registry=https://pkgs.dev.azure.com/Safelite/Digital/_packaging/DigitalQA/npm/registry/ -always-auth=true -//pkgs.dev.azure.com/Safelite/Digital/_packaging/DigitalQA/npm/registry/:_authToken=${NPM_TOKEN} \ No newline at end of file +registry=https://pkgs.dev.azure.com/Safelite/Digital/_packaging/DigitalQA/npm/registry/ + +always-auth=true \ No newline at end of file diff --git a/playwright-tests/tests/CashRepairInShopAfterPay.ts b/playwright-tests/tests/CashRepairInShopAfterPay.ts index 1beced679..bd5ff6abd 100644 --- a/playwright-tests/tests/CashRepairInShopAfterPay.ts +++ b/playwright-tests/tests/CashRepairInShopAfterPay.ts @@ -42,7 +42,7 @@ const cashRepairInShopAfterPayTests: ITestCase[] = []; const tc = { name: `CashRepairInShopAfterPay`, - tags: ['@E2E','@CashRepairInShopAfterPay', '@test_report', '@CASH', '@CASH-836'], + tags: ['@E2E','@CashRepairInShopAfterPay', '@test_report', '@CASH', '@CASH-1187'], testData: cashRepairInShopAfterPayData }; cashRepairInShopAfterPayTests.push(tc); diff --git a/playwright-tests/tests/CashRepairInShopPayPal.ts b/playwright-tests/tests/CashRepairInShopPayPal.ts index a2e7351f1..2a36127f4 100644 --- a/playwright-tests/tests/CashRepairInShopPayPal.ts +++ b/playwright-tests/tests/CashRepairInShopPayPal.ts @@ -42,7 +42,7 @@ const cashRepairInShopPayPalTests: ITestCase[] = []; const tc = { name: `CashRepairInShopPayPal`, - tags: ['@E2E','@CashRepairInShopPayPal', '@test_report', '@CASH', '@CASH-836'], + tags: ['@E2E','@CashRepairInShopPayPal', '@test_report', '@CASH'], testData: cashRepairInShopPayPalData }; cashRepairInShopPayPalTests.push(tc); diff --git a/playwright-tests/tests/CashRepairMobileCreditCard.ts b/playwright-tests/tests/CashRepairMobileCreditCard.ts index 1e379439f..b776f7fa5 100644 --- a/playwright-tests/tests/CashRepairMobileCreditCard.ts +++ b/playwright-tests/tests/CashRepairMobileCreditCard.ts @@ -55,7 +55,7 @@ const cashRepairMobileCCTests: ITestCase[] = []; const tc = { name: `CashRepairMobileCreditCard`, - tags: ['@E2E','@CashRepairMobileCreditCard', '@test_report', '@CASH', '@CASH-836'], + tags: ['@E2E','@CashRepairMobileCreditCard', '@test_report', '@CASH'], testData: cashRepairMobileCCData }; cashRepairMobileCCTests.push(tc); diff --git a/playwright-tests/tests/InsuranceAcuityPaypal.ts b/playwright-tests/tests/InsuranceAcuityPaypal.ts index b70c60e2d..0a97fc794 100644 --- a/playwright-tests/tests/InsuranceAcuityPaypal.ts +++ b/playwright-tests/tests/InsuranceAcuityPaypal.ts @@ -90,7 +90,7 @@ const insuranceAcuityPaypalTests: ITestCase[] = []; const tc = { name: `InsuranceAcuityPaypal`, - tags: ['@E2E','@InsuranceAcuityPaypal', '@test_report', '@Insurance'], + tags: ['@E2E','@InsuranceAcuityPaypal', '@test_report', '@Insurance', '@CASH-1187'], testData: insuranceAcuityPaypalData }; insuranceAcuityPaypalTests.push(tc); diff --git a/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts b/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts index 3ec0ff648..e81038f44 100644 --- a/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts +++ b/playwright-tests/tests/alert-validation/alert0001_HeavyTruck.ts @@ -46,7 +46,7 @@ const heavyTruckTests: ITestCase[] = []; const tc: ITestCase = { name: `alert0001 Heavy Truck`, - tags: ['@Alert', '@HeavyTruck', '@test_report'], + tags: ['@Alert', '@HeavyTruck', '@test_report', '@CASH-1187'], testData: heavyTruckData }; diff --git a/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts b/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts index d63bb5fcf..e79c0c175 100644 --- a/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts +++ b/playwright-tests/tests/alert-validation/alert0003_SplitWindshield.ts @@ -64,7 +64,7 @@ vehiclesToTest.forEach((vehicle, index) => { const tc = { name: `alert0003_${vehicle.make.toLowerCase()}_${vehicle.model.toLowerCase()} Windshield selected, when vehicle has split windshield - ${vehicle.make} ${vehicle.model} ${vehicle.year}`, - tags: ['@Alert', '@SplitWindshield', '@test_report', `@${vehicle.make.toLowerCase()}`, '@CASH-836'], + tags: ['@Alert', '@SplitWindshield', '@test_report', `@${vehicle.make.toLowerCase()}`], testData: testData }; diff --git a/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts b/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts index d01bb91f8..d4f1c2545 100644 --- a/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts +++ b/playwright-tests/tests/alert-validation/alert0004_RepairOnly.ts @@ -33,7 +33,7 @@ const repairOnlyTests: ITestCase[] = []; const tc = { name: `alert0004 Replace selected when not offered`, - tags: ['@Alert', '@RepairOnly', '@test_report', '@CASH-836'], + tags: ['@Alert', '@RepairOnly', '@test_report', '@CASH-1187'], testData: repairOnlyData }; repairOnlyTests.push(tc); diff --git a/public/css/site-2020Styling.css b/public/css/site-2020Styling.css index a605df285..e47350565 100644 --- a/public/css/site-2020Styling.css +++ b/public/css/site-2020Styling.css @@ -194,16 +194,6 @@ html .in-shop.vspacing .list-group.radio.vspacing .list-group-item { margin-bottom: 2px; } -@media (min-width: 500px) { - .form-group { - width: 80%; - } -} -@media (min-width: 800px) { - .form-group { - width: 60%; - } -} .list-group { margin-bottom: 20px; padding-left: 0; diff --git a/public/scss/site-2020Styling.scss b/public/scss/site-2020Styling.scss index ec72ae1b9..b3b4b21ce 100644 --- a/public/scss/site-2020Styling.scss +++ b/public/scss/site-2020Styling.scss @@ -188,17 +188,6 @@ margin-bottom: 2px; } - @media (min-width: 500px) { - .form-group { - width: 80%; - } - } - @media (min-width: 800px) { - .form-group { - width: 60%; - } - } - .list-group { margin-bottom: 20px; padding-left: 0; diff --git a/src/assets/img/icons/question-mark-icon-blue.svg b/src/assets/img/icons/question-mark-icon-blue.svg new file mode 100644 index 000000000..6b75c70d6 --- /dev/null +++ b/src/assets/img/icons/question-mark-icon-blue.svg @@ -0,0 +1,3 @@ + diff --git a/src/constants/progress-bar-mapper.js b/src/constants/progress-bar-mapper.js index 50b353151..f177b6cf7 100644 --- a/src/constants/progress-bar-mapper.js +++ b/src/constants/progress-bar-mapper.js @@ -1,28 +1,95 @@ -const pagePercentageMapper = { - vehicle: 4, - "vehicle-damage": 16, - estimate: 28, - "service-zip": 32, - "vin-lookup": 32, - "license-plate-lookup": 32, - "address-lookup": 32, - "address-vehicles": 36, - "part-questions": 40, - "molding-questions": 40, - "vehicle-parts": 40, - "capability-questions": 40, - quote: 48, - "insurance-company": 52, - // TODO: REMOVE THIS COMMENT AND BELOW, ONCE CASH-803 (SERVICE-LOCATION AND SCHEDULE PAGE COMBINATION) HAS BEEN VETTED - // "service-location": 60, - schedule: 64, - "mobile-details": 76, - "customer-details": 84, - "payment-method": 92, - payment: 96, - confirmation: 100, +export const pageProgressMapper = { + //Combine progress bar slide percent and button steps + vehicle: { + percent: 7, + step: 1, + }, + "vehicle-damage": { + percent: 10, + step: 1, + }, + estimate: { + percent: 14, + step: 1, + }, + "service-zip": { + percent: 18, + step: 1, + }, + "vin-lookup": { + percent: 18, + step: 1, + }, + "license-plate-lookup": { + percent: 18, + step: 1, + }, + "address-lookup": { + percent: 18, + step: 1, + }, + "address-vehicles": { + percent: 25, + step: 1, + }, + "part-questions": { + percent: 30, + step: 1, + }, + "molding-questions": { + percent: 30, + step: 1, + }, + "vehicle-parts": { + percent: 30, + step: 1, + }, + "capability-questions": { + percent: 30, + step: 1, + }, + quote: { + percent: 39, //Must be 39 + step: 2, + }, + "insurance-company": { + percent: 52, + step: 2, + }, + "service-location": { + percent: 60, + step: 2, + }, + schedule: { + percent: 70.5, //Must be 70.5 + step: 3, + }, + "mobile-details": { + percent: 76, + step: 3, + }, + "customer-details": { + percent: 84, + step: 3, + }, + "payment-method": { + percent: 92, //Must be 92 + step: 3, + }, + payment: { + percent: 96, + step: 4, + }, + confirmation: { + percent: 100, + step: 4, + }, }; export const getProgressBarPercentage = (page) => { - return pagePercentageMapper[page] || 0; + return pageProgressMapper[page]?.percent || 0; +}; + +export const getProgressBarStep = (page) => { + return pageProgressMapper[page]?.step || 1; }; diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index 2eaf204ad..82fbf424c 100644 --- a/src/digital-components/button-question/button-question.vue +++ b/src/digital-components/button-question/button-question.vue @@ -7,7 +7,7 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com ">