unit test updates
This commit is contained in:
parent
774907c00e
commit
86c1661197
3 changed files with 12 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ Object {
|
|||
},
|
||||
"widget": Object {
|
||||
"defaultSiteHeader": "SiteSubHeaderWidget",
|
||||
"disclaimerText": "DisclaimerWidget",
|
||||
"noTpa": "ContentGroupNoTPAWidget",
|
||||
"notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -156,6 +156,16 @@ describe('Bailout page', () => {
|
|||
// Assert
|
||||
expect(siteFooter.exists()).toBeTruthy();
|
||||
});
|
||||
test('disclaimer text block', () => {
|
||||
// Arrange
|
||||
const wrapper = shallowMount(bailoutPage, getMountOptions());
|
||||
|
||||
// Act
|
||||
const disclaimerText = wrapper.findComponent({ ref: 'disclaimerText' });
|
||||
|
||||
// Assert
|
||||
expect(disclaimerText.exists()).toBeTruthy();
|
||||
});
|
||||
});
|
||||
describe('computed', () => {
|
||||
describe('subHeaderCmsWidgetName', () => {
|
||||
|
|
|
|||
|
|
@ -71,6 +71,7 @@
|
|||
@backClicked="backButtonAction"
|
||||
@ForwardClicked="forwardButtonAction" />
|
||||
<textBlock
|
||||
ref="disclaimerText"
|
||||
class="mt-5 mb-5"
|
||||
cmsWidgetName="DisclaimerWidget"
|
||||
typeStyle="caption" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue