-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from HHS/develop
Bump version to 1.0.7
- Loading branch information
Showing
12 changed files
with
166 additions
and
1,547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
webui/src/test/java/gov/nih/nlm/lode/tests/ExplorerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
package gov.nih.nlm.lode.tests; | ||
|
||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.By; | ||
import org.testng.annotations.Test; | ||
|
||
public class ExplorerTest extends LodeBaseTest { | ||
|
||
@Test | ||
public void testTopicalDescriptor() { | ||
openExplorerPage("D000420"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Albuterol"); | ||
shouldBeResourceType("MeSH TopicalDescriptor"); | ||
|
||
/* First test - test navigation */ | ||
WebElement navi = navigationShouldBeValid(); | ||
shouldBeValidLinks(navi.findElements(By.tagName("a"))); | ||
noPageErrors(); | ||
} | ||
|
||
@Test | ||
public void testExplorerYearPage() { | ||
openExplorerPage(true); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Ofloxacin"); | ||
shouldBeResourceType("MeSH TopicalDescriptor"); | ||
|
||
/* Test again as this is a URI with a deeper URI */ | ||
WebElement navi = navigationShouldBeValid(); | ||
shouldBeValidLinks(navi.findElements(By.tagName("a"))); | ||
noPageErrors(); | ||
} | ||
|
||
@Test | ||
public void testPublicationType() { | ||
openExplorerPage("D000077825"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Dictionary, Pharmaceutic"); | ||
shouldBeResourceType("MeSH PublicationType"); | ||
} | ||
|
||
@Test | ||
public void testGeographicalDescriptor() { | ||
openExplorerPage("D008922"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Mississippi"); | ||
shouldBeResourceType("MeSH GeographicalDescriptor"); | ||
} | ||
|
||
@Test | ||
public void testCheckTag() { | ||
openExplorerPage("D005260"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Female"); | ||
shouldBeResourceType("MeSH CheckTag"); | ||
} | ||
|
||
@Test | ||
public void testSCRChemical() { | ||
openExplorerPage("C000621506"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("CXXC5 protein, zebrafish"); | ||
shouldBeResourceType("MeSH SCR Chemical"); | ||
} | ||
|
||
@Test | ||
public void testSCRDisease() { | ||
openExplorerPage("C000598941"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Keratoactinomycosis"); | ||
shouldBeResourceType("MeSH SCR Disease"); | ||
} | ||
|
||
@Test | ||
public void testSCROrganism() { | ||
openExplorerPage("C000623735"); | ||
shouldBeExplorerPage(); | ||
shouldBeAbout("Rhinovirus B"); | ||
shouldBeResourceType("MeSH SCR Organism"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters