add test to prove we get an array even when there's just one id

This commit is contained in:
Jonathan Lipps
2014-05-12 14:43:14 +01:00
parent 802ab048b6
commit c166e6813e

View File

@@ -89,6 +89,14 @@ describe("apidemo - find elements -", function () {
.should.eventually.have.length.at.least(10)
.nodeify(done);
});
it('should find multiple elements by resource-id even when theres just one', function (done) {
driver
.elementsById('android:id/home')
.then(function (els) {
els.length.should.equal(1);
})
.nodeify(done);
});
});
describe('find element(s) from element', function () {