enewe101 / digidemo

digital democracy engine
1 stars 0 forks source link

Form testing: Registration #56

Open enewe101 opened 9 years ago

enewe101 commented 9 years ago

Test client side validation on the username:

Test client side validation of passwords

Test server side validation on the username:

Test server side validation of the passwords

Test server side validation of email

dimitrovs commented 9 years ago

How do we prioritize issues in Github? Is there a ranking system?

enewe101 commented 9 years ago

hey, I don't know whether ther is. That would be useful. We could make labels for that?

enewe101 commented 9 years ago

How about the label "critical" which we use for the highest priority stuff. Everything is assumed to be at normal priority unless labeled critical.

enewe101 commented 9 years ago

@verolag I've started a test on the branch register_test. Go ahead and git pull --all, then git checkout register_test, and have a look in ~/src/test.py. You'll see a class called RegistrationFormTest.

I also decided update the wiki entry for writing tests. I think you'll find it helpful to get an idea of how to approach writing tests and how to manipulate the browser using Selenium.

One thing -- Among all the cases to test listed above, there are cases where a notification should disappear if the text in a field is cleared:

For some reason, when Selenium enters non-printable characters (such as a backspace), firefox doesn't register a key event, and that means that the notification doesn't clear (even though it works when a real user does it). So, basically, those conditions can't be tested, but that's no big deal.

Post if you run into any issues!