Skip to content

Commit

Permalink
Merge pull request #111 from HHS/develop
Browse files Browse the repository at this point in the history
Add a web driver wait to test case
  • Loading branch information
danizen authored Jan 16, 2018
2 parents 43941c3 + b6ccd58 commit bde57a5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
<groupId>gov.nih.nlm.lode</groupId>
<artifactId>meshrdf</artifactId>
<packaging>pom</packaging>
<version>1.0.1</version>
<version>1.0.2</version>
<name>NLM MeSH RDF parent project</name>
<scm>
<url>https://github.com/HHS/meshrdf</url>
</scm>
<url>https://id.nlm.nih.gov/mesh/</url>

<modules>
<module>webui</module>
Expand All @@ -22,8 +26,4 @@
<snapshot.repo.url>http://localhost:8081/nexus/libs-snapshot-local</snapshot.repo.url>
</properties>

<scm>
<url>https://github.com/HHS/meshrdf</url>
</scm>
<url>https://id.nlm.nih.gov/mesh/</url>
</project>
4 changes: 2 additions & 2 deletions webui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>gov.nih.nlm.lode</groupId>
<artifactId>meshrdf</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</parent>

<properties>
Expand Down Expand Up @@ -246,7 +246,7 @@
<dependency>
<groupId>gov.nih.nlm.occs</groupId>
<artifactId>nlm-test-framework</artifactId>
<version>2.1.1</version>
<version>2.1.2</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
3 changes: 3 additions & 0 deletions webui/src/test/java/gov/nih/nlm/lode/tests/QueryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bde57a5

Please sign in to comment.