-
-
Save darkwing/dbb5adf5618ccdf51b27 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
// Returns a Page Object Model which will contain helper methods and | |
// required properties for individual tests | |
define(['base/_config', 'base/_utils'], function(config, utils) { | |
function POM(remote, url, props) { | |
this.remote = remote; | |
this.url = url; | |
for(var prop in props) { | |
this.prototype[prop] = props[prop]; | |
} | |
return this; | |
} | |
// Shortcut method to help with login | |
POM.prototype.login = function(username, pass) { | |
}; | |
// Shortcut method to log out | |
POM.prototype.logout = function() { | |
return utils.completePersonaLogout(); | |
}; | |
// Goes back to the page's URL | |
POM.prototype.goTo = function(url) { | |
}; | |
// Tests for a given property within the page | |
POM.prototype.checkWindowPropertyExists = function(prop) { | |
return utils.checkWindowPropertyExists(prop); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment