From d3881987ff4d86be007f2e831752b2669c3665e6 Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Mon, 17 Mar 2014 15:49:12 -0700 Subject: [PATCH] fix tests which rely on the desired caps which no longer exist --- test/functional/android/apidemos/find-element-specs.js | 4 ++-- test/functional/android/apidemos/gestures-specs.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/android/apidemos/find-element-specs.js b/test/functional/android/apidemos/find-element-specs.js index 980bc8e10..cb8badcad 100644 --- a/test/functional/android/apidemos/find-element-specs.js +++ b/test/functional/android/apidemos/find-element-specs.js @@ -12,10 +12,10 @@ describe("apidemo - find elements -", function () { if (env.FAST_TESTS) { beforeEach(function (done) { - androidReset(desired['app-package'], desired['app-activity']).nodeify(done); + androidReset('com.example.android.apis', '.ApiDemos').nodeify(done); }); } - + describe('mobile find', function () { it('should scroll to an element by text or content desc', function (done) { driver diff --git a/test/functional/android/apidemos/gestures-specs.js b/test/functional/android/apidemos/gestures-specs.js index 1c2741c94..4c05b4012 100644 --- a/test/functional/android/apidemos/gestures-specs.js +++ b/test/functional/android/apidemos/gestures-specs.js @@ -12,7 +12,7 @@ describe("apidemo - gestures -", function () { if (env.FAST_TESTS) { beforeEach(function (done) { - androidReset(desired['app-package'], desired['app-activity']) + androidReset('com.example.android.apis', '.ApiDemos') .then(function () { return driver.sleep(3000); }) .nodeify(done); }); @@ -26,7 +26,7 @@ describe("apidemo - gestures -", function () { .text().should.become("Action Bar") .nodeify(done); }); - //todo: not working in nexus 7 + //todo: not working in nexus 7 it('should click via x/y pct', function (done) { // this test depends on having a certain size screen, obviously // I use a nexus something or other phone style thingo