Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #103 from m8ttyB/profile_edit
Browse files Browse the repository at this point in the history
use proper url + update error messages
  • Loading branch information
stephendonner committed Sep 17, 2014
2 parents c5f0b81 + 4fb3af8 commit 34cc0ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_profile.py
Expand Up @@ -68,7 +68,7 @@ def test_edit_profile_change_display_name(self, mozwebqa):
@credentials
@destructive
def test_edit_profile_website(self, mozwebqa):
new_url = 'wiki.mozilla.org/' + str(datetime.now())
new_url = 'http://wiki.mozilla.org/' + datetime.utcnow().strftime("%s")

start_page = StartPage(mozwebqa)
home_page = start_page.login()
Expand All @@ -79,7 +79,7 @@ def test_edit_profile_website(self, mozwebqa):
actual_website = profile_page.profile_website

Assert.equal(actual_website, new_url,
"Failed: update to website on profile edit page. \
"update to website on profile edit page. \
Expected '%s' but returned '%s'" %
(new_url, actual_website))

Expand All @@ -91,7 +91,7 @@ def test_edit_profile_website(self, mozwebqa):
actual_website = profile_page.profile_website

Assert.equal(actual_website, new_url,
"Failed:update to website did not persist after logout. \
"update to website did not persist after logout. \
Expected '%s', but returned '%s'" %
(new_url, actual_website))

Expand All @@ -100,7 +100,7 @@ def test_edit_profile_website(self, mozwebqa):
actual_website = profile_page.profile_website

Assert.equal(actual_website, "",
"Failed: user can set webset url to an empty string. \
"user can't set website URL to an empty string. \
Expected '', returned '%s'" %
actual_website)

Expand Down

0 comments on commit 34cc0ea

Please sign in to comment.