diff options
Diffstat (limited to 'client/e2e/src/po')
-rw-r--r-- | client/e2e/src/po/login.po.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/e2e/src/po/login.po.ts b/client/e2e/src/po/login.po.ts index f1d13a2b0..30469cf1b 100644 --- a/client/e2e/src/po/login.po.ts +++ b/client/e2e/src/po/login.po.ts | |||
@@ -60,6 +60,10 @@ export class LoginPage { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | loginOnPeerTube2 () { | 62 | loginOnPeerTube2 () { |
63 | if (!process.env.PEERTUBE2_E2E_PASSWORD) { | ||
64 | throw new Error('PEERTUBE2_E2E_PASSWORD env is missing for user e2e on peertube2.cpy.re') | ||
65 | } | ||
66 | |||
63 | return this.login({ username: 'e2e', password: process.env.PEERTUBE2_E2E_PASSWORD, url: 'https://peertube2.cpy.re/login' }) | 67 | return this.login({ username: 'e2e', password: process.env.PEERTUBE2_E2E_PASSWORD, url: 'https://peertube2.cpy.re/login' }) |
64 | } | 68 | } |
65 | 69 | ||