Skip to content
Snippets Groups Projects

e2e: Acknowledge xhr failures

Merged Renaud Boyer requested to merge rboyer/swh-web:cypress-handle-xhr-failures into master

Our e2e test suite currently ignores failed xhr calls, I think this could lead to missed bugs or regressions when calling our own APIs from a web page, especially with 5xx status codes.

This MR intercepts all http calls done by cypress and asserts their returning status code is < 500 and fixes a small bug in the admin_deposit_list view due to the stripped down deposit config in the test environment (see settings.tests).

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading