Skip to content
Go to file
Cannot retrieve contributors at this time
17 lines (14 sloc) 485 Bytes
Browser = require("zombie")
assert = require("assert")
user = "admin"
pass = "password"
# Load the page from localhost
browser = new Browser() = "http://localhost"
browser.visit "/", ->
# Fill email, password and submit form
browser.fill("name", user).fill("pass", pass).pressButton "Log in", ->
# Form submitted, new page loaded.
assert.ok browser.success
assert.equal browser.text(".admin-menu-account a"), "Hello " + user
console.log "Logged In"
You can’t perform that action at this time.