Skip to content

Commit

Permalink
readded some tests, since they pass now
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Mar 24, 2014
1 parent 273a008 commit 1eba0fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/functional/android/apidemos/find-element-specs.js
Expand Up @@ -75,13 +75,13 @@ describe("apidemo - find elements -", function () {
.elementById("buttons_1_normal").text().should.become("Normal")
.nodeify(done);
});
// TODO: find by resource id doesn't seem to work
it('should find a single element by resource-id @skip-android-all', function (done) {

it('should find a single element by resource-id', function (done) {
driver
.elementById('android:id/home').should.eventually.exist
.nodeify(done);
});
it('should find multiple elements by resource-id @skip-android-all', function (done) {
it('should find multiple elements by resource-id', function (done) {
driver
.elementsById('android:id/text1')
.should.eventually.have.length.at.least(10)
Expand Down Expand Up @@ -156,13 +156,13 @@ describe("apidemo - find elements -", function () {
});
});

describe('find elements using accessibility_id locator strategy @now', function () {
describe('find elements using accessibility_id locator strategy', function () {
it('should find an element by name', function (done) {
driver.element('accessibility_id', 'Animation').then(function (el) {
el.should.exist;
}).nodeify(done);
});
it('should return an array of one element if the plural "elements" is used @now', function (done) {
it('should return an array of one element if the plural "elements" is used', function (done) {
driver.elements('accessibility_id', 'Animation').then(function (els) {
els.length.should.equal(1);
}).nodeify(done);
Expand Down

0 comments on commit 1eba0fc

Please sign in to comment.