Wait for ajax for every merge request spinach test
What does this MR do?
- removes duplicate
WaitForAjax
module - ensure we run
wait_for_ajax
after 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