unit test updates

This commit is contained in:
Katie Kroell 2026-02-04 10:26:51 -05:00
parent 774907c00e
commit 86c1661197
3 changed files with 12 additions and 0 deletions

View file

@ -19,6 +19,7 @@ Object {
},
"widget": Object {
"defaultSiteHeader": "SiteSubHeaderWidget",
"disclaimerText": "DisclaimerWidget",
"noTpa": "ContentGroupNoTPAWidget",
"notSeeingPreferredShop": "ContentGroupNotSeeingPreferredShop",
},

View file

@ -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', () => {

View file

@ -71,6 +71,7 @@
@backClicked="backButtonAction"
@ForwardClicked="forwardButtonAction" />
<textBlock
ref="disclaimerText"
class="mt-5 mb-5"
cmsWidgetName="DisclaimerWidget"
typeStyle="caption" />