import { $, element, by } from 'protractor';

export const importWithWizardButton = $('#wizardImport-link');

// Basic Import Setting tab
// VMWare
export const providerSelect = $('#provider-dropdown');
export const vcenterInstanceSelect = $('#vcenter-instance-dropdown');
export const vcenterHostnameInput = $('#vcenter-hostname-dropdown');
export const usernameInput = $('#vcenter-username');
export const vcenterPasswordInput = $('#vcenter-password');
export const vcenterSaveInstanceCheckbox = $('#vcenter-remember-credentials');
export const connectVmwareInstanceButton = $('#provider-vmware-connect');
export const vmwarePodStatusLoader = $('#v2v-vmware-status-status');
export const virtualMachineSelect = $('#vcenter-vm-dropdown');

export const vmNameHelper = $('#vm-name-helper');
export const errorHelper = $('.pf-c-form__helper-text.pf-m-error');

export const spinnerIcon = $('svg.fa-spin');
export const connectionWarning = $('h4.pf-c-alert__title');

export const seeDetailPageButton = element(by.buttonText('See virtual machine details'));

// export const importButton = element(by.buttonText('Import'));
export const importButton = $('#create-vm-wizard-submit-btn');

export const nextButton = element(by.buttonText('Next'));
export const cancelButton = element(by.buttonText('Cancel'));
export const modalCancelButton = $('.modal-content').element(by.buttonText('Cancel'));

export const confirmActionButton = $('#confirm-action');

export const operatingSystemSelect = $('#operating-system-dropdown');
export const flavorSelect = $('#flavor-dropdown');
export const workloadProfileSelect = $('#workload-profile-dropdown');
export const customFlavorMemoryInput = $('#resources-memory-size');
export const customFlavorCpusInput = $('#resources-cpu');
