From 380289194b9fa6b71c1c60640aefbda4cec7f155 Mon Sep 17 00:00:00 2001 From: John Smart Date: Mon, 29 Sep 2014 13:18:26 -0700 Subject: [PATCH] Fine-tuning --- acceptance-tests/build.gradle | 2 +- .../services/acceptancetests/pages/HomePage.java | 4 ++-- .../services/acceptancetests/pages/MyAccountPage.java | 7 ++++--- .../services/acceptancetests/steps/MyAccountUISteps.java | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/acceptance-tests/build.gradle b/acceptance-tests/build.gradle index 3b9f7ab..20acf95 100644 --- a/acceptance-tests/build.gradle +++ b/acceptance-tests/build.gradle @@ -54,7 +54,7 @@ test { systemProperty 'webdriver.base.url', baseUrl systemProperty 'webdriver.driver', driver systemProperty 'thucydides.browser.width', 1000 -// systemProperty 'thucydides.resized.image.width', 1000 + systemProperty 'thucydides.resized.image.width', 1000 systemProperty 'dashboard.tag.list', 'capability, layer' useJUnit() } diff --git a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/HomePage.java b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/HomePage.java index ec24534..8983f79 100644 --- a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/HomePage.java +++ b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/HomePage.java @@ -10,8 +10,8 @@ @DefaultUrl("http://localhost:9001/#/home") public class HomePage extends PageObject { public List getDisplayedAirports() { - waitFor(".airport"); - return findAll(".airport") + waitFor(".serviced-airport"); + return findAll(".serviced-airport") .stream() .map(DisplayedAirport::fromWebElement) .collect(Collectors.toList()); diff --git a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/MyAccountPage.java b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/MyAccountPage.java index b00db90..fb8e2b0 100644 --- a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/MyAccountPage.java +++ b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/pages/MyAccountPage.java @@ -27,9 +27,10 @@ public int getPointBalance() { return Integer.valueOf($(".status-points-balance").getText()); } - public void waitForDestionionList() { + public void waitForFieldsToLoad() { waitFor(".possible-destination"); - waitFor("#departure option"); - waitFor("#destination option"); + waitFor("#departure option:nth-child(2)"); + waitFor("#destination option:nth-child(2)"); + waitFor(250).milliseconds(); } } diff --git a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/steps/MyAccountUISteps.java b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/steps/MyAccountUISteps.java index c45d618..7fa3560 100644 --- a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/steps/MyAccountUISteps.java +++ b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/steps/MyAccountUISteps.java @@ -12,7 +12,7 @@ public class MyAccountUISteps { @Step public void openAccountPage() { myAccountPage.open(); - myAccountPage.waitForDestionionList(); + myAccountPage.waitForFieldsToLoad(); } @Step