diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-09-27 21:13:07 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-09-27 21:13:07 +0300 |
commit | 5072ecc67b8f20cfa9f212883674c732d3ea8dd6 (patch) | |
tree | 6aba65ae32024a7a3a2c61a004fe2f35e87a8c92 /spec/features/snippets/user_creates_snippet_spec.rb | |
parent | 45da02f9abb0406130e7c3b6a480fa847e4e6ad9 (diff) |
Replaced trigger click calls for click, also fixed ace_editor-input test
Diffstat (limited to 'spec/features/snippets/user_creates_snippet_spec.rb')
-rw-r--r-- | spec/features/snippets/user_creates_snippet_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/snippets/user_creates_snippet_spec.rb b/spec/features/snippets/user_creates_snippet_spec.rb index 0b9ad37f0e9..1c73b86c5fb 100644 --- a/spec/features/snippets/user_creates_snippet_spec.rb +++ b/spec/features/snippets/user_creates_snippet_spec.rb @@ -14,7 +14,7 @@ feature 'User creates snippet', :js do fill_in 'personal_snippet_title', with: 'My Snippet Title' fill_in 'personal_snippet_description', with: 'My Snippet **Description**' page.within('.file-editor') do - find('.ace_text-input').native.send_keys 'Hello World!' + find('.ace_text-input', visible: false).send_keys 'Hello World!' end end @@ -94,7 +94,7 @@ feature 'User creates snippet', :js do fill_in 'personal_snippet_title', with: 'My Snippet Title' page.within('.file-editor') do find(:xpath, "//input[@id='personal_snippet_file_name']").set 'snippet+file+name' - find('.ace_text-input').native.send_keys 'Hello World!' + find('.ace_text-input', visible: false).send_keys 'Hello World!' end click_button 'Create snippet' |