mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user