Skip to content

Conversation

britt6612
Copy link
Collaborator

What does this PR do?

This PR adds logic to delete required field if no longer is there

Where should the reviewer start?

form.js

What testing has been done on this PR?

dynamic story as well as jest tests

How should this be manually tested?

looking at the valid if false or true is correct
also console.log(requiredFields) to see the required fields

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

closes #6171

Screenshots (if appropriate)

Do the grommet docs need to be updated?

no

Should this PR be mentioned in the release notes?

sure

Is this change backwards compatible or is it a breaking change?

backwards compatible

@britt6612 britt6612 requested review from jcfilben and MikeKingdom July 8, 2022 17:10
@ericsoderberghp ericsoderberghp merged commit 92be443 into grommet:master Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form was becomes invalid, When dynamically adding and removing required fields
3 participants