Commit graph

5 commits

Author SHA1 Message Date
Robert Speicher
6b298d06b4 Return early from finished_all_ajax_requests? when jQuery is undefined 2017-04-19 20:28:32 -04:00
Robert Speicher
5647d5deaf Simplify the javascript_test? helper
Also don't try to run `page.evaluate_script` when we're not in a
JavaScript test.
2017-04-19 20:28:32 -04:00
Dmitriy Zaporozhets
82033e2edc
Wait for ajax for every merge request spinach test
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-10-18 18:55:11 +03:00
Stan Hu
7c61bdcf6f Fix Capybara 2.6.2 deprecation warnings 2016-03-15 11:03:17 -07:00
Dmitriy Zaporozhets
bdb4945dcf Fix random failing test - delete attachment
Make sure we wait for AJAX request to finish before end test and cleanup
database

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-12-07 23:40:17 +01:00