Created
September 12, 2012 17:25
-
-
Save jpfuentes2/3708381 to your computer and use it in GitHub Desktop.
zombie.js testing
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
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