Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a timing problem which occurend sometimes

  • Loading branch information...
commit c0ff51aba2c485bd8c8ae0988e14d372b3be0200 1 parent d67a004
@jrief authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 cms/tests/frontend.py
View
4 cms/tests/frontend.py
@@ -242,7 +242,9 @@ def test_copy_from_language(self):
hov = ActionChains(self.driver).move_to_element(submenu)
hov.perform()
- copy_from_english = self.driver.find_element_by_css_selector('.cms_submenu-item a[data-rel="copy-lang"][data-language="en"]')
+ submenu_link_selector = '.cms_submenu-item a[data-rel="copy-lang"][data-language="en"]'
+ WebDriverWait(self.driver, 10).until(EC.visibility_of_element_located((By.CSS_SELECTOR, submenu_link_selector)))
+ copy_from_english = self.driver.find_element_by_css_selector(submenu_link_selector)
copy_from_english.click()
# Done, check if the text plugin was copied and it is only one
Please sign in to comment.
Something went wrong with that request. Please try again.