From b6ccd58f4d64071f9188a65928afb95cab04fa8a Mon Sep 17 00:00:00 2001 From: Dan Davis Date: Tue, 16 Jan 2018 17:46:29 -0500 Subject: [PATCH] Add a web driver wait to test case - Wait for the number of results to be 50 - Get version numbers for the release to match --- pom.xml | 10 +++++----- webui/pom.xml | 4 ++-- .../test/java/gov/nih/nlm/lode/tests/QueryTest.java | 3 +++ 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index c7fcd7d1..fd3fb524 100644 --- a/pom.xml +++ b/pom.xml @@ -4,8 +4,12 @@ gov.nih.nlm.lode meshrdf pom - 1.0.1 + 1.0.2 NLM MeSH RDF parent project + + https://github.com/HHS/meshrdf + + https://id.nlm.nih.gov/mesh/ webui @@ -22,8 +26,4 @@ http://localhost:8081/nexus/libs-snapshot-local - - https://github.com/HHS/meshrdf - - https://id.nlm.nih.gov/mesh/ diff --git a/webui/pom.xml b/webui/pom.xml index cf301738..fd8c6b23 100644 --- a/webui/pom.xml +++ b/webui/pom.xml @@ -12,7 +12,7 @@ gov.nih.nlm.lode meshrdf - 1.0.1 + 1.0.2 @@ -246,7 +246,7 @@ gov.nih.nlm.occs nlm-test-framework - 2.1.1 + 2.1.2 test diff --git a/webui/src/test/java/gov/nih/nlm/lode/tests/QueryTest.java b/webui/src/test/java/gov/nih/nlm/lode/tests/QueryTest.java index d0f8744b..3d4ed94c 100644 --- a/webui/src/test/java/gov/nih/nlm/lode/tests/QueryTest.java +++ b/webui/src/test/java/gov/nih/nlm/lode/tests/QueryTest.java @@ -258,6 +258,9 @@ public void testPagination() { clickSubmitQuery(); + // make sure we have enough results + wait.until(ExpectedConditions.numberOfElementsToBe(By.xpath(FOR_LODESTAR_RESULT_ROWS), 50)); + // Make sure next link also returns 50 results WebElement nextLink = findElement(By.xpath("//div[@id='pagination']/a[@class='pag next']")); nextLink.click();