Merge pull request #1095 from Safelite/feature/richardson/INSR-wait.to.show.coverage.copy
text for coverage statement copy waiting to show
This commit is contained in:
commit
c423998e9d
3 changed files with 20 additions and 4 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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' });
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue