Skip to content

Commit

Permalink
fix: updated test, snapshots, yarn format
Browse files Browse the repository at this point in the history
  • Loading branch information
2nikhiltom committed Dec 3, 2024
1 parent 1cb827c commit 1caf60d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7392,6 +7392,9 @@ Map {
},
"SliderSkeleton" => Object {
"propTypes": Object {
"ariaLabel": Object {
"type": "string",
},
"className": Object {
"type": "string",
},
Expand All @@ -7401,6 +7404,9 @@ Map {
"twoHandles": Object {
"type": "bool",
},
"unstable_ariaLabelHandleUpper": Object {
"type": "string",
},
},
},
"Stack" => Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,10 @@ describe('Select', () => {
it('should have no Accessibility Checker violations', async () => {
const { container } = render(
<main>
<Select id="select" labelText="Select">
<Select
id="select"
labelText="Select an option"
aria-label="Select an option">
<SelectItem value="option-1" text="Option 1" />
<SelectItem value="option-2" text="Option 2" />
</Select>
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Slider/Slider-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@ describe('Slider', () => {
it('should render children as expected', () => {
renderTwoHandleSlider();
const lowerElems = screen.getAllByLabelText(defaultAriaLabelInput);
expect(lowerElems).toHaveLength(2);
expect(lowerElems).toHaveLength(4);
const upperElems = screen.getAllByLabelText(defaultAriaLabelInputUpper);
expect(upperElems).toHaveLength(2);
expect(upperElems).toHaveLength(4);
});

it('should apply the expected classes', () => {
Expand Down

0 comments on commit 1caf60d

Please sign in to comment.