diff options
Diffstat (limited to 'spec/features/issues/incident_issue_spec.rb')
-rw-r--r-- | spec/features/issues/incident_issue_spec.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/spec/features/issues/incident_issue_spec.rb b/spec/features/issues/incident_issue_spec.rb index 57dfb370bf4..d004ee85dd8 100644 --- a/spec/features/issues/incident_issue_spec.rb +++ b/spec/features/issues/incident_issue_spec.rb @@ -3,17 +3,14 @@ require 'spec_helper' RSpec.describe 'Incident Detail', :js do - let(:user) { create(:user) } - let(:project) { create(:project, :public) } - let(:incident) { create(:issue, project: project, author: user, issue_type: 'incident', description: 'hello') } - context 'when user displays the incident' do - before do + it 'shows the incident tabs' do + project = create(:project, :public) + incident = create(:incident, project: project, description: 'hello') + visit project_issue_path(project, incident) wait_for_requests - end - it 'shows the incident tabs' do page.within('.issuable-details') do incident_tabs = find('[data-testid="incident-tabs"]') |