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 {
|
"widget": Object {
|
||||||
"defaultSiteHeader": "SiteSubHeaderWidget",
|
"defaultSiteHeader": "SiteSubHeaderWidget",
|
||||||
|
"disclaimerText": "DisclaimerWidget",
|
||||||
"noTpa": "ContentGroupNoTPAWidget",
|
"noTpa": "ContentGroupNoTPAWidget",
|
||||||
"notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop",
|
"notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,16 @@ describe('Bailout page', () => {
|
||||||
// Assert
|
// Assert
|
||||||
expect(siteFooter.exists()).toBeTruthy();
|
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('computed', () => {
|
||||||
describe('subHeaderCmsWidgetName', () => {
|
describe('subHeaderCmsWidgetName', () => {
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@
|
||||||
@backClicked="backButtonAction"
|
@backClicked="backButtonAction"
|
||||||
@ForwardClicked="forwardButtonAction" />
|
@ForwardClicked="forwardButtonAction" />
|
||||||
<textBlock
|
<textBlock
|
||||||
|
ref="disclaimerText"
|
||||||
class="mt-5 mb-5"
|
class="mt-5 mb-5"
|
||||||
cmsWidgetName="DisclaimerWidget"
|
cmsWidgetName="DisclaimerWidget"
|
||||||
typeStyle="caption" />
|
typeStyle="caption" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue