@@ -298,6 +298,25 @@ describe('CTABanner', () => {
298298 expect ( ctaBannerEl ) . toHaveClass ( 'CTABanner--variant-minimal' )
299299 } )
300300
301+ it . each ( [ 'default' , 'balanced' , 'minimal' ] as const ) (
302+ 'applies rounded corners to the %s variant by default' ,
303+ variant => {
304+ const { getByTestId} = render (
305+ < CTABanner variant = { variant } data-testid = "test" >
306+ < CTABanner . Heading > This is your heading</ CTABanner . Heading >
307+ { variant === 'balanced' && < CTABanner . Image src = "image.png" alt = "test" /> }
308+ { variant === 'minimal' && (
309+ < CTABanner . ButtonGroup >
310+ < Button > Action</ Button >
311+ </ CTABanner . ButtonGroup >
312+ ) }
313+ </ CTABanner > ,
314+ )
315+
316+ expect ( getByTestId ( 'test' ) . firstChild ) . toHaveClass ( 'CTABanner-container--rounded' )
317+ } ,
318+ )
319+
301320 it ( 'can render CTABanner.Image in the default variant alongside other children' , ( ) => {
302321 const { getByAltText} = render (
303322 < CTABanner >
@@ -383,6 +402,7 @@ describe('CTABanner', () => {
383402 const sectionEl = getByTestId ( 'test' )
384403 expect ( sectionEl . parentElement ) . toHaveClass ( 'CTABanner-outer-container--border' )
385404 expect ( sectionEl . firstChild ) . toHaveClass ( 'CTABanner-container--border-gridlines' )
405+ expect ( sectionEl . firstChild ) . not . toHaveClass ( 'CTABanner-container--rounded' )
386406 } )
387407
388408 it ( 'does not render the hasGridLines outer border wrapper by default' , ( ) => {
0 commit comments