Commit 57d4dbf9 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'tr-incident-spec-follow-up' into 'master'

Spec cleanup - prefer local variable to let

See merge request gitlab-org/gitlab!41223
parents d1fd2602 d0386f13
......@@ -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"]')
......
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