Re: Lebowski tests fails inexplicably

3 views
Skip to first unread message

Michael Cohen

unread,
Mar 8, 2011, 7:23:16 PM3/8/11
to SproutCore, lebow...@googlegroups.com
I'll get back to you on this shortly, but it's best to direct these
kinds of question over on the Lebowski framework Google group:

http://groups.google.com/group/lebowskifw

Cheers,

-Mike

On Mar 8, 7:02 pm, "Jose G. Quenum" <ghisla...@gmail.com> wrote:
> Hi all,
> I have a Login page which I am trying to test with Lebowski. The page is pretty simple. A user name text field, a password text field and a Log in button. I am testing various scenarios, including the cases where ()1 one of the text field is empty, (2) wrong password and user name are typed and the case of the correct credentials. Only when the credentials are correct do I proceed to load the app and show other pages. In case the authentication fails, I show an AlertPane with different messages. So I test if the AlertPane shows up or not. The test file is available at
>
> https://gist.github.com/3760b3859a927a2a8302
>
> Most of the tests run fine. But I have been noticing something strange. After running the test "will enter an empty password and click the log in button and see an error AlertPane", any test where an AlertPane is supposed to show up fails. When I deactivate them all the tests succeed. I have no idea why such a strange behavior is happening. Can someone please help me figure this out?
>
> Besides, how can I check the message displayed by an AlertPane in the Lebowski tests? Couldn't find out from the code on github.
>
> Regards

MikeC

unread,
Mar 14, 2011, 3:02:29 AM3/14/11
to lebowskifw, ghis...@gmail.com
Hey,

Sorry for the delay getting back to you. I got bogged down with moving
and trying to play catch up :-P.

In any case, could you provide me with information about which
assertion is actually failing. Looking at your script, everything
appears to be fine.

-Mike
Reply all
Reply to author
Forward
0 new messages