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

Commit 8d38ec3

Browse files
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.
1 parent 8e404c4 commit 8d38ec3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ng/directive/input.js

+2
Original file line numberDiff line numberDiff line change
@@ -2322,13 +2322,15 @@ var ngValueDirective = function() {
23222322
var other = element(by.model('user.data'));
23232323
23242324
it('should allow custom events', function() {
2325+
input.click();
23252326
input.sendKeys(' hello');
23262327
expect(model.getText()).toEqual('say');
23272328
other.click();
23282329
expect(model.getText()).toEqual('say hello');
23292330
});
23302331
23312332
it('should $cancelUpdate when model changes', function() {
2333+
input.click();
23322334
input.sendKeys(' hello');
23332335
expect(input.getAttribute('value')).toEqual('say hello');
23342336
input.sendKeys(protractor.Key.ESCAPE);

0 commit comments

Comments
 (0)