mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 22:35:25 +02:00
- Refactored e2e tests in separated test suites.
- `gulp protractor` now accepts a `--suite name` flag. - Removed warning bug in ChromeDriver. - ControlPage test now kicks the device.
This commit is contained in:
17
res/test/e2e/login/login-spec.js
Normal file
17
res/test/e2e/login/login-spec.js
Normal file
@@ -0,0 +1,17 @@
|
||||
describe('Login Page', function () {
|
||||
var LoginPage = require('./')
|
||||
var loginPage = new LoginPage()
|
||||
|
||||
it('should login with auth-mock', function () {
|
||||
loginPage.get()
|
||||
|
||||
loginPage.setName('test_user')
|
||||
loginPage.setEmail('test_user@test.local')
|
||||
|
||||
loginPage.submit().then(function () {
|
||||
browser.getLocationAbsUrl().then(function (newUrl) {
|
||||
expect(newUrl).toBe(protractor.getInstance().baseUrl + 'devices')
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user