diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap b/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap index 131ea78797b7..d45055d69925 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/__snapshots__/saved_objects_table.test.tsx.snap @@ -211,7 +211,7 @@ exports[`SavedObjectsTable should render normally 1`] = ` filteredCount={4} hideImport={false} objectCount={4} - onCopy={[Function]} + onDuplicate={[Function]} onExportAll={[Function]} onImport={[Function]} onRefresh={[Function]} @@ -379,9 +379,9 @@ exports[`SavedObjectsTable should render normally 1`] = ` ] } onActionRefresh={[Function]} - onCopySelected={[Function]} - onCopySingle={[Function]} onDelete={[Function]} + onDuplicateSelected={[Function]} + onDuplicateSingle={[Function]} onExport={[Function]} onQueryChange={[Function]} onShowRelationships={[Function]} diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.test.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.test.tsx index 18dfb3a7ae17..d98fe7257fbd 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.test.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/header.test.tsx @@ -39,9 +39,10 @@ describe('Header', () => { onImport: () => {}, onRefresh: () => {}, onCopy: () => {}, + onDuplicate: () => {}, title: 'Saved Objects', selectedCount: 0, - totalCount: 4, + objectCount: 4, filteredCount: 2, showDuplicateAll: false, hideImport: false, @@ -60,9 +61,10 @@ describe('Header - workspace enabled', () => { onImport: () => {}, onRefresh: () => {}, onCopy: () => {}, + onDuplicate: () => {}, title: 'Saved Objects', selectedCount: 0, - totalCount: 4, + objectCount: 4, filteredCount: 2, showDuplicateAll: true, hideImport: false, @@ -70,7 +72,7 @@ describe('Header - workspace enabled', () => { const component = shallow(
); - expect(component.find('EuiButtonEmpty[data-test-subj="copyObjects"]').exists()).toBe(true); + expect(component.find('EuiButtonEmpty[data-test-subj="duplicateObjects"]').exists()).toBe(true); }); it('should hide `Import` button for application home state', () => { @@ -79,9 +81,10 @@ describe('Header - workspace enabled', () => { onImport: () => {}, onRefresh: () => {}, onCopy: () => {}, + onDuplicate: () => {}, title: 'Saved Objects', selectedCount: 0, - totalCount: 4, + objectCount: 4, filteredCount: 2, showDuplicateAll: true, hideImport: true,