Skip to content

Commit

Permalink
🔀 : Merge pull request #222 from gaia-app/dependabot/maven/org.webjar…
Browse files Browse the repository at this point in the history
…s.npm-marked-0.8.0

⬆️ Bump marked from 0.7.0 to 0.8.0
  • Loading branch information
juwit committed Feb 10, 2020
2 parents d67c0c5 + d9b52c5 commit 9d5e51d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
<dependency>
<groupId>org.webjars.npm</groupId>
<artifactId>marked</artifactId>
<version>0.7.0</version>
<version>0.8.0</version>
</dependency>

<dependency>
Expand Down
5 changes: 5 additions & 0 deletions src/test/java/io/codeka/gaia/e2e/JobPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ class JobPage(webDriver: WebDriver) {
}
}

@FindBy(className="job-detail-title")
private lateinit var jobDetailTitle: WebElement

fun jobDetailTitle() : String = jobDetailTitle.text

}
12 changes: 7 additions & 5 deletions src/test/java/io/codeka/gaia/e2e/SeleniumIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void loginPage() {
}

@Test
void dashboardPage_showsModuleCount() throws IOException {
void dashboardPage_showsModuleCount() {
driver.get(testUrl()+"/");

var page = PageFactory.initElements(driver, DashboardPage.class);
Expand All @@ -104,7 +104,7 @@ void dashboardPage_showsModuleCount() throws IOException {
}

@Test
void modulesPage_showsModules() throws IOException {
void modulesPage_showsModules() {
driver.get(testUrl()+"/modules");

var page = PageFactory.initElements(driver, ModulesPage.class);
Expand All @@ -114,7 +114,7 @@ void modulesPage_showsModules() throws IOException {
}

@Test
void modulePage_showsModuleDetails() throws IOException {
void modulePage_showsModuleDetails() {
driver.get(testUrl()+"/modules/e01f9925-a559-45a2-8a55-f93dc434c676");

var page = new ModulePage(driver);
Expand All @@ -128,7 +128,7 @@ void modulePage_showsModuleDetails() throws IOException {
}

@Test
void stackPage_showsStackDetails() throws IOException {
void stackPage_showsStackDetails() {
driver.get(testUrl()+"/stacks/de28a01f-257a-448d-8e1b-00e4e3a41db2");

var page = new StackPage(driver);
Expand All @@ -140,12 +140,14 @@ void stackPage_showsStackDetails() throws IOException {
}

@Test
void jobPage_showsJobDetails() throws IOException {
void jobPage_showsJobDetails() {
driver.get(testUrl()+"/stacks/de28a01f-257a-448d-8e1b-00e4e3a41db2/jobs/5e856dc7-6bed-465f-abf1-02980206ab2a");

var page = new JobPage(driver);
PageFactory.initElements(new AjaxElementLocatorFactory(driver, 10), page);

assertThat(page.jobDetailTitle()).isEqualTo("Job 5e856dc7-6bed-465f-abf1-02980206ab2a");

percy.snapshot("Job Details");
}

Expand Down

0 comments on commit 9d5e51d

Please sign in to comment.