End of day commit

This commit is contained in:
2015-08-10 19:39:06 +02:00
parent 3aef45a94e
commit e1b5ffcd06
30 changed files with 108 additions and 97 deletions
+10
View File
@@ -65,6 +65,16 @@ module SpecEmberHelpers
def js_click(selector)
find selector
page.execute_script "$('#{selector}').click()"
# Wait for jQuery activity to finish
wait_cycles = 0
active_count = page.evaluate_script '$.active'
while active_count > 0 and wait_cycles < 30
sleep 0.1
active_count = page.evaluate_script '$.active'
wait_cycles += 1
end
raise "There are still active jQuery tasks" if active_count > 0
end
def js_text(selector)