QUnit uses the nojs page


(Mittineague) #1

I’m still a relative newbie when it comes to unit tests. But I think it has potential and envision a “safe-mode” feature that could run tests to make determining which plugin is causing a problem easier and therefore have been spending time learning about automated testing.

Most of the QUnit tests I currently have are working. Of those that fail, I have discovered that QUnit is working with the nojs version of the page instead of the page as it is in a browser with JavaScript enabled.

I’m probably just not understanding what tests belong where. That is, some should be RSpec tests, others should be QUnit tests. But if possible, I would like to know how I can test the DOM of the JavaScript enabled page.