lol Fixed: It seems that when you supply the WidgetSchema NameFormat, the values sent via post should be something like $browser->post('/en/register', > > array(
> '*WidgetSchema NameFormat*' => array('username'=>' ','commit'=>'submit') > ) > ) > ->with('response')->begin()->isStatusCode(200)->checkElement('body',"/The > UserName must be at least 8 letters long and it must contain letters > (Uppercase, Lowercase) and numbers, _ and -/")->end(); Maybe it helps others Alecs On Sat, Sep 19, 2009 at 12:36 PM, Alexandru-Emil Lupu <gang.al...@gmail.com>wrote: > HI there ! > i have following error and i do not ow why i get this behavior. > > I have made 2 sfBrowserTests in order to test some register scenarios, but > it seems that i am unable to make it work. > > > my first test, is checking what happens if the user do not fill in in any > values. > > My second test, is trying to check what happens when the user fill in 2 > space characters in the username field, but it seems that the username field > is not interpreted. I mean i submit the form having the below, but it says > that the text match is failing, because the text is not found on page. > However same test on the FF browser, return the needed text. > > This is my buggy test: > > $browser->post('/en/register',array('username'=>' > ','commit'=>'submit'))->with('response')->begin()->isStatusCode(200)->checkElement('body',"/The > UserName must be at least 8 letters long and it must contain letters > (Uppercase, Lowercase) and numbers, _ and -/")->end(); > > > in the generated HTML, the field has the name ep_register['username'] and > the id ep_register_username. I have tried to call using both the name and id > but i am not able to make it work. Any ideeas what is happening and from > where i get this behaviour? > > Thanks in advance! > Have a nice weekend. > Alecs > > -- > As programmers create bigger & better idiot proof programs, so the universe > creates bigger & better idiots! > I am on web: http://www.alecslupu.ro/ > I am on twitter: http://twitter.com/alecslupu > I am on linkedIn: http://www.linkedin.com/in/alecslupu > Tel: (+4)0748.543.798 > > -- As programmers create bigger & better idiot proof programs, so the universe creates bigger & better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---