Pregunta

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?

¿Fue útil?

Solución

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}");
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top