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 callcount tests.

  • Loading branch information...
T4rk1n committed Dec 3, 2018
commit cee343642044fbe63c2fae406f367cb50771fb51
@@ -1555,8 +1555,8 @@ def update_output(input1, input2):
self.assertEqual(output().text, 'input 1x + <<input 1x>>')

input2().send_keys('y')
wait_for(lambda: call_counts['output'].value == 3)
wait_for(lambda: call_counts['input-2'].value == 2)
wait_for(lambda: call_counts['output'].value == 2)
wait_for(lambda: call_counts['input-2'].value == 3)
self.assertEqual(input1().get_attribute('value'), 'input 1x')
self.assertEqual(input2().get_attribute('value'), '<<input 1x>>y')
self.assertEqual(output().text, 'input 1x + <<input 1x>>y')
@@ -1584,7 +1584,7 @@ def update_output(input, state):
state = lambda: self.driver.find_element_by_id('state')

# callback gets called with initial input
self.assertEqual(call_count.value, 1)
wait_for(lambda: call_count.value == 1)
self.assertEqual(
output().text,
'input="Initial Input", state="Initial State"'
@@ -1604,7 +1604,7 @@ def update_output(input, state):
'input="Initial Inputx", state="Initial State"')

input().send_keys('y')
wait_for(lambda: call_count.value == 3)
wait_for(lambda: call_count.value == 4)
self.assertEqual(
output().text,
'input="Initial Inputxy", state="Initial Statex"')
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.