diff --git a/core/src/main/resources/hudson/model/Hudson/manage.jelly b/core/src/main/resources/hudson/model/Hudson/manage.jelly index cc4cb3101fd88f98e965af78e469fe3756056653..bc59b85f237853358c297430eb9d06995afa28d6 100644 --- a/core/src/main/resources/hudson/model/Hudson/manage.jelly +++ b/core/src/main/resources/hudson/model/Hudson/manage.jelly @@ -8,7 +8,7 @@ -
${title}
+
diff --git a/test/src/test/java/hudson/model/ManagementLinkTest.java b/test/src/test/java/hudson/model/ManagementLinkTest.java new file mode 100644 index 0000000000000000000000000000000000000000..3e2f8c5b5189390aa24999922de06c90219320e7 --- /dev/null +++ b/test/src/test/java/hudson/model/ManagementLinkTest.java @@ -0,0 +1,26 @@ +package hudson.model; + +import com.gargoylesoftware.htmlunit.html.HtmlAnchor; +import com.gargoylesoftware.htmlunit.html.HtmlPage; +import org.jvnet.hudson.test.HudsonTestCase; + +import java.util.List; + +/** + * @author Kohsuke Kawaguchi + */ +public class ManagementLinkTest extends HudsonTestCase { + /** + * Makes sure every link works. + */ + public void testLinks() throws Exception { + HtmlPage page = new WebClient().goTo("manage"); + List anchors = page.selectNodes("id('management-links')//*[@class='link']/a"); + assertTrue(anchors.size()>=8); + for(HtmlAnchor e : (List) anchors) { + if(e.getHrefAttribute().endsWith("reload")) + continue; // can't really click this + e.click(); + } + } +}