]>
Commit | Line | Data |
---|---|---|
5f92c4dc C |
1 | import { browser, element, by } from 'protractor' |
2 | ||
3 | export class LoginPage { | |
4 | async loginAsRootUser () { | |
5 | await browser.get('/login') | |
6 | ||
0b33c520 C |
7 | element(by.css('input#username')).sendKeys('root') |
8 | element(by.css('input#password')).sendKeys('test1') | |
9 | ||
10 | await browser.sleep(1000) | |
5f92c4dc C |
11 | |
12 | await element(by.css('form input[type=submit]')).click() | |
13 | ||
14 | return browser.wait(browser.ExpectedConditions.urlContains('/videos/')) | |
15 | } | |
16 | } |