blob: ada52cb24d18580d21af8996e880d98b270aa8f8 (
plain) (
tree)
|
|
import { browser, element, by } from 'protractor'
export class LoginPage {
async loginAsRootUser () {
await browser.get('/login')
element(by.css('input#username')).sendKeys('root')
element(by.css('input#password')).sendKeys('test1')
await element(by.css('form input[type=submit]')).click()
return browser.wait(browser.ExpectedConditions.urlContains('/videos/'))
}
}
|