// Auto-generated by: pnpm test:stylesheets:update import { join } from 'node:path'; import { compileLessWithTokens } from '../../../scripts/testStylesheets/compileLessWithTokens'; import { DEFAULT_LESS_PRELUDES, DEFAULT_TOKEN_CSS_FILES } from '../../../scripts/testStylesheets/config'; describe('components/PromoHero/PromoHero.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'PromoHero.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .promoHero { display: flex; min-height: 400px; background-color: oklch(0.9496 0.0283 234.8404 / 0.6); } .promoHero .promoHero__content { overflow: hidden; display: flex; flex-basis: 55%; flex-direction: column; justify-content: center; padding: 48px; } .promoHero .promoHero__content h1, .promoHero .promoHero__content .typography__headline1 { overflow: hidden; margin-bottom: 16px; } .promoHero .promoHero__content p { overflow: hidden; margin-bottom: 24px; } .promoHero .promoHero__image { display: flex; flex-basis: 45%; } .promoHero .promoHero__image > img, .promoHero .promoHero__image > svg { width: 100%; max-height: 400px; object-fit: contain; object-position: center; } .promoHero .promoHero__image--contain img { object-fit: contain; } .promoHero .promoHero__image--cover img { object-fit: cover; } @media only screen and (max-width: 768px) { .promoHero { display: flex; flex-direction: column; height: auto; } .promoHero .promoHero__content { padding: 48px 24px; } .promoHero .promoHero__image img, .promoHero .promoHero__image svg { max-height: 300px; } } `); }); });