Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more Input tests, remove duplicate value callbacks. #384

Merged
merged 16 commits into from Dec 4, 2018

Fix wait_for_text_to_equal

  • Loading branch information...
T4rk1n committed Nov 14, 2018
commit 00e1bb682b1c0d8c425f0418c8d60eb6cf108add
@@ -54,10 +54,14 @@ def wait_for_element_by_css_selector(self, selector):
)

def wait_for_text_to_equal(self, selector, assertion_text):
return WebDriverWait(self.driver, TIMEOUT).until(
WebDriverWait(self.driver, TIMEOUT).until(
EC.text_to_be_present_in_element((By.CSS_SELECTOR, selector),
assertion_text)
)
self.assertEqual(
assertion_text,
self.driver.find_element_by_css_selector(selector).text
)

def snapshot(self, name):
if 'PERCY_PROJECT' in os.environ and 'PERCY_TOKEN' in os.environ:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.