diff options
Diffstat (limited to 'spec/features/incidents/user_views_incident_spec.rb')
-rw-r--r-- | spec/features/incidents/user_views_incident_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/features/incidents/user_views_incident_spec.rb b/spec/features/incidents/user_views_incident_spec.rb index fe54f7708c9..a669966502e 100644 --- a/spec/features/incidents/user_views_incident_spec.rb +++ b/spec/features/incidents/user_views_incident_spec.rb @@ -26,7 +26,7 @@ RSpec.describe "User views incident" do 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', description: "Related to \##{incident.iid}.\n\n" } })) + expect(page).to have_link('New related incident', href: new_project_issue_path(project, { issuable_template: 'incident', issue: { issue_type: 'incident' }, add_related_issue: incident.iid })) expect(page).to have_button('Create merge request') expect(page).to have_button('Close incident') end @@ -40,10 +40,8 @@ RSpec.describe "User views incident" do visit(project_issues_incident_path(project, incident)) end - it 'does not show the incident action', :js, :aggregate_failures do - click_button 'Incident actions' - - expect(page).not_to have_link('New incident') + it 'does not show the incident actions', :js, :aggregate_failures do + expect(page).not_to have_button('Incident actions') end end end |