I've recently had problems when running tests that wait for a focus event through yeti.
For example, the test below:
var suite = new Y.Test.Suite('my-suite');
suite.add(new Y.Test.Case({
name: 'Automated Tests',
'should focus': function() {
var called = false;
var input = Y.one('#input');
input.on('focus', function() {
called = true;
});
input.focus();
Y.Assert.isTrue(called);
}
}));
Y.Test.Runner.add(suite);
This test passes normally as expected when run by opening the html file manually in a browser, but always fails when run by yeti. We suspect that yeti is stealing the focus somehow.