Fix bug where a GET triggered by a test, is processed after the test #9733
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sporadically, I was noticing the GET below happening during the teardown of the test:
"/api/tenants?filter[]=name=&expand=resources"
It turns out we have a form validation for the name field that gets a list of tenant names on form load to prevent the user from providing a duplicate name. For the edit tenant form, we ALSO have an API tenant data request that occurs BEFORE the tenant form loads. Because of this, we need to wait on the single form validation API request for the add form and for the edit form, we need to wait for the load API request first, then, the same validation API request.
This should fix the following issue that was happening sporadically locally and in CI:
Seen in https://github.com/ManageIQ/manageiq-ui-classic/actions/runs/19341780911/job/55331768728