Capturing web page snapshots during unit testing using phantoms and jasmine

I can't seem to communicate with jasmine and phantoms. I am using the run-jasmine.js file in the examples folder for phantomjs. The problem I get is that the file cannot find the system, so it cannot require it.

This is a special message:

undefined:0 Unknown module system for require()

Also, I was wondering how to get dom to manipulate the jt jasmine html file.

EDIT: It looks like the DOM problem was simple because it just used the functionality of the phantom js browser without a browser. I still have a system problem, and I am wondering how to call the render page between each test, and not when the page loads.

+5
source share

All Articles