This PR fixes some errors on politeia app e2e tests. While fixing those
errors, I noticed that some API errors were being handled incorrectly,
due to an incorrect variable usage, which were causing tests to fail.
Before:
After:
I also added some e2e tests for app startup errors, which asserts that
/api errors are displayed correctly. Once server returns an error, we
should also display the error codes. However, if no response body is
returned, we should display the generic Cannot fetch "${url}". Is politeiawww running?
message.
This PR fixes some errors on politeia app e2e tests. While fixing those errors, I noticed that some API errors were being handled incorrectly, due to an incorrect variable usage, which were causing tests to fail.
Before:
After:
I also added some e2e tests for app startup errors, which asserts that
/api
errors are displayed correctly. Once server returns an error, we should also display the error codes. However, if no response body is returned, we should display the genericCannot fetch "${url}". Is politeiawww running?
message.