Skip to content

Commit

Permalink
test(snapshot): update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Sep 18, 2023
1 parent 4347788 commit 048742e
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports[`Accordion should render 1`] = `
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Heading A
</div>
Expand Down Expand Up @@ -68,6 +69,7 @@ exports[`Accordion should render 1`] = `
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Heading B
</div>
Expand Down Expand Up @@ -105,6 +107,7 @@ exports[`Accordion should render 1`] = `
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Heading C
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ exports[`AccordionItem renders as expected - Component API should render and mat
</svg>
<div
class="cds--accordion__title"
dir="auto"
>
Test title
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ exports[`DataTable behaves as expected selection -- radio buttons should not hav
/>
<span
class="cds--radio-button__label-text cds--visually-hidden"
dir="auto"
>
Select row
</span>
Expand Down Expand Up @@ -110,6 +111,7 @@ exports[`DataTable behaves as expected selection -- radio buttons should not hav
/>
<span
class="cds--radio-button__label-text cds--visually-hidden"
dir="auto"
>
Select row
</span>
Expand Down Expand Up @@ -146,6 +148,7 @@ exports[`DataTable behaves as expected selection -- radio buttons should not hav
/>
<span
class="cds--radio-button__label-text cds--visually-hidden"
dir="auto"
>
Select row
</span>
Expand Down Expand Up @@ -240,6 +243,7 @@ exports[`DataTable behaves as expected selection -- radio buttons should render
/>
<span
class="cds--radio-button__label-text cds--visually-hidden"
dir="auto"
>
Select row
</span>
Expand Down Expand Up @@ -276,6 +280,7 @@ exports[`DataTable behaves as expected selection -- radio buttons should render
/>
<span
class="cds--radio-button__label-text cds--visually-hidden"
dir="auto"
>
Select row
</span>
Expand Down Expand Up @@ -312,6 +317,7 @@ exports[`DataTable behaves as expected selection -- radio buttons should render
/>
<span
class="cds--radio-button__label-text cds--visually-hidden"
dir="auto"
>
Select row
</span>
Expand Down Expand Up @@ -365,7 +371,9 @@ exports[`DataTable behaves as expected selection should render and match snapsho
<p
class="cds--batch-summary__para"
>
<span>
<span
dir="auto"
>
0 items selected
</span>
</p>
Expand Down Expand Up @@ -802,7 +810,9 @@ exports[`DataTable renders as expected - Component API should render and match s
<p
class="cds--batch-summary__para"
>
<span>
<span
dir="auto"
>
0 items selected
</span>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ describe('Select', () => {

it('should respect warn prop', () => {
const { container } = render(
<Select id="select" labelText="Select" warn />
<Select id="select" labelText="Select" warn warnText="Warning" />
);

// eslint-disable-next-line testing-library/no-container, testing-library/no-node-access
Expand Down
13 changes: 12 additions & 1 deletion packages/react/src/components/Slider/Slider-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ const renderSlider = ({
step = 1,
...rest
} = {}) =>
render(<Slider value={value} min={min} max={max} step={step} {...rest} />);
render(
<Slider
labelText="Slider"
value={value}
min={min}
max={max}
step={step}
invalidText="Invalid"
warnText="Warning"
{...rest}
/>
);

describe('Slider', () => {
beforeEach(() => {
Expand Down

0 comments on commit 048742e

Please sign in to comment.