Acceptance test fails every second time


#1

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');
  });
});

#2

Hi there,

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