Merge branch 'develop' into feature/CASH-185

This commit is contained in:
CarlNation 2025-02-24 11:59:17 -05:00 committed by GitHub
commit e75054b8f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 14 deletions

View file

@ -1,10 +1,9 @@
<template>
<baseInputButton v-bind="$props" @buttonClicked="handleAnswerChange" v-model="selectedValue">
<div
class="package-label"
class="package-label pricing-by-day-pkg-lbl"
:class="[
this.buttonLabelSubCopy ? 'has-subheader' : '',
this.isInsuranceSelected ? 'pricing-by-day-pkg-lbl-ins' : 'pricing-by-day-pkg-lbl',
!this.additionalButtonData.servicePackageDiscount ? 'adjust-top' : '',
]"
for="testradio">
@ -21,9 +20,7 @@
</div>
<span class="col md-6 service-package-discount-pricing-by-day">
<div>
<span v-if="!isInsuranceSelected" class="caption pricing-by-day">
as low as
</span>
<span class="caption pricing-by-day">as low as</span>
<div
class="strikethrough-discount-price"
v-if="shouldDisplayStrikeThroughPrice"
@ -36,9 +33,7 @@
<p class="m-0">
<span v-html="this.buttonLabel"></span>
<span class="pricing-info-pricing-by-day">
<span v-if="!isInsuranceSelected" class="caption pricing-by-day">
as low as
</span>
<span class="caption pricing-by-day">as low as</span>
<span
class="strikethrough-price"
v-if="shouldDisplayStrikeThroughPrice"

View file

@ -35,7 +35,7 @@ jest.mock("@/mixins/experiment-mixin.js", () => ({
}
},
hasSettingEqualTo(settingName, settingValue) {
return true;
return false;
},
},
}));

View file

@ -227,11 +227,9 @@ export default {
methods: {
processIfStatements,
hasPricingByDay() {
return (
experimentMixin.methods.hasSettingEqualTo(
experimentSettings.PRICING_BY_DAY,
"true"
) && !this.isInsuranceSelected
return experimentMixin.methods.hasSettingEqualTo(
experimentSettings.PRICING_BY_DAY,
"true"
);
},
getHeaderTextFromCms(cmsWidgetName) {
@ -264,6 +262,10 @@ export default {
servicePackageDiscount,
})
).toFixed(2);
if (this.hasPricingByDay()) {
return "$" + formattedPriceFloat;
}
return (this.isInsuranceSelected ? "As little as $" : "$") + formattedPriceFloat;
},
getPackagePrice(packageName, { discountedPrice = false, servicePackageDiscount = false }) {