Skip to content

Add helper to wait for axios requests in frontend tests

Martin Hanzel requested to merge mh/wait-for-requests into master

What does this MR do?

Fixes #60972 (closed)

EE port: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/15896

Adds two methods to the axios_utils object:

  • waitFor(url, callback) that waits for a request to the given URL and runs a callback after it's done.
  • waitForAll(callback) that waits for all requests to finish and then runs a callback.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Edited by Martin Hanzel

Merge request reports

Loading