-
Notifications
You must be signed in to change notification settings - Fork 2
Model
cedric lombardot edited this page Oct 8, 2015
·
1 revision
Create your models in test/e2e/support/helper/model/*.js
usefull to redirect on pages with ids
Eg user.js
'use strict';
module.exports = function UserHelper() {
return {
/** Get site by id
* @param {string} param
* @returns {string}
*/
get: function getId(param) {
var mapping = {
"cedric": {
id: "390"
}
}
return mapping[param];
}
};
}();
For example using this feature :
Given I am on the "Profil" of user "cedric"
Will load Profil page replacing /:id
with 390