Zombie.js는 Node.js를 위한 경량 풀스택 헤드리스 브라우저 테스팅 솔루션입니다.
브라우저 자동화
워크플로 예제
browser
.visit("http://localhost:3000/", () => {})
.fill("email", "[email protected]")
.fill("password", "eat-the-living")
.select("Born", "1985")
.uncheck("Send newsletter")
.clickLink("Link name")
.pressButton("Sign", () => { ... })
.text("H1")
기대값 및 단언 (Assertions)
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"), "더 나은 이동 방법!")