hunterloftis / component-test

An experiment to see what a simple node app would look like with "Components" from the @visionmedia blog
29 stars 4 forks source link

All tests not passing #1

Open timeturner opened 12 years ago

timeturner commented 12 years ago

1) Browser of a registered user should get an error with bad credentials:                                                                                                                                                         [25/1915]
     TypeError: Cannot call method 'dispatchEvent' of undefined
      at Object.HTML.HTMLFormElement._dispatchSubmitEvent (/root/ctest/component-test/node_modules/zombie/lib/zombie/
forms.js:111:50)
      at Object.HTML.HTMLButtonElement._eventDefaults.click (/root/ctest/component-test/node_modules/zombie/lib/zombi
e/forms.js:220:21)
      at Object.define.proto.dispatchEvent (/root/ctest/component-test/node_modules/zombie/node_modules/jsdom/lib/jsd
om/level2/html.js:480:48)
      at EventLoop.dispatch (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:135:40)
      at Object.Windows._create.window._evaluate (/root/ctest/component-test/node_modules/zombie/lib/zombie/windows.j
s:271:23)
      at EventLoop.dispatch (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:134:14)
      at EventLoop.perform (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:120:5)
      at EventLoop.dispatch (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:131:10)
      at Browser.dispatchEvent (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:206:28)
      at Browser.fire (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:201:10)
      at Browser.pressButton (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:680:17)
      at Context. (/root/ctest/component-test/test/integration.test.js:41:10)
      at Test.Runnable.run (/root/ctest/component-test/node_modules/mocha/lib/runnable.js:171:15)
      at Runner.runTest (/root/ctest/component-test/node_modules/mocha/lib/runner.js:300:10)
      at Runner.runTests.next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:346:12)
      at next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:228:14)
      at Runner.hooks (/root/ctest/component-test/node_modules/mocha/lib/runner.js:237:7)
      at next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:185:23)
      at Runner.hook (/root/ctest/component-test/node_modules/mocha/lib/runner.js:205:5)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)

  2) Browser of a registered user should be able to sign in with good credentials:
     TypeError: Cannot call method 'dispatchEvent' of undefined
      at Object.HTML.HTMLFormElement._dispatchSubmitEvent (/root/ctest/component-test/node_modules/zombie/lib/zombie/
forms.js:111:50)
      at Object.HTML.HTMLButtonElement._eventDefaults.click (/root/ctest/component-test/node_modules/zombie/lib/zombi
e/forms.js:220:21)
      at Object.define.proto.dispatchEvent (/root/ctest/component-test/node_modules/zombie/node_modules/jsdom/lib/jsd
om/level2/html.js:480:48)
      at EventLoop.dispatch (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:135:40)
      at Object.Windows._create.window._evaluate (/root/ctest/component-test/node_modules/zombie/lib/zombie/windows.j
s:271:23)
      at EventLoop.dispatch (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:134:14)
      at EventLoop.perform (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:120:5)
      at EventLoop.dispatch (/root/ctest/component-test/node_modules/zombie/lib/zombie/eventloop.js:131:10)
      at Browser.dispatchEvent (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:206:28)
      at Browser.fire (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:201:10)
      at Browser.pressButton (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:680:17)
      at Context. (/root/ctest/component-test/test/integration.test.js:54:10)
      at Test.Runnable.run (/root/ctest/component-test/node_modules/mocha/lib/runnable.js:171:15)
      at Runner.runTest (/root/ctest/component-test/node_modules/mocha/lib/runner.js:300:10)
      at Runner.runTests.next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:346:12)
      at next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:228:14)
      at Runner.hooks (/root/ctest/component-test/node_modules/mocha/lib/runner.js:237:7)
      at next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:185:23)
      at Runner.hook (/root/ctest/component-test/node_modules/mocha/lib/runner.js:205:5)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)

  3) Browser of a registered user should be able to reload the dashboard:
     Error: timeout of 2000ms exceeded
      at Object. (/root/ctest/component-test/node_modules/mocha/lib/runnable.js:142:14)
      at Timer.list.ontimeout (timers.js:101:19)

  4) Browser of a registered user should be able to sign out:
     Error: No link matching 'Sign out'
      at Browser.clickLink (/root/ctest/component-test/node_modules/zombie/lib/zombie/browser.js:390:13)
      at Context. (/root/ctest/component-test/test/integration.test.js:70:15)
      at Test.Runnable.run (/root/ctest/component-test/node_modules/mocha/lib/runnable.js:171:15)
      at Runner.runTest (/root/ctest/component-test/node_modules/mocha/lib/runner.js:300:10)
      at Runner.runTests.next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:346:12)
      at next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:228:14)
      at Runner.hooks (/root/ctest/component-test/node_modules/mocha/lib/runner.js:237:7)
      at next (/root/ctest/component-test/node_modules/mocha/lib/runner.js:185:23)
      at Runner.hook (/root/ctest/component-test/node_modules/mocha/lib/runner.js:205:5)
      at process.startup.processNextTick.process._tickCallback (node.js:244:9)

make: *** [test-quick] Error 4
hunterloftis commented 12 years ago

I'm unable to recreate a failing test. Running multiple times, does it still fail for you? If so, which versions of node/npm are you using?

timeturner commented 12 years ago

npm version 1.1.59 and I've tried make test and make test-quick with the same results.

Although make setup does show this error generated by npm:

[ws v0.4.21] Attempting to compile blazing fast native extensions. [ws v0.4.21] Native code compile failed (but the module will still work): [ws v0.4.21] The native extensions are faster, but not required. [ws v0.4.21] On Windows, native extensions require Visual Studio and Python. [ws v0.4.21] On Unix, native extensions require Python, make and a C++ compiler. [ws v0.4.21] Start npm with --ws:verbose to show compilation output (if any). info trying registry request attempt 1 at 19:05:48 http GET http://registry.npmjs.org/bindings http 200 http://registry.npmjs.org/bindings npm http GET http://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz npm http 200 http://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz

contextify@0.1.3 install /root/ctest/component-test/node_modules/zombie/node_modules/jsdom/node_modules/contextify node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Python executable "python" is v2.7.1+, which is not supported by gyp. gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0. gyp ERR! stack at failPythonVersion (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:110:14) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:99:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:534:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17) gyp ERR! stack at maybeClose (child_process.js:634:16) gyp ERR! stack at Process._handle.onexit (child_process.js:676:5) gyp ERR! System Linux 2.6.38-8-virtual gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/ctest/component-test/node_modules/zombie/node_modules/jsdom/node_modules/contextify gyp ERR! node -v v0.8.8 gyp ERR! node-gyp -v v0.6.8 gyp ERR! not ok npm WARN optional dep failed, continuing contextify@0.1.3