diff options
author | Wicklow <123956049+wickloww@users.noreply.github.com> | 2023-07-17 09:31:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-17 11:31:42 +0200 |
commit | cbe06f779f485935b227ccbb48a4493e4acda725 (patch) | |
tree | 93556507650a20ee544e1eb0a51588318156732f /client/e2e/src/po/player.po.ts | |
parent | 260242decdd740bfee8b9f7c9536d98a6a951bcf (diff) | |
download | PeerTube-cbe06f779f485935b227ccbb48a4493e4acda725.tar.gz PeerTube-cbe06f779f485935b227ccbb48a4493e4acda725.tar.zst PeerTube-cbe06f779f485935b227ccbb48a4493e4acda725.zip |
Add e2e tests for password protected videos (#5860)
Diffstat (limited to 'client/e2e/src/po/player.po.ts')
-rw-r--r-- | client/e2e/src/po/player.po.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/e2e/src/po/player.po.ts b/client/e2e/src/po/player.po.ts index a20e683bc..33719da25 100644 --- a/client/e2e/src/po/player.po.ts +++ b/client/e2e/src/po/player.po.ts | |||
@@ -61,4 +61,15 @@ export class PlayerPage { | |||
61 | await playButton().waitForClickable() | 61 | await playButton().waitForClickable() |
62 | await playButton().click() | 62 | await playButton().click() |
63 | } | 63 | } |
64 | |||
65 | async fillEmbedVideoPassword (videoPassword: string) { | ||
66 | const videoPasswordInput = $('input#video-password-input') | ||
67 | const confirmButton = await $('button#video-password-submit') | ||
68 | |||
69 | await videoPasswordInput.clearValue() | ||
70 | await videoPasswordInput.setValue(videoPassword) | ||
71 | await confirmButton.waitForClickable() | ||
72 | |||
73 | return confirmButton.click() | ||
74 | } | ||
64 | } | 75 | } |