Skip to content

Commit

Permalink
remove regex
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Nov 27, 2024
1 parent 17aefc5 commit 8405890
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/react/src/forms/CheckboxGroup/CheckboxGroup.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('CheckboxGroup', () => {
</CheckboxGroup>,
)

expect(getByRole('group', {name: /choices/i})).toBeInTheDocument()
expect(getByRole('group', {name: 'Choices'})).toBeInTheDocument()
expect(getByText('You can only pick one')).toBeInTheDocument()
expect(getByLabelText('Choice one')).toBeInTheDocument()
expect(getByLabelText('Choice two')).toBeInTheDocument()
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('CheckboxGroup', () => {
</CheckboxGroup>,
)

const fieldset = getByRole('group', {name: /choices/i})
const fieldset = getByRole('group', {name: 'Choices'})
const caption = getByText('You can only pick one')

expect(fieldset).toHaveAttribute('aria-describedby', caption.id)
Expand All @@ -115,7 +115,7 @@ describe('CheckboxGroup', () => {
</CheckboxGroup>,
)

const fieldset = getByRole('group', {name: /choices/i})
const fieldset = getByRole('group', {name: 'Choices'})
const validation = getByText('Uh oh!')

expect(fieldset).toHaveAttribute('aria-describedby', validation.id)
Expand Down Expand Up @@ -143,7 +143,7 @@ describe('CheckboxGroup', () => {
</CheckboxGroup>,
)

const fieldset = getByRole('group', {name: /choices/i})
const fieldset = getByRole('group', {name: 'Choices'})
const hint = getByText('You can only pick one')
const validation = getByText('Great job!')

Expand Down
8 changes: 4 additions & 4 deletions packages/react/src/forms/RadioGroup/RadioGroup.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('RadioGroup', () => {
</RadioGroup>,
)

expect(getByRole('group', {name: /choices/i})).toBeInTheDocument()
expect(getByRole('group', {name: 'Choices'})).toBeInTheDocument()
expect(getByText('You can only pick one')).toBeInTheDocument()
expect(getByLabelText('Choice one')).toBeInTheDocument()
expect(getByLabelText('Choice two')).toBeInTheDocument()
Expand Down Expand Up @@ -88,7 +88,7 @@ describe('RadioGroup', () => {
</RadioGroup>,
)

const fieldset = getByRole('group', {name: /choices/i})
const fieldset = getByRole('group', {name: 'Choices'})
const caption = getByText('You can only pick one')

expect(fieldset).toHaveAttribute('aria-describedby', caption.id)
Expand All @@ -115,7 +115,7 @@ describe('RadioGroup', () => {
</RadioGroup>,
)

const fieldset = getByRole('group', {name: /choices/i})
const fieldset = getByRole('group', {name: 'Choices'})
const validation = getByText('Uh oh!')

expect(fieldset).toHaveAttribute('aria-describedby', validation.id)
Expand Down Expand Up @@ -143,7 +143,7 @@ describe('RadioGroup', () => {
</RadioGroup>,
)

const fieldset = getByRole('group', {name: /choices/i})
const fieldset = getByRole('group', {name: 'Choices'})
const hint = getByText('You can only pick one')
const validation = getByText('Great job!')

Expand Down

0 comments on commit 8405890

Please sign in to comment.