Add Account wizard gets broken whenever a 5XX error is faced
Summary
The Add Account wizard gets broken whenever a 5XX error is faced during the creation of the cloud account.
The error page at the end of the wizard shows the following:
But navigating back the message is also shown on the fields validation message:
That also makes the field values to be considered invalid even though they are valid (which allowed the user to go all the way to the end of the wizard).
Steps to Reproduce
- Getting a 5XX error is not a trivial task (even though we are getting that more frequently than it should on OSD) but maybe this can be mocked by posting to https://httpbin.org/status/500 for example.
Expected Result
- The wizard steps and validation fields are isolated from each other.
- Whenever a 5XX error is returned during the account creation or when doing a request to the API a consistent error UI should be shown. By consistent I mean having a dedicated UI for this because the 5XX errors can be faced when checking API for the AWS account id for example (not sure where that would be shown).
Actual Result
- The wizard steps and validation are somewhat sharing some state which causes wrong behavior.
- The 5XX error is shown with escaped HTML tags and there is no consistent UI for displaying them.