Skip to content

Commit

Permalink
Jenkins19124Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Aug 24, 2015
1 parent cc7d395 commit 34f2756
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/src/test/groovy/jenkins/bugs/Jenkins19124Test.groovy
@@ -1,5 +1,6 @@
package jenkins.bugs

import com.gargoylesoftware.htmlunit.WebClientUtil
import hudson.Launcher
import hudson.model.AbstractBuild
import hudson.model.AbstractProject
Expand Down Expand Up @@ -40,10 +41,12 @@ class Jenkins19124Test {
def wc = j.createWebClient();
def c = wc.getPage(p, "configure");
c.getElementByName("_.alpha").valueAttribute = "hello";
WebClientUtil.waitForJSExec(wc);
assert d.alpha=="hello";
assert d.bravo=="2";

c.getElementByName("_.bravo").setSelectedAttribute("1",true);
WebClientUtil.waitForJSExec(wc);
assert d.alpha=="hello";
assert d.bravo=="1";
}
Expand Down

0 comments on commit 34f2756

Please sign in to comment.