Merge pull request #794 from Safelite/feature/brydon/SSR-1399
Removing section
This commit is contained in:
commit
1652627bd0
2 changed files with 1 additions and 53 deletions
|
|
@ -122,16 +122,6 @@ describe('TPAConfirmation.vue', () => {
|
|||
// Assert
|
||||
expect(bodyTwo.exists()).toBe(true);
|
||||
});
|
||||
test('Should render Contact Carrier text', () => {
|
||||
// Arrange
|
||||
const { wrapper } = getMountedComponent({});
|
||||
|
||||
// Act
|
||||
const contactCarrierText = wrapper.findComponent({ ref: 'contactCarrierText' });
|
||||
|
||||
// Assert
|
||||
expect(contactCarrierText.exists()).toBe(true);
|
||||
});
|
||||
test('Should render Order Details title', () => {
|
||||
// Arrange
|
||||
const { wrapper } = getMountedComponent({});
|
||||
|
|
@ -313,19 +303,6 @@ describe('TPAConfirmation.vue', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
describe('setBailoutInfo', () => {
|
||||
test('setBailout method is called when routerLink clicked', async () => {
|
||||
// Arrange
|
||||
const { wrapper } = getMountedComponent({});
|
||||
const contactCarrierText = wrapper.get('#contactCarrierText');
|
||||
|
||||
// Act
|
||||
await contactCarrierText.trigger('click');
|
||||
|
||||
// Assert
|
||||
expect(wrapper.vm.mainStore.setBailout).toHaveBeenCalledWith(bailoutMessage.RequestCallback);
|
||||
});
|
||||
});
|
||||
describe('Navigation', () => {
|
||||
test('If Advanced flow, forward button action navigates to carrier URL', () => {
|
||||
// Arrange
|
||||
|
|
|
|||
|
|
@ -35,13 +35,7 @@
|
|||
<textBlock
|
||||
ref="tpaConfirmationBodyTwo"
|
||||
:customText="tpaConfirmationBodyTwo"
|
||||
class="small mt-0 mb-4" />
|
||||
<textBlock
|
||||
id="contactCarrierText"
|
||||
ref="contactCarrierText"
|
||||
:customText="contactCarrierText"
|
||||
class="contact-carrier-text small"
|
||||
@click="setBailoutInfo()" />
|
||||
class="small mt-0" />
|
||||
<div ref="confirmationOrderDetailsSection">
|
||||
<textBlock
|
||||
ref="tpaConfirmationOrderDetailsTitle"
|
||||
|
|
@ -160,20 +154,6 @@ export default {
|
|||
tpaConfirmationBodyTwo() {
|
||||
return this.getCmsContent('TPAConfirmationContent', 'BodyText2');
|
||||
},
|
||||
contactCarrierText() {
|
||||
const contactCarrierText = this.getCmsContent(
|
||||
'ContactCarrierContent',
|
||||
'Text'
|
||||
)?.replaceAll(
|
||||
'{custom:carrierPhoneNumber}',
|
||||
this.carrierPhoneNumber
|
||||
);
|
||||
return this.processIfStatements(
|
||||
contactCarrierText,
|
||||
'custom',
|
||||
this.getCustomValueFromString
|
||||
);
|
||||
},
|
||||
orderDetailsTitle() {
|
||||
return this.getCmsContent('OrderDetailsContent', 'HeaderText');
|
||||
},
|
||||
|
|
@ -238,9 +218,6 @@ export default {
|
|||
return null;
|
||||
}
|
||||
},
|
||||
setBailoutInfo() {
|
||||
this.mainStore.setBailout(bailoutMessage.RequestCallback);
|
||||
},
|
||||
toDisplayPhoneNumber,
|
||||
formatAmountInDollars,
|
||||
processIfStatements
|
||||
|
|
@ -262,10 +239,4 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.contact-carrier-text {
|
||||
:deep(a) {
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Reference in a new issue