From 1ca156c1a2ca25cf4bd54534b09897444bc8ddf0 Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Wed, 30 Dec 2015 03:17:04 +0100 Subject: [PATCH] Adapts automation scripts to new example app. --- scripts/automation-tests/02_searchWikipedia.js | 2 +- scripts/automation-tests/03_masterDetail.js | 2 +- scripts/automation-tests/05_reactivePartialUpdates.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/automation-tests/02_searchWikipedia.js b/scripts/automation-tests/02_searchWikipedia.js index 30090595..6c27fa58 100644 --- a/scripts/automation-tests/02_searchWikipedia.js +++ b/scripts/automation-tests/02_searchWikipedia.js @@ -6,7 +6,7 @@ test("----- searchWikipedia -----", function (check, pass) { var width = target.frontMostApp().mainWindow().rect().size.width - target.frontMostApp().mainWindow().tableViews()[0].cells()[8].tap(); + target.frontMostApp().mainWindow().tableViews()[0].cells()[9].tap(); target.delay(2); diff --git a/scripts/automation-tests/03_masterDetail.js b/scripts/automation-tests/03_masterDetail.js index a5a5a7f6..930d9e51 100644 --- a/scripts/automation-tests/03_masterDetail.js +++ b/scripts/automation-tests/03_masterDetail.js @@ -8,7 +8,7 @@ test("----- masterDetail -----", function (check, pass) { var target = UIATarget.localTarget() - target.frontMostApp().mainWindow().tableViews()[0].cells()[7].tap(); + target.frontMostApp().mainWindow().tableViews()[0].cells()[8].tap(); target.frontMostApp().navigationBar().rightButton().tap(); target.frontMostApp().mainWindow().dragInsideWithOptions({startOffset:{x:0.93, y:yOffset(300)}, endOffset:{x:0.95, y:yOffset(200)}, duration:1.5}); target.frontMostApp().mainWindow().dragInsideWithOptions({startOffset:{x:0.93, y:yOffset(300)}, endOffset:{x:0.95, y:yOffset(100)}, duration:1.5}); diff --git a/scripts/automation-tests/05_reactivePartialUpdates.js b/scripts/automation-tests/05_reactivePartialUpdates.js index 1784d07d..2d8e0b45 100644 --- a/scripts/automation-tests/05_reactivePartialUpdates.js +++ b/scripts/automation-tests/05_reactivePartialUpdates.js @@ -3,7 +3,7 @@ test("----- reactivePartialUpdates -----", function (check, pass) { var target = UIATarget.localTarget() - target.frontMostApp().mainWindow().tableViews()[0].cells()[10].tap(); + target.frontMostApp().mainWindow().tableViews()[0].cells()[11].tap(); target.frontMostApp().navigationBar().rightButton().tap(); target.frontMostApp().navigationBar().rightButton().tap(); target.frontMostApp().navigationBar().rightButton().tap();