私の最後かzombie.jsかどうかは分かりませんが、私のBackboneアプリケーションで動作するこの非常に単純なzombie.jsスクリプトを手に入れることはできません。それは完全に私の終わりにあるのでしょうか、それとも、zombie.jsがBackboneアプリケーションでうまく動かないという既知の問題ですか?また、Pow(http://pow.cx/)を使用してmyapp.devを介してアプリケーションに接続します。Backboneフォームの投稿で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のように表示されます –