Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(multi): core API error fixes + E2E tests fixes #2872

Merged
merged 3 commits into from Nov 3, 2022

Conversation

victorgcramos
Copy link
Member

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:
Screen Shot 2022-11-01 at 8 42 32 PM

After:
Screen Shot 2022-11-01 at 8 46 33 PM

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.

Screen Shot 2022-11-01 at 8 51 48 PM

Screen Shot 2022-11-01 at 8 52 09 PM

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiagoalvesdulce tiagoalvesdulce merged commit 1351d01 into decred:master Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants