Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/incidents/incidents_list_spec.rb')
-rw-r--r--spec/features/incidents/incidents_list_spec.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/features/incidents/incidents_list_spec.rb b/spec/features/incidents/incidents_list_spec.rb
index c65c83b2804..789cc89e083 100644
--- a/spec/features/incidents/incidents_list_spec.rb
+++ b/spec/features/incidents/incidents_list_spec.rb
@@ -34,5 +34,28 @@ RSpec.describe 'Incident Management index', :js do
it 'alert page title' do
expect(page).to have_content('Incidents')
end
+
+ it 'has expected columns' do
+ table = page.find('.gl-table')
+
+ expect(table).to have_content('Severity')
+ expect(table).to have_content('Incident')
+ expect(table).to have_content('Status')
+ expect(table).to have_content('Date created')
+ expect(table).to have_content('Assignees')
+ end
+
+ context 'when :incident_escalations feature is disabled' do
+ before do
+ stub_feature_flags(incident_escalations: false)
+ end
+
+ it 'does not include the Status columns' do
+ visit project_incidents_path(project)
+ wait_for_requests
+
+ expect(page.find('.gl-table')).not_to have_content('Status')
+ end
+ end
end
end