ref #184 this commit adds Mocha and Chai to an app/test directory and tests the style._ template when ?test=true is passed as a param. Currently there are tests for: tab interactions in the editor, documentation and layers.
Still need to:
Drop in some stuff
Add test as a query param in the url then require test scripts
Add UI test framework to app/
Fix up this.tab called in deltab
Delete tab test
Test for tab creation
Write a failed test. Ref #192
Fix code to clear test. ref #192
Remove it() interactions that are not handled in js
Write test for layer description opening
Test for doc tab switching
Simple test for tab toggling
Add mocha-phantomjs and phantomjs to npm install and add a script ent…
…ry to .travis.yml
Start the server and sleep before command
hrm .. bunp this to 60 for good measure?
Use older versions of client-side mocha+chai from a project that works?
Running into issues getting .travis.yml set up with this. Running the command locally from root:
returns this error and then hangs:
(ui-tests)$ Failed to start mocha: Init timeout
I've tried uninstalling my global package of mocha, tried alternate versions of the client-side mocha.js and chai.js libs to no avail.
single to double
Add & to continue