Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-06-17 09:08:27 +0300
committerStan Hu <stanhu@gmail.com>2017-06-17 09:08:27 +0300
commit5854ab2f7da76804a3221d962979cab67aef65c4 (patch)
tree7835938e137b497836763374bd8362bd21d19735 /spec/features/projects/branches_spec.rb
parentbece18aa592f3b93c1a697310dc1ee6d943fde25 (diff)
Convert variants of trigger('click') -> click
Diffstat (limited to 'spec/features/projects/branches_spec.rb')
-rw-r--r--spec/features/projects/branches_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/branches_spec.rb b/spec/features/projects/branches_spec.rb
index 7668ce5f8be..ac5643b6837 100644
--- a/spec/features/projects/branches_spec.rb
+++ b/spec/features/projects/branches_spec.rb
@@ -55,7 +55,7 @@ describe 'Branches', feature: true do
expect(page).to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 1)
- find('.js-branch-fix .btn-remove').trigger(:click)
+ find('.js-branch-fix .btn-remove').click
expect(page).not_to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 0)
@@ -109,7 +109,7 @@ describe 'Branches', feature: true do
expect(page).to have_content('fix')
expect(find('.all-branches')).to have_selector('li', count: 1)
- page.find('[data-target="#modal-delete-branch"]').trigger(:click)
+ page.find('[data-target="#modal-delete-branch"]').click
expect(page).to have_css('.js-delete-branch[disabled]')
fill_in 'delete_branch_input', with: 'fix'