# QUnit uses the nojs page

**URL:** https://meta.discourse.org/t/qunit-uses-the-nojs-page/58033
**Category:** Development
**Created:** [2017年二月27日 19:11 UTC](https://meta.discourse.org/t/qunit-uses-the-nojs-page/58033 "2017-02-27T19:11:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2017年二月27日 19:11 UTC](https://meta.discourse.org/t/qunit-uses-the-nojs-page/58033/1 "2017-02-27T19:11:02Z")

</div>

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.

> <https://github.com/Mittineague/discourse-newpage/blob/master/test/javascripts/acceptance/discourse-newpage-test.js.es6>
