diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-17 10:55:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-17 15:20:21 +0200 |
commit | 5f92c4dc5f08094548be9d23080dd3ca75741c65 (patch) | |
tree | a5fd5e2e7f46b28817733afc3cd1a3afcdab0c3a /client/e2e/src/po/login.po.ts | |
parent | 74af5a8361f4ccb460001706ce249d50c747f361 (diff) | |
download | PeerTube-5f92c4dc5f08094548be9d23080dd3ca75741c65.tar.gz PeerTube-5f92c4dc5f08094548be9d23080dd3ca75741c65.tar.zst PeerTube-5f92c4dc5f08094548be9d23080dd3ca75741c65.zip |
Add videos e2e tests
Diffstat (limited to 'client/e2e/src/po/login.po.ts')
-rw-r--r-- | client/e2e/src/po/login.po.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/e2e/src/po/login.po.ts b/client/e2e/src/po/login.po.ts new file mode 100644 index 000000000..ada52cb24 --- /dev/null +++ b/client/e2e/src/po/login.po.ts | |||
@@ -0,0 +1,14 @@ | |||
1 | import { browser, element, by } from 'protractor' | ||
2 | |||
3 | export class LoginPage { | ||
4 | async loginAsRootUser () { | ||
5 | await browser.get('/login') | ||
6 | |||
7 | element(by.css('input#username')).sendKeys('root') | ||
8 | element(by.css('input#password')).sendKeys('test1') | ||
9 | |||
10 | await element(by.css('form input[type=submit]')).click() | ||
11 | |||
12 | return browser.wait(browser.ExpectedConditions.urlContains('/videos/')) | ||
13 | } | ||
14 | } | ||