-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,6 +364,17 @@ describe('ElementArrayFinder', function() { | |
expect(element.all(by.binding('doesnotexist')).count()).toEqual(0); | ||
}); | ||
|
||
it('should return not present when an element disappears within an array', | ||
function() { | ||
browser.get('index.html#/form'); | ||
element.all(by.model('color')).then(function(elements) { | ||
var disappearingElem = elements[0]; | ||
expect(disappearingElem.isPresent()).toBeTruthy(); | ||
browser.get('index.html#/bindings'); | ||
expect(disappearingElem.isPresent()).toBeFalsy(); | ||
}); | ||
}); | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
hankduan
Author
Contributor
|
||
it('should get an element from an array', function() { | ||
var colorList = element.all(by.model('color')); | ||
|
||
|
Why are you calling
.then
on an ElementArrayFinder without invoking some method on it first? This is typically how ElementFinders are used. What's the difference here?