text for coverage statement copy waiting to show

This commit is contained in:
Bill Richardson 2026-02-18 16:10:37 -05:00
parent 4b4df0ec46
commit 37e3bbbeee
3 changed files with 20 additions and 4 deletions

View file

@ -5,6 +5,7 @@ Object {
"CANCEL_CLAIM_REF_NAME": "CancelClaimModal",
"RECAL_MODAL_REF_NAME": "RecalModal",
"baseServiceLineItems": Array [],
"isPageLoading": true,
"widget": Object {
"disclaimerText": "DisclaimerWidget",
"explanatoryText": "ExplanatoryTextWidget",

View file

@ -134,7 +134,10 @@ describe('coverageStatement.vue', () => {
});
test('Should render site subheader', () => {
// Arrange
const { wrapper } = getMountedComponent({});
const initialDataForTest = {
isPageLoading: false
};
const { wrapper } = getMountedComponent({}, initialDataForTest);
// Act
const subheader = wrapper.find({ ref: 'siteSubHeader' });
@ -145,7 +148,10 @@ describe('coverageStatement.vue', () => {
test('Should render explanatory text', () => {
// Arrange
const { wrapper } = getMountedComponent({});
const initialDataForTest = {
isPageLoading: false
};
const { wrapper } = getMountedComponent({}, initialDataForTest);
// Act
const explanatoryText = wrapper.find({ ref: 'explanatoryText' });
@ -155,7 +161,10 @@ describe('coverageStatement.vue', () => {
});
test('Should render secondary text', () => {
// Arrange
const { wrapper } = getMountedComponent({});
const initialDataForTest = {
isPageLoading: false
};
const { wrapper } = getMountedComponent({}, initialDataForTest);
// Act
const secondaryText = wrapper.find({ ref: 'secondaryText' });

View file

@ -10,7 +10,8 @@
cmsWidgetName="SiteHeaderWidget" />
</div>
<div class="iss-heritage-container-width">
<div class="coverage-statement-container iss-heritage-content-container-width">
<div v-if="!isPageLoading"
class="coverage-statement-container iss-heritage-content-container-width">
<h5
ref="siteSubHeader"
class="sub-header text-black"
@ -206,6 +207,7 @@ export default {
data() {
return {
baseServiceLineItems: [],
isPageLoading: true,
widget: {
disclaimerText: 'DisclaimerWidget',
subheader: 'SiteSubHeaderWidget',
@ -347,6 +349,9 @@ export default {
}
},
mounted() {
if (this.isPageLoading) {
showIssLoadingModal(true);
}
setupModalLinks(this);
},
methods: {
@ -370,6 +375,7 @@ export default {
}
showIssLoadingModal(false);
this.isPageLoading = false;
},
async getPricedParts() {
const { glassParts, supportingItems } = this.mainStore.order.lineItems;