Skip to content

Commit

Permalink
And update the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pwolfert committed Oct 19, 2023
1 parent 181c0c4 commit 7946918
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('SingleInputDateField', function () {
const button = screen.getByRole('button');
expect(button).toBeInTheDocument();
expect(button).toHaveClass('ds-c-single-input-date-field__button');
expect(button).toHaveAttribute('aria-describedby', `${label.id} ${hint.id}`);
expect(button).toHaveAttribute('aria-describedby', `${label.id}`);
expect(button.firstElementChild.tagName).toBe('svg');
expect(button.firstElementChild.classList).toContain('ds-c-icon--calendar');

Expand Down

0 comments on commit 7946918

Please sign in to comment.