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