1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-01-12 22:12:04 +01:00
cheatsheets/zombie.md
Rico Sta. Cruz 511de900ba
Formatting updates (#2133)
- Update some sheets which have very long sections
- Remove `layout: 2017/sheet` (everything has the same layout now)
- Remove outdated sheets
2024-04-03 18:30:24 +11:00

684 B

title, category, intro
title category intro
Zombie JavaScript libraries [Zombie](http://zombie.js.org/) is a full-stack testing solution for Node.js.

Zombie

Examples

browser
  .visit("http://.../", ->)
  .fill("email", "zombie@underworld.dead")
  .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!")