Hello!
According log in DEBUG mode:
DEBUG (com.gargoylesoftware.htmlunit.WebClient) - Get page for window
named '', using
WebRequestSettings[<url="http://localhost:3000/admin/user/create",
SubmitMethod[name=post],
EncodingType[name=application/x-www-form-urlencoded],
[KeyValuePair("user[name]", "Test Finance User"),
KeyValuePair("user[department_id]", "2"),
KeyValuePair("user[role_ids][]", "2"), KeyValuePair("user[disabled]",
"0"), KeyValuePair("user[login]", "_test_finance_userrr"),
KeyValuePair("user[password]", "changeme"),
KeyValuePair("user[password_confirmation]", "changeme"),
KeyValuePair("commit", "Create")],
{Referer=http://localhost:3000/admin/user/new}, null>]
especially KeyValuePair("user[role_ids][]", "2") - request contains
checkbox needed.
So, I have no idea why this checkbox is missing if test was performed by
WebTest. It so strange-if I set it manually all seems ok and POST
request contains the same data.
Andrew Sickorsky wrote:
Hello!
after logging into the system and checking corresponded record I see
that checkbox is unchecked.
not really: you see that your app reacted as if checkbox wasn't checked.
Please check what for a request is sent to the server and if checkbox
value is really missing there.
Marc.
begin:vcard
fn:Andrew Sickorsky
n:Sickorsky;Andrew
org:texunatech
adr;dom:;;Magistralnaya street, 5 - 33;Moscow
email;internet:[EMAIL PROTECTED]
title:Tester
tel;work:+7 495 9809067
tel;cell:+7 909 9070328
x-mozilla-html:TRUE
url:www.texunatech.com
version:2.1
end:vcard