Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
BionIT committed Feb 1, 2024
1 parent a9bef36 commit 48ba2b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = false;
const CREATE_NEW_COPIES_DEFAULT = true;
const OVERWRITE_ALL_DEFAULT = true;

export interface FlyoutProps {
Expand Down
12 changes: 11 additions & 1 deletion test/functional/page_objects/management/saved_objects_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,19 @@ export function SavedObjectsPageProvider({ getService, getPageObjects }: FtrProv
await testSubjects.click('importObjects');
await PageObjects.common.setFileInputPath(path);

const selectedInput = await find.byXPath("//div[input[@id='createNewCopiesDisabled']]");
await selectedInput.click();

const myradio = await testSubjects.find(
'savedObjectsManagement-importModeControl-overwriteRadioGroup'
);

const mydiv = await myradio.findByXpath("//div[input[@id='overwriteDisabled']]");
await mydiv.click();

if (!overwriteAll) {
log.debug(`Toggling overwriteAll`);

const radio = await testSubjects.find(
'savedObjectsManagement-importModeControl-overwriteRadioGroup'
);
Expand Down

0 comments on commit 48ba2b0

Please sign in to comment.