• Dmitriy Zaporozhets's avatar
    Merge branch 'dz-spinach-wait-ajax' into 'master' · 33ee90b4
    Dmitriy Zaporozhets authored
    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
    
    ## What are the relevant issue numbers?
    
    Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23461
    
    See merge request !6959
    33ee90b4
env.rb 827 Bytes