aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/utils/elements.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src/utils/elements.ts')
-rw-r--r--client/e2e/src/utils/elements.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/e2e/src/utils/elements.ts b/client/e2e/src/utils/elements.ts
index 3ffa5defd..9d6cfe673 100644
--- a/client/e2e/src/utils/elements.ts
+++ b/client/e2e/src/utils/elements.ts
@@ -1,5 +1,8 @@
1function getCheckbox (name: string) { 1async function getCheckbox (name: string) {
2 return $(`my-peertube-checkbox input[id=${name}]`).parentElement() 2 const input = $(`my-peertube-checkbox input[id=${name}]`)
3 await input.waitForExist()
4
5 return input.parentElement()
3} 6}
4 7
5async function selectCustomSelect (id: string, valueLabel: string) { 8async function selectCustomSelect (id: string, valueLabel: string) {