From a9bef363efbaffc6c1cd916a22cffccadb254394 Mon Sep 17 00:00:00 2001 From: Lu Yu Date: Thu, 1 Feb 2024 03:29:00 +0000 Subject: [PATCH] revert --- .../management_section/objects_table/components/flyout.tsx | 2 +- test/functional/page_objects/management/saved_objects_page.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx b/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx index a141ea06f175..003d95940907 100644 --- a/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx +++ b/src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx @@ -82,7 +82,7 @@ import { ImportSummary } from './import_summary'; // eslint-disable-next-line @osd/eslint/no-restricted-paths import { DataSourcePicker } from '../../../../../data_source_management/public/components/data_source_picker/data_source_picker.js'; -const CREATE_NEW_COPIES_DEFAULT = true; +const CREATE_NEW_COPIES_DEFAULT = false; const OVERWRITE_ALL_DEFAULT = true; export interface FlyoutProps { diff --git a/test/functional/page_objects/management/saved_objects_page.ts b/test/functional/page_objects/management/saved_objects_page.ts index 0952fc6d0701..8cbfcd1cd762 100644 --- a/test/functional/page_objects/management/saved_objects_page.ts +++ b/test/functional/page_objects/management/saved_objects_page.ts @@ -59,9 +59,7 @@ export function SavedObjectsPageProvider({ getService, getPageObjects }: FtrProv if (!overwriteAll) { log.debug(`Toggling overwriteAll`); - await testSubjects.click( - 'savedObjectsManagement-importModeControl-createNewCopiesDisabled' - ); + const radio = await testSubjects.find( 'savedObjectsManagement-importModeControl-overwriteRadioGroup' );