diff --git a/packages/web-components/src/components/ic-classification-banner/test/basic/ic-classification-banner.spec.ts b/packages/web-components/src/components/ic-classification-banner/test/basic/ic-classification-banner.spec.ts index 562ed1de28..0f320537b7 100644 --- a/packages/web-components/src/components/ic-classification-banner/test/basic/ic-classification-banner.spec.ts +++ b/packages/web-components/src/components/ic-classification-banner/test/basic/ic-classification-banner.spec.ts @@ -138,6 +138,39 @@ describe("ic-classification-banner component", () => { `); }); + it("should render default banner if no props are passed", async () => { + const page = await newSpecPage({ + components: [ClassificationBanner], + html: ``, + }); + expect(page.root).toEqualHtml(` + + + + + protective marking not set + + + + `); + }); + + it("should render default banner if props with empty strings are passed", async () => { + const page = await newSpecPage({ + components: [ClassificationBanner], + html: ``, + }); + expect(page.root).toEqualHtml(` + + + + + protective marking not set + + + + `); + }); it("should render with additional selectors after classification when supplied", async () => { const page = await newSpecPage({ components: [ClassificationBanner],