Everytime I run my tests, the first test to run fails to access the DOM, the other are passing. For instance, imagine I'm having moduleA and moduleB. Right now, the first test of moduleA fails because it can't find an element in the DOM tree while the moduleB is all green. But if I run moduleB alone, then the first test of moduleB would fails.
I assume there's something I'm not initializing correctly.
FAILING TEST
expect(11);
visit('/settings/categories');
click('._add-category'); // **Failing line**
andThen(function() {
// assertions
TESTS SETUP
App = Ember.Application.create();
App.injectTestHelpers();
App.setupForTesting();
App.rootElement = '#ember-testing';
I'm running Ember 1.11.3
Aucun commentaire:
Enregistrer un commentaire