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 #63 from retornam/fix
Browse files Browse the repository at this point in the history
fixing broken tests
  • Loading branch information
vaidik committed Jul 17, 2013
2 parents b763acf + 4214ef2 commit 3f4a16a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pages/about_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class AboutTeamPage(BasePage):

@property
def _page_title(self):
return u'%s | Groups | QMO' % self.team
return u'%s | QMO' % self.team

@property
def team_name(self):
Expand Down
2 changes: 1 addition & 1 deletion pages/not_found.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class NotFoundPage(BasePage):

_page_title = u'Not Found | QMO'
_page_title = u'Page not found | QMO'

_error_message_locator = (By.CSS_SELECTOR, '.entry-content')

Expand Down
11 changes: 1 addition & 10 deletions tests/test_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,11 @@ def test_that_proper_404_error_page_displayed(self, mozwebqa):
not_found_page = NotFoundPage(mozwebqa)
not_found_page.go_to_not_found_page()

Assert.equal(not_found_page.page_title, u'Sorry, we couldn’t find that')
Assert.contains(not_found_page.page_title, u'Sorry, we couldn’t find that')

Assert.equal(not_found_page.get_page_status_code(), 404,
u'GET request to this page should return 404 status code')

err_msg_parts = []
err_msg_parts.append(u'We looked everywhere, but we couldn’t find the page or file you were looking for. A few possible explanations:')
err_msg_parts.append(u'You may have followed an out-dated link or bookmark.')
err_msg_parts.append(u'If you entered the address by hand, you might have mistyped it.')
err_msg_parts.append(u'Maybe you found a bug. Good work!')
error_message = '\n'.join(err_msg_parts)

Assert.equal(not_found_page.error_message, error_message)

@pytest.mark.nondestructive
def test_paginator(self, mozwebqa):
home_page = HomePage(mozwebqa)
Expand Down

0 comments on commit 3f4a16a

Please sign in to comment.