javascript - How can you click on links with Mocha in Meteor? -



javascript - How can you click on links with Mocha in Meteor? -

i want go page page in meteor app in order test onboarding process. @ moment have this:

$('#signup').click(); template.signupwithemail.onrendered(function() { chai.assert.equal($('#cool').text(), 'cool'); })

however, unsure if best practice. when not phone call onrendered, doesn't seem check page correctly. in addition, tests not seem refresh immediately.

javascript testing meteor mocha

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -