내 마지막 또는 zombie.js에 있는지는 확실하지 않지만이 매우 간단한 zombie.js 스크립트를 내 백본 응용 프로그램에서 작동시키지 못합니다. 제 마지막에 뭔가가 있습니까? 아니면 zombie.js가 Backbone 응용 프로그램에서 잘 작동하지 않는 것으로 알려진 문제입니까? 또한 Pow (http://pow.cx/)를 사용하여 myapp.dev를 통해 관련 앱에 연결합니다.Zombie.js가 백본 양식 제출과 함께 훌륭하게 작동하지 않음
백본과 관련된 조언이나 zombie.js 예제는 매우 유용합니다!
Browser = require "zombie"
assert = require "assert"
browser = new Browser()
browser.visit "http://myapp.dev/", ->
browser.clickLink ".sign-in a.route", ->
browser.fill "email", "[email protected]"
browser.fill "password", "mypassword"
browser.pressButton "input[type=submit]", ->
#the html that is outputted is the exact same as before
#the link is clicked, doesn't seem to be following through
console.log browser.html(".sign-out a.route")
JavaScript가 게시 된 것을 보는 것이 도움이됩니다. CoffeScript –