vendredi 4 novembre 2016

Ember Test: input focus

I really don't understand the chain of events that's happening here. Trying to follow the guide as well as possible. I have:

test('Tab focus', function(assert) { 
    visit('/demo/form');
    click('input[type=text]');
    andThen(function() {
        assert.equal(
            find('input[type=text]').css('borderTopColor'), 'rgb(0, 125, 164)', 'Text input has focus'
        );
    });
});

only to have it fail: enter image description here

There are no transitions on the color change, and if I hit rerun, it DOES pass.




Aucun commentaire:

Enregistrer un commentaire