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

Commit 42f3ede

Browse files
committed
Fix element spec.
1 parent 0555d39 commit 42f3ede

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

spec/basic/elements_spec.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,12 @@ describe('ElementFinder', function() {
151151

152152
it('should propagate exceptions', function() {
153153
browser.get('index.html#/form');
154-
var successful = protractor.promise.defer();
155154

156-
var invalidElement = element(by.binding('INVALID'));
157-
invalidElement.getText().then(function(/* string */) {
158-
successful.fulfill(true);
159-
}, function(/* error */) {
160-
successful.fulfill(false);
155+
var invalidElement = element(by.id('checkbox'));
156+
var successful = invalidElement.getText().then(function() {
157+
return true;
158+
}, function() {
159+
return false;
161160
});
162161
expect(successful).toEqual(false);
163162
});

0 commit comments

Comments
 (0)