mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Fix lint
This commit is contained in:
parent
12c9825658
commit
a6266dc4bf
1 changed files with 2 additions and 2 deletions
|
@ -67,9 +67,9 @@ export async function selectCustomSelect (id: string, valueLabel: string) {
|
||||||
|
|
||||||
export async function findParentElement (
|
export async function findParentElement (
|
||||||
el: ChainablePromiseElement,
|
el: ChainablePromiseElement,
|
||||||
finder: (el: WebdriverIO.Element) => Promise<boolean>
|
finder: (el: ChainablePromiseElement) => Promise<boolean>
|
||||||
) {
|
) {
|
||||||
if (await finder(el) === true) return el
|
if (await finder(el) === true) return el
|
||||||
|
|
||||||
return findParentElement(await el.parentElement(), finder)
|
return findParentElement(el.parentElement(), finder)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue