Commit 86915610 authored by Luke Bennett's avatar Luke Bennett

Now waits for All issuables to load when clicked

parent c0a722a2
...@@ -45,6 +45,8 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps ...@@ -45,6 +45,8 @@ class Spinach::Features::ProjectIssues < Spinach::FeatureSteps
step 'I click link "All"' do step 'I click link "All"' do
click_link "All" click_link "All"
# Waits for load
expect(find('.issues-state-filters > .active')).to have_content 'All'
end end
step 'I click link "Release 0.4"' do step 'I click link "Release 0.4"' do
......
...@@ -22,6 +22,8 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps ...@@ -22,6 +22,8 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
step 'I click link "All"' do step 'I click link "All"' do
click_link "All" click_link "All"
# Waits for load
expect(find('.issues-state-filters > .active')).to have_content 'All'
end end
step 'I click link "Merged"' do step 'I click link "Merged"' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment