diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-28 11:19:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-28 15:22:40 +0200 |
commit | 814e9e07ba65446af8446dbbd2f0d70c85fd1b33 (patch) | |
tree | 9c1f130d4a773208c5bdf33ec942be060e3c3ad2 /client/e2e/src/utils/elements.ts | |
parent | 672e185bf3004b46552c227483ffd2802ebf6844 (diff) | |
download | PeerTube-814e9e07ba65446af8446dbbd2f0d70c85fd1b33.tar.gz PeerTube-814e9e07ba65446af8446dbbd2f0d70c85fd1b33.tar.zst PeerTube-814e9e07ba65446af8446dbbd2f0d70c85fd1b33.zip |
Improve E2E tests
Add tests for private video static endpoints
Fix tests for local firefox
Diffstat (limited to 'client/e2e/src/utils/elements.ts')
-rw-r--r-- | client/e2e/src/utils/elements.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/e2e/src/utils/elements.ts b/client/e2e/src/utils/elements.ts index 9d6cfe673..b0ddd5a65 100644 --- a/client/e2e/src/utils/elements.ts +++ b/client/e2e/src/utils/elements.ts | |||
@@ -6,7 +6,10 @@ async function getCheckbox (name: string) { | |||
6 | } | 6 | } |
7 | 7 | ||
8 | async function selectCustomSelect (id: string, valueLabel: string) { | 8 | async function selectCustomSelect (id: string, valueLabel: string) { |
9 | await $(`[formcontrolname=${id}] .ng-arrow-wrapper`).click() | 9 | const wrapper = $(`[formcontrolname=${id}] .ng-arrow-wrapper`) |
10 | |||
11 | await wrapper.waitForClickable() | ||
12 | await wrapper.click() | ||
10 | 13 | ||
11 | const option = await $$(`[formcontrolname=${id}] .ng-option`).filter(async o => { | 14 | const option = await $$(`[formcontrolname=${id}] .ng-option`).filter(async o => { |
12 | const text = await o.getText() | 15 | const text = await o.getText() |