# Acceptance test fails every second time

**URL:** <https://discuss.emberjs.com/t/acceptance-test-fails-every-second-time/6023>\
**Category:** Testing\
**Created:** [August 4, 2014, 6:10pm UTC](https://discuss.emberjs.com/t/acceptance-test-fails-every-second-time/6023 "2014-08-04T18:10:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![olsen\_chris](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/olsen_chris/32/9298_2.png) [@olsen\_chris](https://discuss.emberjs.com/u/olsen_chris)\
**Post date:** [August 4, 2014, 6:10pm UTC](https://discuss.emberjs.com/t/acceptance-test-fails-every-second-time/6023/1 "2014-08-04T18:10:32Z")

</div>

I have multistep simple acceptance test that involves drilling down within a sidebar to show the details in the main panel. The tests fail ever second run when run through Chrome and fail all the time when run through Phantom. if I split the test up further to one `andThen` per test things pass, but as soon as there are two or more it fails.

Any ideas on this?

```
test('should see the header title after navigating to a folder', function() {
  var title;

  visit('/classes');

  andThen(function() {
    title = find('h2.foo');
    equal(title.length, 0, 'Title should not yet be visible');
  });

  console.log(find('body').length) // => 0
  click('.panel__master-content a'); // fails here

  // class
  andThen(function() {
    title = find('h2.foo');
    equal(title.length, 0, 'Title should still not be visible');
  });
});

```

---

<div class="post-metadata">

**Author:** ![ChrizzDF](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@ChrizzDF](https://discuss.emberjs.com/u/ChrizzDF)\
**Post date:** [October 21, 2016, 7:19am UTC](https://discuss.emberjs.com/t/acceptance-test-fails-every-second-time/6023/2 "2016-10-21T07:19:09Z")

</div>

Hi there,

I’m facing the same problem right now. Could you solve this issue in the meantime or do you have any insights?
