Satisfy is a minimalistic browser testing utility designed to work with any test framework, oriented only around <strong>CSS selectors</strong>, designed for <strong>speed</strong> both of <em>test writing</em> and <em>test execution</em>.
Satisfy is a minimalistic browser testing utility designed to work with any test framework, oriented only around CSS selectors, designed for speed both of test writing and test execution.
For development, run the tests in a headless WebKit browser. For deployments, run them in the cloud in all browsers with Selenium.
It's the expect.js of browser / acceptance testing.
With the mocha test framework:
var satisfy = ;;
Then run it:
$ mocha -t 0 test.js
:containsfor text matching.
// override expect timeout
You can pass options to specific satisfy instances:
runis not called, it calls it automatically for you
If you wanted to pass options to all instances, you can implement that in userland easily by defining your own helper method: