Skip to content

Instantly share code, notes, and snippets.

@misaxi
Created January 30, 2014 03:27
Show Gist options
  • Save misaxi/8702016 to your computer and use it in GitHub Desktop.
Save misaxi/8702016 to your computer and use it in GitHub Desktop.
AddOwnerPage = require 'Pages/AddOwnerPage'
ViewOwnerPage = require 'Pages/ViewOwnerPage'
TestHelper = require 'Utils/TestHelper'
TestHelper.doAfterLogin 'owner', (it) ->
it 'should be created', ->
# test logics here
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