diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx index cff00b042075..9b8474fc08bb 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx @@ -305,7 +305,7 @@ describe('SavedObjectsTable', () => { }); }); - it('should display a warning if the export contains excluded objects', async () => { + it('should display a specific message if the export contains excluded objects', async () => { const mockSelectedSavedObjects = [ { id: '1', type: 'index-pattern' }, { id: '3', type: 'dashboard' }, @@ -344,7 +344,7 @@ describe('SavedObjectsTable', () => { await component.instance().onExport(true); expect(fetchExportObjectsMock).toHaveBeenCalledWith(http, mockSelectedSavedObjects, true); - expect(notifications.toasts.addWarning).toHaveBeenCalledWith({ + expect(notifications.toasts.addSuccess).toHaveBeenCalledWith({ title: 'Your file is downloading in the background. ' + 'Some objects were excluded from the export. ' + diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx index f3bf5962c031..9f3962bcebb0 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx @@ -416,7 +416,7 @@ export class SavedObjectsTable extends Component 0) { - return notifications.toasts.addWarning({ + return notifications.toasts.addSuccess({ title: i18n.translate( 'savedObjectsManagement.objectsTable.export.successWithExcludedObjectsNotification', {