Commit 7b5722c8 authored by Stan Hu's avatar Stan Hu

Fix a number of failed Spinach tests with Selenium needing accept_alert

parent d3e81673
...@@ -18,7 +18,7 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps ...@@ -18,7 +18,7 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
end end
step 'I click erase build button' do step 'I click erase build button' do
click_link 'Erase' accept_confirm { click_link 'Erase' }
end end
step 'recent build has been erased' do step 'recent build has been erased' do
......
...@@ -16,7 +16,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps ...@@ -16,7 +16,7 @@ class Spinach::Features::ProjectIssuesLabels < Spinach::FeatureSteps
step 'I delete all labels' do step 'I delete all labels' do
page.within '.labels' do page.within '.labels' do
page.all('.remove-row').each do page.all('.remove-row').each do
first('.remove-row').click accept_confirm { first('.remove-row').click }
end end
end end
end end
......
...@@ -63,7 +63,7 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps ...@@ -63,7 +63,7 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps
end end
step 'I click link to remove milestone' do step 'I click link to remove milestone' do
accept_alert { click_link 'Delete' } click_link 'Delete'
end end
step 'I should see no milestones' do step 'I should see no milestones' 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