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 #137 from bebef1987/xfail
Browse files Browse the repository at this point in the history
xfail test Bug 790626
  • Loading branch information
teodosia committed Sep 12, 2012
2 parents be7c348 + ef65261 commit 21854b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pages/desktop/knowledge_base_article.py
Expand Up @@ -183,6 +183,10 @@ class KnowledgeBaseTranslate(KnowledgeBase):
def click_translate_language(self, language):
self.selenium.find_element(By.LINK_TEXT, language).click()

@property
def is_type_title_visible(self):
return self.is_element_visible(*self._description_title_locator)

def type_title(self, text):
self.selenium.find_element(*self._description_title_locator).send_keys(text)

Expand Down
3 changes: 2 additions & 1 deletion tests/desktop/test_kb_article.py
Expand Up @@ -124,7 +124,8 @@ def test_that_article_can_be_translated(self, mozwebqa):
kb_translate_pg = kb_article_history.navigation.click_translate_article()
kb_translate_pg.click_translate_language('Esperanto (eo)')


if not kb_translate_pg.is_type_title_visible:
pytest.xfail(reason='Bug 790626 - [STAGE] translating a question sometimes returns 500 page')

timestamp = datetime.datetime.now()
kb_translate_pg.type_title('artikolo_titolo%s' % timestamp)
Expand Down

0 comments on commit 21854b9

Please sign in to comment.