Reputation: 1301
How to get fixtures data (reload) again after triggering click event in JASMINE JS FRAMEWORK?
EDITed:
Jasmine framework is used to create testing tool for javascript apps.(BDD - Behavior - Driven Development).
I have developed application using backbone.js. I want to create a testing tool for that. In some UI part, I did some SHOW/HIDE div.
How to check DOM properties(UI), whenever I making events, like Click, Hover, Blur, etc.
How can I check when I clicked button it is SHOWing content or Hiding content using JASMINE Framework?
Upvotes: 0
Views: 1111
Reputation: 214
First you have to load the fixtures then you have to search with any of jasmine-jquery method:
loadFixtures("fixtures/path/fixture.html");
expect($('$(body)')).toHaveText("{YOUT_TEXT}");
Upvotes: 1