Skip to content

Commit bf17deb

Browse files
committed
update snap
1 parent 7c06295 commit bf17deb

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

packages/components/src/components/Input/__tests__/__snapshots__/index.browser.test.tsx.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ exports[`Controlled Input > should render with value 1`] = `
1414
</div>
1515
`;
1616

17+
exports[`Input > shoue have class name when className prop is provided 1`] = `
18+
<div>
19+
<div
20+
class="test display-0-inline-block--255 position-0-relative--255 box-sizing-0-border-box-1137980104803605758-255"
21+
>
22+
<input
23+
aria-label="input"
24+
class="test test color-0-var(--inputDisabledText,light-dark(#D6D7DE,#373737))-7704306251139592248-1 background-0-var(--inputDisabledBg,light-dark(#F0F0F3,#414244))-14172363753176421546-1 border-0-1px solid var(--border,light-dark(#E4E4E4,#434343))-14172363753176421546-1 color-0-var(--inputDisabledText,light-dark(#D6D7DE,#373737))-14172363753176421546-1 background-0-var(--primaryBg,light-dark(#F4F3FA,#F4F3FA0D))-16231282139879731451-1 border-0-1px solid var(--primary,light-dark(#674DC7,#8163E1))-16231282139879731451-1 outline-0-none-16231282139879731451-1 border-0-1px solid var(--primary,light-dark(#674DC7,#8163E1))-8380715471663921674-1 color-0-var(--inputPlaceholder,light-dark(#A9A8AB,#CBCBCB))-15878565022192187906-1 background-0-var(--inputBg,light-dark(#FFF,#2E2E2E))--1 border-radius-0-8px--1 border-style-0-solid--1 border-width-0-1px--1 padding-bottom-0-12px--1 padding-top-0-12px--1 transition-0-all .1s ease-in-out--1 border-color-0-var(--border,light-dark(#E4E4E4,#434343))--1 padding-left-0-12px--1 padding-right-0-36px--1 "
25+
value=""
26+
/>
27+
</div>
28+
</div>
29+
`;
30+
1731
exports[`Input > should have typography when typography is provided 1`] = `
1832
<div>
1933
<div

packages/components/src/components/Input/__tests__/index.browser.test.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ describe('Input', () => {
1111
expect(container).toMatchSnapshot()
1212
})
1313

14+
it('shoue have class name when className prop is provided', () => {
15+
const { container } = render(
16+
<Input
17+
className="test"
18+
classNames={{
19+
input: 'test',
20+
container: 'test',
21+
icon: 'test',
22+
errorMessage: 'test',
23+
}}
24+
/>,
25+
)
26+
expect(container).toMatchSnapshot()
27+
expect(container.querySelector('[aria-label="input"]')).toHaveClass('test')
28+
})
29+
1430
it('should render with disabled prop', () => {
1531
const { container } = render(<Input disabled />)
1632
expect(container).toMatchSnapshot()

0 commit comments

Comments
 (0)