[TRNT-4139] Update unversioned paths in API calls #3956
Merged
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.
Description
While debugging some CI issues in #3948, I noticed we had some old unversioned endpoints out there.
It should not affect anything, as the default behavior is to use the latest available API version, but, for the sake of consistency, I don't think it's a bad idea to reflect the proper API endpoints.
Related TRNT-4139
How was this tested?
CI
Additional information
When tests used unversioned
/api/collect, there was a 307 redirect, which added some latency and allowed thebeforeEachto work after having loaded the scenario with Photofinish.This PR adds a per-loaded-scenario
visitSelectedHost()call, ensuring the page always fetches fresh data after the scenario loads rather than relying on real-time event timing.