mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add a function to the time picker page object to set a commonly-used timespan option. (#37374) (#37504)
This commit is contained in:
parent
4c72c7c93c
commit
08555cc6e3
1 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,14 @@ export function TimePickerPageProvider({ getService, getPageObjects }) {
|
|||
await PageObjects.header.awaitGlobalLoadingIndicatorHidden();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} commonlyUsedOption 'superDatePickerCommonlyUsed_This_week'
|
||||
*/
|
||||
async setCommonlyUsedTime(commonlyUsedOption) {
|
||||
await testSubjects.click('superDatePickerToggleQuickMenuButton');
|
||||
await testSubjects.click(commonlyUsedOption);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {String} fromTime YYYY-MM-DD HH:mm:ss.SSS
|
||||
* @param {String} fromTime YYYY-MM-DD HH:mm:ss.SSS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue