Skip to content

Wait for ajax for every merge request spinach test

username-removed-444 requested to merge dz-spinach-wait-ajax into master

What does this MR do?

  • removes duplicate WaitForAjax module
  • ensure we run wait_for_ajaxafter each MR spinach tests

Why was this MR needed?

Because when visit MR page we do ajax call to check CI status. When testing this page with spinach and JS driver we got random failing tests. It happens because of race condition db cleaner drop data before ajax call finished. So we make sure that every MR spinach scenario with js driver waits for ajax before running next scenario

What are the relevant issue numbers?

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23461

Merge request reports