Ask questions any time
npm -g install phantomjs-prebuilt
How did I end up on the admin panel when I clicked on search?
npm -g install casperjs
casperjs test path/to/file.js
casper.test.begin('Site has 10 blog posts', 1, function suite(test) { casper.start("http://btmash.com", function() { test.assertTitle("BTMash | Blob of contradictions", "Correct title"); }); casper.then(function() { test.assertEval(function() { return __utils__.findAll("article.node-article").length >= 10; }, "Blog has 10 or more blog posts on home page"); }); casper.run(function() { test.done(); }); });
Why does the site feel so slow? We're only using jQuery, Angular, React, and Backbone
npm -g install psi psi URL (--strategy=mobile) (--threshold=70)
npm -g install phantomas phantomas URL (--options)
# default task grunt # Generate Report grunt phantomas:default # Generate Report + Screenshot grunt phantomas:screenshot # Assert tests grunt phantomas:requests
Why is the background on production ultramarine? It used to be periwinkle
# install wraith gem install wraith # Run wraith config wraith capture configs/file.yaml # View results in browser open shots/gallery.html # Use history (if set up that way) wraith history configs/historical.yaml