Call resetFormState if the board comes through after the modal

What does this MR do and why?

Call resetFormState in issue boards if the board comes through after the modal.

Currently, resetFormState is called on mount and never again. If you open the board configuration modal before the board query has resolved, the form never initialises properly and the "Save" button never gets enabled, because the name never gets filled out!

This causes flakes in tests:

We also rewrite some related specs to not rely on wait_for_requests, as part of Remove all uses of `wait_for_requests`, `wait_f... (&22879), which is what led us to this emerging bug.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading
Loading