Skip to content

Instantly share code, notes, and snippets.

@jpfuentes2
Created September 12, 2012 17:25
Show Gist options
  • Save jpfuentes2/3708381 to your computer and use it in GitHub Desktop.
Save jpfuentes2/3708381 to your computer and use it in GitHub Desktop.
zombie.js testing
Zombie = require "zombie"
assert = require("chai").assert
$ = require "jquery"
describe "When first visiting the time entry page", ->
before (done) ->
@browser = new Zombie
@browser.visit("http://localhost:4567").then done, done
it "should present you with a login form", (done) ->
login = @browser.query "#login"
assert.ok login
done()
it "should not show the main app", (done) ->
entry = @browser.query "#entry"
assert.isFalse $(entry).is(":visible")
done()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment