Skip to content

Instantly share code, notes, and snippets.

@AnkurVyas-BTC
Last active July 2, 2017 12:38
Show Gist options
  • Save AnkurVyas-BTC/65687415b7dc54256aab9f19ced7c31f to your computer and use it in GitHub Desktop.
Save AnkurVyas-BTC/65687415b7dc54256aab9f19ced7c31f to your computer and use it in GitHub Desktop.
Static page tests
//= 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