When a build is started successfully, go directly to the build logs.
Switches to use the store instead of calling bootcClient.listHistoryInfo() repeatedly, less for performance/reuse and more to ensure that the store has been updated before switching to the build logs. Otherwise we may try to switch before the store has been updated.
Noticed a pattern in a few other tests of clicking and then 'await new Promise', fixed these to await the userEvent while I was here.
What does this PR do?
When a build is started successfully, go directly to the build logs.
Switches to use the store instead of calling bootcClient.listHistoryInfo() repeatedly, less for performance/reuse and more to ensure that the store has been updated before switching to the build logs. Otherwise we may try to switch before the store has been updated.
Noticed a pattern in a few other tests of clicking and then 'await new Promise', fixed these to await the userEvent while I was here.
Screenshot / video of UI
https://github.com/user-attachments/assets/5c392ef0-e522-4d8b-978a-4e8e791ab0a2
What issues does this PR fix or reference?
Fixes #872.
How to test this PR?
Start a build and make sure it automatically switches to the Build Logs instead of the previous page.