Adding sleep statements to allow sufficient time for the page to settle.

This commit is contained in:
Sato Hiroyuki 2013-03-06 15:17:01 +09:00
parent e7a67a5583
commit 83435e3d46

View file

@ -27,6 +27,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
And 'I switch ref to "stable"' do And 'I switch ref to "stable"' do
page.select 'stable', :from => 'ref' page.select 'stable', :from => 'ref'
sleep 2
end end
And 'page should select "stable" in select box' do And 'page should select "stable" in select box' do
@ -44,6 +45,7 @@ class ProjectNetworkGraph < Spinach::FeatureSteps
fill_in 'q', :with => '98d6492' fill_in 'q', :with => '98d6492'
find('button').click find('button').click
end end
sleep 2
end end
And 'page should have "v2.1.0" on graph' do And 'page should have "v2.1.0" on graph' do