Created
May 11, 2016 07:14
-
-
Save nicolanrizzo/bc0368ab2baa897c36a2148bed883dbc 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", | |
getButtonByName: function (buttonName) { | |
var mapping = { | |
"login": ".btn" | |
}; | |
return mapping[buttonName]; | |
}, | |
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