diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-01-04 16:15:27 +0300 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-01-25 13:07:32 +0300 |
commit | b8506500f9d0c3314ff1faf23e16e1e4940fec9e (patch) | |
tree | 1ab814b61206af19f4e3aa9f3357886872b3c991 /features/steps | |
parent | dcb79741a170eaf673237bb2becbf6fb742a8bfd (diff) |
Add modal for deleting a milestone
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/issues/milestones.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/features/steps/project/issues/milestones.rb b/features/steps/project/issues/milestones.rb index 33a24e8913a..4ce67aa651c 100644 --- a/features/steps/project/issues/milestones.rb +++ b/features/steps/project/issues/milestones.rb @@ -3,7 +3,6 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps include SharedProject include SharedPaths include SharedMarkdown - include CapybaraHelpers step 'I should see milestone "v2.2"' do milestone = @project.milestones.find_by(title: "v2.2") @@ -65,8 +64,12 @@ class Spinach::Features::ProjectIssuesMilestones < Spinach::FeatureSteps expect(page).to have_selector('#tab-issues li.issuable-row', count: 4) end - step 'I click link to remove milestone' do - confirm_modal_if_present { click_link 'Delete' } + step 'I click button to remove milestone' do + click_button 'Delete' + end + + step 'I confirm in modal' do + click_button 'Delete milestone' end step 'I should see no milestones' do |