Skip to content

Commit

Permalink
Fine-tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Sep 29, 2014
1 parent 947d581 commit 3802891
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion acceptance-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@DefaultUrl("http://localhost:9001/#/home")
public class HomePage extends PageObject {
public List<Airport> getDisplayedAirports() {
waitFor(".airport");
return findAll(".airport")
waitFor(".serviced-airport");
return findAll(".serviced-airport")
.stream()
.map(DisplayedAirport::fromWebElement)
.collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MyAccountUISteps {
@Step
public void openAccountPage() {
myAccountPage.open();
myAccountPage.waitForDestionionList();
myAccountPage.waitForFieldsToLoad();
}

@Step
Expand Down

0 comments on commit 3802891

Please sign in to comment.