test(ngModelOptions): ensure input has focus in e2e tests

This was not failing on Travis or Jenkins but was reliably failing on my
local build.
This commit is contained in:
Peter Bacon Darwin
2014-04-29 13:10:40 +01:00
parent 8e404c4dc1
commit 8d38ec3892

View File

@@ -2322,6 +2322,7 @@ var ngValueDirective = function() {
var other = element(by.model('user.data'));
it('should allow custom events', function() {
input.click();
input.sendKeys(' hello');
expect(model.getText()).toEqual('say');
other.click();
@@ -2329,6 +2330,7 @@ var ngValueDirective = function() {
});
it('should $cancelUpdate when model changes', function() {
input.click();
input.sendKeys(' hello');
expect(input.getAttribute('value')).toEqual('say hello');
input.sendKeys(protractor.Key.ESCAPE);