diff options
Diffstat (limited to 'client/e2e/src/utils/elements.ts')
-rw-r--r-- | client/e2e/src/utils/elements.ts | 7 |
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 @@ | |||
1 | function getCheckbox (name: string) { | 1 | async 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 | ||
5 | async function selectCustomSelect (id: string, valueLabel: string) { | 8 | async function selectCustomSelect (id: string, valueLabel: string) { |