// 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/Popover/Popover.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'Popover.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` .popover { will-change: transform; background-color: oklch(1 0 none); outline: none; } .popover--elevation-high { box-shadow: 0px 12px 32px 0px oklch(0 0 none / 0.15), 0px 4px 10px 0px oklch(0 0 none / 0.05); } .popover--elevation-medium { box-shadow: 0px 3px 7px 0px oklch(0 0 none / 0.1), 0px -3px 7px 0px oklch(0 0 none / 0.1); } .popover--elevation-low { box-shadow: 0px 2px 6px 0px oklch(0 0 none / 0.05), 0px 1px 2px 0px oklch(0 0 none / 0.05); } .popover--padding-xxs { padding: 2px; } .popover--padding-xs { padding: 4px; } .popover--padding-sm { padding: 8px; } .popover--padding-md { padding: 12px; } .popover--padding-lg { padding: 16px; } .popover--padding-xl { padding: 24px; } .popover--padding-xxl { padding: 32px; } .popover--padding-3xl { padding: 40px; } .popover--padding-4xl { padding: 48px; } `); }); });