diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-21 09:09:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-21 10:49:54 +0200 |
commit | 1db86422eb516acd23550f30536de4ebd8f0daea (patch) | |
tree | 909c01cf3f5903ba5d44f182d4988586ad8650c1 /client/e2e/src/utils/elements.ts | |
parent | 2b621ac0ebe83693bba6354b3482a03ba58143e7 (diff) | |
download | PeerTube-1db86422eb516acd23550f30536de4ebd8f0daea.tar.gz PeerTube-1db86422eb516acd23550f30536de4ebd8f0daea.tar.zst PeerTube-1db86422eb516acd23550f30536de4ebd8f0daea.zip |
Add E2E tests for signup
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) { |