The project integrates phantomjs but there isn't a functional test (similar to how there are unit tests for the controllers, for example). Would it be possible to include a simple phantomjs test that exercises a couple pages?
I tried (not a javascript veteran) but simply dropping in a phantomjs example results in an error:
ReferenceError: Can't find variable: require
This is the offending line:
var page = require('webpage').create();
Issue details
The project integrates phantomjs but there isn't a functional test (similar to how there are unit tests for the controllers, for example). Would it be possible to include a simple phantomjs test that exercises a couple pages?
I tried (not a javascript veteran) but simply dropping in a phantomjs example results in an error:
This is the offending line:
var page = require('webpage').create();
Please provide some guidance... thank you.