Clear .todo listener
This commit is contained in:
parent
0591a7820b
commit
f79687ea97
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ class @Todos
|
|||
clearListeners: ->
|
||||
$('.done-todo').off('click')
|
||||
$('.js-todos-mark-all').off('click')
|
||||
$('.todo').off('click')
|
||||
|
||||
initBtnListeners: ->
|
||||
$('.done-todo').on('click', @doneClicked)
|
||||
|
|
|
@ -89,7 +89,7 @@ class Spinach::Features::DashboardTodos < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I click on the todo' do
|
||||
execute_script("$('.todo:nth-child(1)').click()")
|
||||
find('.todo:nth-child(1)').click
|
||||
end
|
||||
|
||||
step 'I should be directed to the corresponding page' do
|
||||
|
|
Loading…
Reference in a new issue