From 604ff0c8348ef3b1148f453c1c89ca27cf8fa8c9 Mon Sep 17 00:00:00 2001 From: John Smart Date: Tue, 30 Sep 2014 07:45:12 -0700 Subject: [PATCH] Deactivated the show account feature --- .../acceptancetests/pages/MyAccountPage.java | 2 +- .../stepdefs/FrequentFlyerStepDefinitions.java | 16 +++++++--------- .../acceptancetests/steps/MyAccountUISteps.java | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) 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 bbd9510..db9837f 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 @@ -36,7 +36,7 @@ public void waitForFieldsToLoad() { } public void waitForCalulationResult() { - waitFor(".calculated"); + waitFor(".requiredPoints"); waitFor(250).milliseconds(); } } diff --git a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/stepdefs/FrequentFlyerStepDefinitions.java b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/stepdefs/FrequentFlyerStepDefinitions.java index 8ba17b9..e1c74d2 100644 --- a/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/stepdefs/FrequentFlyerStepDefinitions.java +++ b/acceptance-tests/src/test/java/flyinghigh/services/acceptancetests/stepdefs/FrequentFlyerStepDefinitions.java @@ -29,13 +29,11 @@ public void giveSarahSomePoints(FrequentFlyer frequentFlyer, int points) throws restClient.updatePointsFor(frequentFlyer.getNumber(), points); } - @When("Sarah views her account details") - public void viewAccountDetails() { - sarah.openAccountPage(); - } - - @Then("she should see an account balance of $expectedPoints points") - public void shouldSeePointBalanceOf(int expectedPoints) { - sarah.shouldSeeAccountBalanceOf(expectedPoints); - } +// @When("Sarah views her account details") +// public void viewAccountDetails() { +// } +// +// @Then("she should see an account balance of $expectedPoints points") +// public void shouldSeePointBalanceOf(int expectedPoints) { +// } } 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 db48fc7..8fb42b3 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 @@ -27,7 +27,7 @@ public int calculatePointsNeededBetween(String departure, @Step public void shouldSeeAccountBalanceOf(int expectedPoints) { - assertThat(myAccountPage.getPointBalance()).isEqualTo(expectedPoints); +// assertThat(myAccountPage.getPointBalance()).isEqualTo(expectedPoints); }