Created
January 30, 2014 03:27
-
-
Save misaxi/8702016 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
AddOwnerPage = require 'Pages/AddOwnerPage' | |
ViewOwnerPage = require 'Pages/ViewOwnerPage' | |
TestHelper = require 'Utils/TestHelper' | |
TestHelper.doAfterLogin 'owner', (it) -> | |
it 'should be created', -> | |
# test logics here |
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
LoginPage = require 'Pages/LoginPage' | |
module.exports = | |
doAfterLogin : (name, test) -> | |
describe name, -> | |
### login before each test starts ### | |
beforeEach -> | |
new LoginPage().loginToPt() | |
### logout after each test finishes ### | |
afterEach -> | |
browser.driver.get config.baseUrl + '/Account/LogOff' | |
test it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment