Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 703 Bytes

zombie.md

File metadata and controls

36 lines (28 loc) · 703 Bytes
title category layout intro
Zombie
JavaScript libraries
2017/sheet
[Zombie](http://zombie.js.org/) is a full-stack testing solution for Node.js.

Zombie

Examples

browser
  .visit("http://.../", ->)
  .fill("email", "[email protected]")
  .fill("password", "eat-the-living")
  .select("Born", "1985")
  .uncheck("Send newsletter")
  .clickLink("Link name")
  .pressButton("Sign", () => { ... })
  .text("H1")

Expectations

expect(browser.query("#brains"))

expect(browser.body.queryAll(".hand")).length 2

console.log(browser.html())
console.log(browser.html("table.parts"))

expect(Browser.text(".card-nopad small"), "A better way to get around!")