diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-11-02 14:56:10 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-11-02 14:56:10 -0500 |
commit | 187a4f6c81ab83945580a45ffe7a9e1bdcb1f192 (patch) | |
tree | 8eb4d2a552e5d542dca387bca9b6d6b96d724ae4 /spec/features/projects_spec.rb | |
parent | 351645fb1436ffa6b9d24dfabc8519805c56550b (diff) | |
download | gitlab-ce-187a4f6c81ab83945580a45ffe7a9e1bdcb1f192.tar.gz |
target label instead of obscured input element
Diffstat (limited to 'spec/features/projects_spec.rb')
-rw-r--r-- | spec/features/projects_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index d7e46f3525f..63e6051b571 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -14,9 +14,7 @@ feature 'Project' do it "allows creation from templates", :js do find('#create-from-template-tab').click - page.execute_script( - "document.querySelector('##{template.name}').click()" - ) + find("label[for=#{template.name}]").click fill_in("project_path", with: template.name) page.within '#content-body' do |