Commit 33eb6de8 authored by Adam Alvis's avatar Adam Alvis

renamed dashboard empty state to dashboard_not_configured

parent 759ad2d9
...@@ -11,7 +11,7 @@ import projectsQuery from 'ee/security_dashboard/graphql/get_instance_security_d ...@@ -11,7 +11,7 @@ import projectsQuery from 'ee/security_dashboard/graphql/get_instance_security_d
import ProjectManager from './first_class_project_manager/project_manager.vue'; import ProjectManager from './first_class_project_manager/project_manager.vue';
import CsvExportButton from './csv_export_button.vue'; import CsvExportButton from './csv_export_button.vue';
import vulnerabilityHistoryQuery from '../graphql/instance_vulnerability_history.graphql'; import vulnerabilityHistoryQuery from '../graphql/instance_vulnerability_history.graphql';
import EmptyState from './empty_states/first_class_instance_security_dashboard.vue'; import DashboardNotConfigured from './empty_states/dashboard_not_configured.vue';
export default { export default {
components: { components: {
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
Filters, Filters,
GlLoadingIcon, GlLoadingIcon,
GlButton, GlButton,
EmptyState, DashboardNotConfigured,
}, },
props: { props: {
dashboardDocumentation: { dashboardDocumentation: {
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
:filters="filters" :filters="filters"
/> />
<div v-else-if="shouldShowEmptyState"> <div v-else-if="shouldShowEmptyState">
<empty-state <dashboard-not-configured
:svg-path="emptyStateSvgPath" :svg-path="emptyStateSvgPath"
:dashboard-documentation="dashboardDocumentation" :dashboard-documentation="dashboardDocumentation"
@handleAddProjectsClick="toggleProjectSelector" @handleAddProjectsClick="toggleProjectSelector"
......
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import { GlEmptyState, GlButton, GlLink } from '@gitlab/ui'; import { GlEmptyState, GlButton, GlLink } from '@gitlab/ui';
import EmptyState from 'ee/security_dashboard/components/empty_states/first_class_instance_security_dashboard.vue'; import DashboardNotConfigured from 'ee/security_dashboard/components/empty_states/dashboard_not_configured.vue';
describe('first class instance security dashboard empty state', () => { describe('first class instance security dashboard empty state', () => {
let wrapper; let wrapper;
...@@ -8,7 +8,7 @@ describe('first class instance security dashboard empty state', () => { ...@@ -8,7 +8,7 @@ describe('first class instance security dashboard empty state', () => {
const svgPath = '/placeholder.svg'; const svgPath = '/placeholder.svg';
const createWrapper = () => const createWrapper = () =>
mount(EmptyState, { mount(DashboardNotConfigured, {
propsData: { svgPath, dashboardDocumentation }, propsData: { svgPath, dashboardDocumentation },
}); });
const findGlEmptyState = () => wrapper.find(GlEmptyState); const findGlEmptyState = () => wrapper.find(GlEmptyState);
......
...@@ -8,7 +8,7 @@ import VulnerabilityChart from 'ee/security_dashboard/components/first_class_vul ...@@ -8,7 +8,7 @@ import VulnerabilityChart from 'ee/security_dashboard/components/first_class_vul
import CsvExportButton from 'ee/security_dashboard/components/csv_export_button.vue'; import CsvExportButton from 'ee/security_dashboard/components/csv_export_button.vue';
import Filters from 'ee/security_dashboard/components/first_class_vulnerability_filters.vue'; import Filters from 'ee/security_dashboard/components/first_class_vulnerability_filters.vue';
import ProjectManager from 'ee/security_dashboard/components/first_class_project_manager/project_manager.vue'; import ProjectManager from 'ee/security_dashboard/components/first_class_project_manager/project_manager.vue';
import EmptyState from 'ee/security_dashboard/components/empty_states/first_class_instance_security_dashboard.vue'; import DashboardNotConfigured from 'ee/security_dashboard/components/empty_states/dashboard_not_configured.vue';
describe('First Class Instance Dashboard Component', () => { describe('First Class Instance Dashboard Component', () => {
let wrapper; let wrapper;
...@@ -25,7 +25,7 @@ describe('First Class Instance Dashboard Component', () => { ...@@ -25,7 +25,7 @@ describe('First Class Instance Dashboard Component', () => {
const findVulnerabilityChart = () => wrapper.find(VulnerabilityChart); const findVulnerabilityChart = () => wrapper.find(VulnerabilityChart);
const findCsvExportButton = () => wrapper.find(CsvExportButton); const findCsvExportButton = () => wrapper.find(CsvExportButton);
const findProjectManager = () => wrapper.find(ProjectManager); const findProjectManager = () => wrapper.find(ProjectManager);
const findEmptyState = () => wrapper.find(EmptyState); const findEmptyState = () => wrapper.find(DashboardNotConfigured);
const findFilters = () => wrapper.find(Filters); const findFilters = () => wrapper.find(Filters);
const createWrapper = ({ data = {}, stubs }) => { const createWrapper = ({ data = {}, stubs }) => {
...@@ -103,7 +103,7 @@ describe('First Class Instance Dashboard Component', () => { ...@@ -103,7 +103,7 @@ describe('First Class Instance Dashboard Component', () => {
data: { data: {
isManipulatingProjects: false, isManipulatingProjects: false,
stubs: { stubs: {
EmptyState, DashboardNotConfigured,
GlButton, GlButton,
}, },
}, },
......
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