Skip to content

Commit

Permalink
feat(Dynamic Fields): Add test for rendering childrens trough react f…
Browse files Browse the repository at this point in the history
…ragments
  • Loading branch information
g-saracca committed Mar 28, 2024
1 parent 4215794 commit 9857e9b
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { FormGroup } from '../../../../src/lib/components/form/form-group/FormGroup'
import { Form } from '../../../../src/lib/components/form/Form'

describe('FormGroup', () => {
it('should render childrens correctly even trough react fragments', () => {
cy.mount(
<Form>
<FormGroup controlId="some-control-id">
<>
<label htmlFor="username">Username</label>
<input type="text" id="username" />
</>
</FormGroup>
</Form>
)

cy.findByText('Username').should('exist')
})
})

0 comments on commit 9857e9b

Please sign in to comment.