Skip to content

Commit 7e2a8bc

Browse files
committed
Add test, link from frontpage to about page
1 parent fccfb53 commit 7e2a8bc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/main/resources/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1>Common Workflow Language Viewer</h1>
4242
Research Object Bundle</a>
4343
(zip file with metadata in a manifest), allowing it to be easily viewed and shared.</p>
4444
<div class="alert alert-info">
45-
<p>Want to generate visualisations in build scripts or from another automated process? Find out about <a href="/apidocs" alt="API Documentation">our API</a></p>
45+
<p>Want to make your workflows look their best in CWL Viewer? Find out about <a href="/about">CWL recommended practices</a></p>
4646
</div>
4747

4848
<h2>Workflow from Github URL</h2>

src/test/java/org/commonwl/view/PageControllerTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ public void homePageWithURL() throws Exception {
7070
hasProperty("githubURL", is("https://github.com/test/default/link"))));
7171
}
7272

73+
/**
74+
* About page
75+
*/
76+
@Test
77+
public void aboutPage() throws Exception {
78+
mockMvc.perform(get("/about"))
79+
.andExpect(status().isOk())
80+
.andExpect(view().name("about"));
81+
}
82+
7383
/**
7484
* API documentation page
7585
*/

0 commit comments

Comments
 (0)