diff options
Diffstat (limited to 'spec/features/incidents/user_views_incident_spec.rb')
-rw-r--r-- | spec/features/incidents/user_views_incident_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/incidents/user_views_incident_spec.rb b/spec/features/incidents/user_views_incident_spec.rb index 3595f5c03ec..b94ce3cd06f 100644 --- a/spec/features/incidents/user_views_incident_spec.rb +++ b/spec/features/incidents/user_views_incident_spec.rb @@ -13,8 +13,6 @@ RSpec.describe "User views incident" do end before do - stub_feature_flags(vue_issue_header: false) - sign_in(user) visit(project_issues_incident_path(project, incident)) @@ -24,10 +22,12 @@ RSpec.describe "User views incident" do it_behaves_like 'page meta description', ' Description header Lorem ipsum dolor sit amet' - it 'shows the merge request and incident actions', :aggregate_failures do - expect(page).to have_link('New incident') + it 'shows the merge request and incident actions', :js, :aggregate_failures do + click_button 'Incident actions' + + expect(page).to have_link('New incident', href: new_project_issue_path(project, { issuable_template: 'incident', issue: { issue_type: 'incident' } })) expect(page).to have_button('Create merge request') - expect(page).to have_link('Close incident') + expect(page).to have_button('Close incident') end context 'when the project is archived' do |