summaryrefslogtreecommitdiff
path: root/spec/frontend/incidents
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 18:25:58 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-16 18:25:58 +0000
commita5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch)
treefb69158581673816a8cd895f9d352dcb3c678b1e /spec/frontend/incidents
parentd16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff)
downloadgitlab-ce-a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4.tar.gz
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/frontend/incidents')
-rw-r--r--spec/frontend/incidents/components/incidents_list_spec.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/frontend/incidents/components/incidents_list_spec.js b/spec/frontend/incidents/components/incidents_list_spec.js
index c7286d70b94..8d4ccab2a40 100644
--- a/spec/frontend/incidents/components/incidents_list_spec.js
+++ b/spec/frontend/incidents/components/incidents_list_spec.js
@@ -43,12 +43,10 @@ describe('Incidents List', () => {
const findLoader = () => wrapper.find(GlLoadingIcon);
const findTimeAgo = () => wrapper.findAll(TimeAgoTooltip);
const findAssignees = () => wrapper.findAll('[data-testid="incident-assignees"]');
- const findIncidentSlaHeader = () => wrapper.find('[data-testid="incident-management-sla"]');
const findCreateIncidentBtn = () => wrapper.find('[data-testid="createIncidentBtn"]');
const findClosedIcon = () => wrapper.findAll("[data-testid='incident-closed']");
const findEmptyState = () => wrapper.find(GlEmptyState);
const findSeverity = () => wrapper.findAll(SeverityToken);
- const findIncidentSla = () => wrapper.findAll("[data-testid='incident-sla']");
function mountComponent({ data = {}, loading = false, provide = {} } = {}) {
wrapper = mount(IncidentsList, {
@@ -188,35 +186,6 @@ describe('Incidents List', () => {
joinPaths(`/project/issues/incident`, mockIncidents[0].iid),
);
});
-
- describe('Incident SLA field', () => {
- it('displays the column when the feature is available', () => {
- mountComponent({
- data: { incidents: { list: mockIncidents } },
- provide: { slaFeatureAvailable: true },
- });
-
- expect(findIncidentSlaHeader().text()).toContain('Time to SLA');
- });
-
- it('does not display the column when the feature is not available', () => {
- mountComponent({
- data: { incidents: { list: mockIncidents } },
- provide: { slaFeatureAvailable: false },
- });
-
- expect(findIncidentSlaHeader().exists()).toBe(false);
- });
-
- it('renders an SLA for each incident', () => {
- mountComponent({
- data: { incidents: { list: mockIncidents } },
- provide: { slaFeatureAvailable: true },
- });
-
- expect(findIncidentSla().length).toBe(mockIncidents.length);
- });
- });
});
describe('Create Incident', () => {