Skip to content

Commit 067e4b0

Browse files
committed
a bit more test detailed test
1 parent 0be4946 commit 067e4b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/gargoylesoftware/htmlunit/html/HtmlButton2Test.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ public void typeSubmit() throws Exception {
394394
= "<html><head><title>first</title></head><body>\n"
395395
+ " <p>hello world</p>\n"
396396
+ " <form id='myForm' action='" + URL_SECOND + "'>\n"
397+
+ " <input name='text' type='text'>\n"
397398
+ " <button type='submit' id='myButton'>Explicit Submit</button>\n"
398399
+ " </form>\n"
399400
+ "</body></html>";
@@ -408,7 +409,7 @@ public void typeSubmit() throws Exception {
408409
driver.findElement(By.id("myButton")).click();
409410

410411
assertEquals(2, getMockWebConnection().getRequestCount());
411-
assertEquals(URL_SECOND.toString(), getMockWebConnection().getLastWebRequest().getUrl());
412+
assertEquals(URL_SECOND.toString() + "?text=", getMockWebConnection().getLastWebRequest().getUrl());
412413
}
413414

414415
/**

0 commit comments

Comments
 (0)