diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-06-26 12:23:03 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-06-26 14:16:00 +0300 |
commit | 2fb004ea861394550566afef06072d8c62813670 (patch) | |
tree | 6b4d7e1d60f0ce900ffd67dc683ce8835dcdeb30 /spec/features | |
parent | 4503240abdd9a38e801aef49edad9ff9c7f9457d (diff) |
Fix click not being able to find the current element to use trigger('click') instead
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/environments/environments_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/projects/environments/environments_spec.rb b/spec/features/projects/environments/environments_spec.rb index 83883dba0ba..cf4d996a32d 100644 --- a/spec/features/projects/environments/environments_spec.rb +++ b/spec/features/projects/environments/environments_spec.rb @@ -151,7 +151,7 @@ feature 'Environments page', :feature, :js do find('.js-dropdown-play-icon-container').click expect(page).to have_content(action.name.humanize) - expect { find('.js-manual-action-link').click } + expect { find('.js-manual-action-link').trigger('click') } .not_to change { Ci::Pipeline.count } end |