mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Allow custom timeouts on click (#14042)
This commit is contained in:
parent
d49692f122
commit
c3c55ded22
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ export function TestSubjectsProvider({ getService }) {
|
|||
});
|
||||
}
|
||||
|
||||
async click(selector) {
|
||||
async click(selector, timeout = defaultFindTimeout) {
|
||||
return await retry.try(async () => {
|
||||
const element = await this.find(selector);
|
||||
const element = await this.find(selector, timeout);
|
||||
await remote.moveMouseTo(element);
|
||||
await element.click();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue