caringbridge/vagrant-chef-sanity-tests — pull request #3 by jglin (2014-12-05 20:38:10+00:00)
Title: Added new regression tests

Test fixture type changes:
1) Add ability to have a list of test urls, and script goes through list and selects first one it can successfully ping
2) For test that adds a photo to journal, check the photo exists in test directory
3) Added simple counter to track number of tests and pass/fail

New Test Flow
1) Does test url resolve?
2) User creates account
3) Check for welcome email
4) User starts a site
5) User creates first journal entry from welcome page
6) User sets notification preferences to immediate
7) User sends an invite
8) Verify invitee received email
9) Invitee subscribes to journal notifications
10) Invitee creates login
11) User searches for their site
12) User logs into their account
13) User adds journal entry with photo
14) Verify invitee received email for journal entry
15) User deletes photo from journal entry

Possible Issues
1) On line 179, search is just verifying that anything is returned. So if something broke, the test would still pass because search returns user from previous test runs. Maybe have the timestamp be part of the user name so we can search on something unique?
2) When the invitee creates a login and clicks submit (I think around line 170), a firefox window pops up about a security warning, going from a secure page to a non-secure one. I think it has to do with going from https to http. From searching on the web, I don't think its possible for Watir to deal with it since its from the browser and not html. Turns out that submitting the form accomplishes signing up the invitee for notifications, and I kill the browser right after that anyway since the next steps are done by the user. So its working, but thought I'd mention it.
3) I'm doing all my development against staging.caringbridge.org. Lines 81, 93, and 117 have been in the script from the begining and have never worked for me, so I comment them out when developing. I think they work for you in your test setup. Can you verify this?
4) Didn't get around to the pdf test

I think thats it. As always, let me know if you think of better ways to do things.

Have a great weekend,
Joe