Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 authored Mar 22, 2024
1 parent d3e0461 commit 1d92fe2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react/src/Button/__tests__/Button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ describe('Button', () => {
}, 0)
})

it('allows the consumer to override `aria-disabled`', () => {
const container = render(<Button aria-disabled>content</Button>)

expect(container.getByRole('button')).toHaveAttribute('aria-disabled', 'true')
})

it('should preserve the accessible button name when the button is in a loading state', () => {
const container = render(<Button loading>content</Button>)

Expand Down

0 comments on commit 1d92fe2

Please sign in to comment.