mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Add a function to the time picker page object to set a commonly-used timespan option. (#37374)
This commit is contained in:
parent
0416dd8920
commit
109d10fcf5
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