# Ember Integraton testing problem QUnit

**URL:** <https://discuss.emberjs.com/t/ember-integraton-testing-problem-qunit/2390>\
**Category:** Testing\
**Created:** [September 3, 2013, 11:12am UTC](https://discuss.emberjs.com/t/ember-integraton-testing-problem-qunit/2390 "2013-09-03T11:12:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emil\_temirov](https://avatars.discourse-cdn.com/v4/letter/e/49beb7/32.png) [@emil\_temirov](https://discuss.emberjs.com/u/emil_temirov)\
**Post date:** [September 3, 2013, 11:12am UTC](https://discuss.emberjs.com/t/ember-integraton-testing-problem-qunit/2390/1 "2013-09-03T11:12:51Z")

</div>

```
window.App.setupForTesting();

window.App.injectTestHelpers();

module("Integration Tests", {
    setup: function() {
        window.App.reset();
    }
});
test("index redirect to auth and authenticate", function(){
    visit("/").click('.linkToRegister').then(function(){debugger});
});

```

My IndexRoute redirect me to #/auth and render auth form template. Link ‘.linkToRegister’ - transitionTo register route. But when i run testing - i see auth page only. Click event not work. Anything after “visit” function not work. Why?
