summaryrefslogtreecommitdiff
path: root/spec/features/dashboard
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
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')
-rw-r--r--spec/features/dashboard/issues_spec.rb2
-rw-r--r--spec/features/dashboard/todos/todos_spec.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/dashboard/issues_spec.rb b/spec/features/dashboard/issues_spec.rb
index a11499ba191..c53b8bdc002 100644
--- a/spec/features/dashboard/issues_spec.rb
+++ b/spec/features/dashboard/issues_spec.rb
@@ -80,7 +80,7 @@ RSpec.describe 'Dashboard Issues' do
end
it 'shows the new issue page', :js do
- find('.new-project-item-select-button').trigger('click')
+ find('.new-project-item-select-button').click
wait_for_requests
find('.select2-results li').click
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