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:
authorRémy Coutable <remy@rymai.me>2017-10-20 21:53:42 +0300
committerRémy Coutable <remy@rymai.me>2017-10-20 21:53:42 +0300
commitcc8af554fdfa6d54315ae50465c42603a44780b1 (patch)
tree090fc17687c84cf655dc4737ae885cc5f45d7d26 /spec/features/dashboard
parent82397f386a443ae19b7fdd7dcf4dacadbc3f93a5 (diff)
parent43377979c6cfee922702a5dc6324fded96b1f111 (diff)
Merge branch 'feature/reliable-rspec-with-eval-script' into 'master'
Check for element before execute_script See merge request gitlab-org/gitlab-ce!14898
Diffstat (limited to 'spec/features/dashboard')
-rw-r--r--spec/features/dashboard/issues_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/features/dashboard/issues_spec.rb b/spec/features/dashboard/issues_spec.rb
index 5610894fd9a..a8919976c31 100644
--- a/spec/features/dashboard/issues_spec.rb
+++ b/spec/features/dashboard/issues_spec.rb
@@ -87,8 +87,10 @@ RSpec.describe 'Dashboard Issues' do
project_path = "/#{project.path_with_namespace}"
project_json = { name: project.name_with_namespace, url: project_path }.to_json
- # similate selection, and prevent overlap by dropdown menu
+ # simulate selection, and prevent overlap by dropdown menu
+ first('.project-item-select', visible: false)
execute_script("$('.project-item-select').val('#{project_json}').trigger('change');")
+ find('#select2-drop-mask', visible: false)
execute_script("$('#select2-drop-mask').remove();")
find('.new-project-item-link').trigger('click')