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

Commit

Permalink
set_article_comment_box and edit_article should return a KnowledgeBas…
Browse files Browse the repository at this point in the history
…eShowHistory page

because the xfail should actually xpass - assert done inside
is_the_current_page
  • Loading branch information
klrmn committed Mar 21, 2012
1 parent 234aadd commit 49a4d35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion pages/desktop/knowledge_base_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def edit_article(self, article_info_dict):
self.set_article_summary(article_info_dict['summary'])
self.set_article_content(article_info_dict['content'])
self.submit_article()
self.set_article_comment_box()
return self.set_article_comment_box()

def set_article_keyword(self, keyword):
element = self.selenium.find_element(*self._article_keywords_box_locator)
Expand All @@ -146,6 +146,9 @@ def set_article_content(self, content):
def set_article_comment_box(self, comment='automated test'):
self.selenium.find_element(*self._comment_box_locator).send_keys(comment)
self.selenium.find_element(*self._comment_submit_btn_locator).click()
kb_article_history = KnowledgeBaseShowHistory(self.testsetup)
kb_article_history.is_the_current_page
return kb_article_history

def submit_article(self):
self.selenium.find_element(*self._article_submit_btn_locator).click()
Expand Down
3 changes: 0 additions & 3 deletions tests/desktop/test_kb_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def test_that_article_can_be_edited(self, mozwebqa):
kb_new_article.submit_article()
kb_article_history = kb_new_article.set_article_comment_box()

# verify article history
Assert.true(kb_article_history.is_the_current_page)

# edit that same article
timestamp = datetime.datetime.now()
edited_article_summary = "this is an automated summary__%s_edited" % timestamp
Expand Down

0 comments on commit 49a4d35

Please sign in to comment.