1 async function getCheckbox (name: string) {
2 const input = $(`my-peertube-checkbox input[id=${name}]`)
3 await input.waitForExist()
5 return input.parentElement()
8 async function selectCustomSelect (id: string, valueLabel: string) {
9 await $(`[formcontrolname=${id}] .ng-arrow-wrapper`).click()
11 const option = await $$(`[formcontrolname=${id}] .ng-option`).filter(async o => {
12 const text = await o.getText()
14 return text.trimStart().startsWith(valueLabel)
15 }).then(options => options[0])
17 await option.waitForDisplayed()