Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
test(ngModelOptions): ensure input has focus in e2e tests
Browse files Browse the repository at this point in the history
This was not failing on Travis or Jenkins but was reliably failing on my
local build.
  • Loading branch information
petebacondarwin committed Apr 29, 2014
1 parent 8e404c4 commit 8d38ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -2322,13 +2322,15 @@ 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();
expect(model.getText()).toEqual('say hello');
});
it('should $cancelUpdate when model changes', function() {
input.click();
input.sendKeys(' hello');
expect(input.getAttribute('value')).toEqual('say hello');
input.sendKeys(protractor.Key.ESCAPE);
Expand Down

0 comments on commit 8d38ec3

Please sign in to comment.