Last active
July 2, 2017 12:38
-
-
Save AnkurVyas-BTC/65687415b7dc54256aab9f19ced7c31f to your computer and use it in GitHub Desktop.
Static page tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//= require jquery | |
//= require spec_helper | |
describe("Static Page Test", function () { | |
it("test static page", function () { | |
// replace body contents with static HTML | |
$('body').html(JST['templates/static_template']()); | |
expect($('#sample-form').is(':visible')).to.be.true; | |
expect($('#sample-form h1').html()).to.equal('I am sample title'); | |
expect($('#input-1').val()).to.equal('type here'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment