Yes, indeed, it looks similar, except that I receive the same error messages
as before if the requirement of dropdown is set to true in MockPageWithForm:
dropDown.setRequired(true);

and add assertNoErrorMessage to FormDispatchEventTest#dropDownEvent():
...
FormTester formTester = tester.newFormTester("form");
formTester.select("dropdown", 0);
formTester.submit();

// new entry which checks for any error message
tester.assertNoErrorMessage();
                
MockPageWithForm page = (MockPageWithForm)tester.getLastRenderedPage();
...

I'm a bit puzzled why that is and would appreciate any help you can give.

Thanks,
Ralf



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Testing-DropDownChoice-with-Ajax-tp4655418p4655437.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to