summaryrefslogtreecommitdiff
path: root/spec/features/dashboard/todos/todos_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-08-02 22:13:46 -0700
committerStan Hu <stanhu@gmail.com>2017-08-02 22:13:46 -0700
commitfa68b81b8ead3c68a278729bfbcb621a9c6197e3 (patch)
tree233a12e59e4bc4a80ef9626bad0a46f8776895c5 /spec/features/dashboard/todos/todos_spec.rb
parente8aabb07edfb215a9823d236c69d5eaa1348a0fa (diff)
downloadgitlab-ce-fa68b81b8ead3c68a278729bfbcb621a9c6197e3.tar.gz
Change trigger('click') -> click for Chrome
Done via: ``` git grep --name-only trigger\(\'click\'\) | xargs sed -i -e "s/trigger('click')/click/g" ```
Diffstat (limited to 'spec/features/dashboard/todos/todos_spec.rb')
-rw-r--r--spec/features/dashboard/todos/todos_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/dashboard/todos/todos_spec.rb b/spec/features/dashboard/todos/todos_spec.rb
index c2a61cf5aff..e6795c8470f 100644
--- a/spec/features/dashboard/todos/todos_spec.rb
+++ b/spec/features/dashboard/todos/todos_spec.rb
@@ -252,7 +252,7 @@ feature 'Dashboard Todos' do
describe 'mark all as done', js: true do
before do
visit dashboard_todos_path
- find('.js-todos-mark-all').trigger('click')
+ find('.js-todos-mark-all').click
end
it 'shows "All done" message!' do
@@ -309,9 +309,9 @@ feature 'Dashboard Todos' do
end
def mark_all_and_undo
- find('.js-todos-mark-all').trigger('click')
+ find('.js-todos-mark-all').click
wait_for_requests
- find('.js-todos-undo-all').trigger('click')
+ find('.js-todos-undo-all').click
wait_for_requests
end
end