Add a wait_for_ajax call to ensure Todos page cleans up properly
Potentially fixes intermittent failures such as https://gitlab.com/gitlab-org/gitlab-ce/builds/13484375
This commit is contained in:
parent
9fc17f6f4a
commit
6bffef880d
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
|
|||
include SharedPaths
|
||||
include SharedProject
|
||||
include SharedUser
|
||||
include WaitForAjax
|
||||
|
||||
step '"John Doe" is a developer of project "Shop"' do
|
||||
project.team << [john_doe, :developer]
|
||||
|
@ -138,6 +139,8 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
|
|||
|
||||
step 'I should be directed to the corresponding page' do
|
||||
page.should have_css('.identifier', text: 'Merge Request !1')
|
||||
# Merge request page loads and issues a number of Ajax requests
|
||||
wait_for_ajax
|
||||
end
|
||||
|
||||
def should_see_todo(position, title, body, state: :pending)
|
||||
|
|
Loading…
Reference in a new issue