Created
May 11, 2016 07:13
-
-
Save nicolanrizzo/d07494ba7025bf362859e385d67f3027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test/e2e/support/pages/login/login.js | |
'use strict'; | |
module.exports = function login() { | |
return { | |
url: "login", | |
getFieldByName: function (name) { | |
var mapping = { | |
"email": 'input[ng-model="login.mail"]', | |
"password": 'input[ng-model="login.password"]' | |
}; | |
return mapping[name]; | |
} | |
}; | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment