Unfortunately that means that we can change the handlebars templates in a breaking way without breaking any tests. Instead, the tests should load the compiled Mustache templates from app/js/templates.js and interpolate them with appropriate values for each test.
Using
jasmine-fixture
inspec
allows changes to the HTML to break the app without causing tests to fail.Right now our tests use a function called
affix
that's part ofjasmine-fixture
in order to generate a dummy HTML page for testing, e.g.affix('form input#newPassword+input#retypePassword+input#newPasswordError+input#retypePasswordError+input#oldPassword+div#genericError');
Unfortunately that means that we can change the handlebars templates in a breaking way without breaking any tests. Instead, the tests should load the compiled Mustache templates from
app/js/templates.js
and interpolate them with appropriate values for each test.