[tests/infra] fix input clearing (#35028)
This commit is contained in:
parent
9785a53492
commit
19c7db49dd
|
@ -37,11 +37,11 @@ export default ({ getPageObjects, getService }: KibanaFunctionalTestDefaultProvi
|
||||||
await pageObjects.infraLogs.openSourceConfigurationFlyout();
|
await pageObjects.infraLogs.openSourceConfigurationFlyout();
|
||||||
|
|
||||||
const nameInput = await infraSourceConfigurationFlyout.getNameInput();
|
const nameInput = await infraSourceConfigurationFlyout.getNameInput();
|
||||||
await nameInput.clearValue();
|
await nameInput.clearValueWithKeyboard({ charByChar: true });
|
||||||
await nameInput.type('Modified Source');
|
await nameInput.type('Modified Source');
|
||||||
|
|
||||||
const logIndicesInput = await infraSourceConfigurationFlyout.getLogIndicesInput();
|
const logIndicesInput = await infraSourceConfigurationFlyout.getLogIndicesInput();
|
||||||
await logIndicesInput.clearValue();
|
await logIndicesInput.clearValueWithKeyboard({ charByChar: true });
|
||||||
await logIndicesInput.type('does-not-exist-*');
|
await logIndicesInput.type('does-not-exist-*');
|
||||||
|
|
||||||
await infraSourceConfigurationFlyout.saveConfiguration();
|
await infraSourceConfigurationFlyout.saveConfiguration();
|
||||||
|
@ -56,7 +56,7 @@ export default ({ getPageObjects, getService }: KibanaFunctionalTestDefaultProvi
|
||||||
await pageObjects.infraLogs.openSourceConfigurationFlyout();
|
await pageObjects.infraLogs.openSourceConfigurationFlyout();
|
||||||
|
|
||||||
const logIndicesInput = await infraSourceConfigurationFlyout.getLogIndicesInput();
|
const logIndicesInput = await infraSourceConfigurationFlyout.getLogIndicesInput();
|
||||||
await logIndicesInput.clearValue();
|
await logIndicesInput.clearValueWithKeyboard({ charByChar: true });
|
||||||
await logIndicesInput.type('filebeat-*');
|
await logIndicesInput.type('filebeat-*');
|
||||||
|
|
||||||
await infraSourceConfigurationFlyout.saveConfiguration();
|
await infraSourceConfigurationFlyout.saveConfiguration();
|
||||||
|
|
|
@ -41,11 +41,11 @@ export default ({ getPageObjects, getService }: KibanaFunctionalTestDefaultProvi
|
||||||
await pageObjects.infraHome.openSourceConfigurationFlyout();
|
await pageObjects.infraHome.openSourceConfigurationFlyout();
|
||||||
|
|
||||||
const nameInput = await infraSourceConfigurationFlyout.getNameInput();
|
const nameInput = await infraSourceConfigurationFlyout.getNameInput();
|
||||||
await nameInput.clearValue();
|
await nameInput.clearValueWithKeyboard({ charByChar: true });
|
||||||
await nameInput.type('Modified Source');
|
await nameInput.type('Modified Source');
|
||||||
|
|
||||||
const metricIndicesInput = await infraSourceConfigurationFlyout.getMetricIndicesInput();
|
const metricIndicesInput = await infraSourceConfigurationFlyout.getMetricIndicesInput();
|
||||||
await metricIndicesInput.clearValue();
|
await metricIndicesInput.clearValueWithKeyboard({ charByChar: true });
|
||||||
await metricIndicesInput.type('does-not-exist-*');
|
await metricIndicesInput.type('does-not-exist-*');
|
||||||
|
|
||||||
await infraSourceConfigurationFlyout.saveConfiguration();
|
await infraSourceConfigurationFlyout.saveConfiguration();
|
||||||
|
@ -60,7 +60,7 @@ export default ({ getPageObjects, getService }: KibanaFunctionalTestDefaultProvi
|
||||||
await pageObjects.infraHome.openSourceConfigurationFlyout();
|
await pageObjects.infraHome.openSourceConfigurationFlyout();
|
||||||
|
|
||||||
const metricIndicesInput = await infraSourceConfigurationFlyout.getMetricIndicesInput();
|
const metricIndicesInput = await infraSourceConfigurationFlyout.getMetricIndicesInput();
|
||||||
await metricIndicesInput.clearValue();
|
await metricIndicesInput.clearValueWithKeyboard({ charByChar: true });
|
||||||
await metricIndicesInput.type('metricbeat-*');
|
await metricIndicesInput.type('metricbeat-*');
|
||||||
|
|
||||||
await infraSourceConfigurationFlyout.saveConfiguration();
|
await infraSourceConfigurationFlyout.saveConfiguration();
|
||||||
|
|
Loading…
Reference in a new issue