diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 18:08:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 18:08:15 +0300 |
commit | c2b98d3dbd47ab92c79c702276fe9130d9a28036 (patch) | |
tree | bf4071f551fdc12c22b23b2bb66483064e7b9ea9 /spec/javascripts/monitoring | |
parent | badb9c1deacbea601b02f88811b7e123589d9251 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/javascripts/monitoring')
-rw-r--r-- | spec/javascripts/monitoring/components/dashboard_spec.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/javascripts/monitoring/components/dashboard_spec.js b/spec/javascripts/monitoring/components/dashboard_spec.js index 37a811f153f..b29bac21820 100644 --- a/spec/javascripts/monitoring/components/dashboard_spec.js +++ b/spec/javascripts/monitoring/components/dashboard_spec.js @@ -4,7 +4,8 @@ import { GlToast } from '@gitlab/ui'; import VueDraggable from 'vuedraggable'; import MockAdapter from 'axios-mock-adapter'; import Dashboard from '~/monitoring/components/dashboard.vue'; -import EmptyState from '~/monitoring/components/empty_state.vue'; +import { metricStates } from '~/monitoring/constants'; +import GroupEmptyState from '~/monitoring/components/group_empty_state.vue'; import * as types from '~/monitoring/stores/mutation_types'; import { createStore } from '~/monitoring/stores'; import axios from '~/lib/utils/axios_utils'; @@ -401,7 +402,7 @@ describe('Dashboard', () => { }); beforeEach(done => { - createComponentWrapper({ hasMetrics: true }, { attachToDocument: true }); + createComponentWrapper({ hasMetrics: true }); setupComponentStore(wrapper.vm); wrapper.vm.$nextTick(done); @@ -411,16 +412,16 @@ describe('Dashboard', () => { const emptyGroup = wrapper.findAll({ ref: 'empty-group' }); expect(emptyGroup).toHaveLength(1); - expect(emptyGroup.is(EmptyState)).toBe(true); + expect(emptyGroup.is(GroupEmptyState)).toBe(true); }); - it('group empty area displays a "noDataGroup"', () => { + it('group empty area displays a NO_DATA state', () => { expect( wrapper .findAll({ ref: 'empty-group' }) .at(0) .props('selectedState'), - ).toEqual('noDataGroup'); + ).toEqual(metricStates.NO_DATA); }); }); |