From 112e4f7d0bc0611ceca031126f03fe0017a3df22 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Mon, 13 Jun 2011 21:32:08 -0700 Subject: [PATCH] form should have a name for programmatic clients --- core/src/main/resources/lib/hudson/newFromList/form.jelly | 2 +- test/src/test/java/hudson/model/ViewTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/resources/lib/hudson/newFromList/form.jelly b/core/src/main/resources/lib/hudson/newFromList/form.jelly index bc9b9c4421..46a9db772a 100644 --- a/core/src/main/resources/lib/hudson/newFromList/form.jelly +++ b/core/src/main/resources/lib/hudson/newFromList/form.jelly @@ -54,7 +54,7 @@ THE SOFTWARE. - + diff --git a/test/src/test/java/hudson/model/ViewTest.java b/test/src/test/java/hudson/model/ViewTest.java index b21fe5a5e9..64ba742518 100644 --- a/test/src/test/java/hudson/model/ViewTest.java +++ b/test/src/test/java/hudson/model/ViewTest.java @@ -52,7 +52,7 @@ public class ViewTest extends HudsonTestCase { public void testConflictingName() throws Exception { assertNull(hudson.getView("foo")); - HtmlForm form = new WebClient().goTo("newView").getFormByName("createView"); + HtmlForm form = new WebClient().goTo("newView").getFormByName("createItem"); form.getInputByName("name").setValueAttribute("foo"); form.getRadioButtonsByName("mode").get(0).setChecked(true); submit(form); @@ -85,7 +85,7 @@ public class ViewTest extends HudsonTestCase { hudson.addView(listView); HtmlPage newViewPage = wc.goTo("/user/me/my-views/newView"); - HtmlForm form = newViewPage.getFormByName("createView"); + HtmlForm form = newViewPage.getFormByName("createItem"); form.getInputByName("name").setValueAttribute("proxy-view"); ((HtmlRadioButtonInput) form.getInputByValue("hudson.model.ProxyView")).setChecked(true); HtmlPage proxyViewConfigurePage = submit(form);