aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/utils/elements.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-21 09:09:46 +0200
committerChocobozzz <me@florianbigard.com>2022-06-21 10:49:54 +0200
commit1db86422eb516acd23550f30536de4ebd8f0daea (patch)
tree909c01cf3f5903ba5d44f182d4988586ad8650c1 /client/e2e/src/utils/elements.ts
parent2b621ac0ebe83693bba6354b3482a03ba58143e7 (diff)
downloadPeerTube-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.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) {