Commit 541a082c authored by Stan Hu's avatar Stan Hu

Rename find('.ace_editor') -> find('.ace_text-input') to make Chrome happy

parent ebd5c309
......@@ -10,7 +10,7 @@ feature 'Create Snippet', :js do
fill_in 'project_snippet_title', with: 'My Snippet Title'
fill_in 'project_snippet_description', with: 'My Snippet **Description**'
page.within('.file-editor') do
find('.ace_editor').native.send_keys('Hello World!')
find('.ace_text-input').native.send_keys('Hello World!')
end
end
......
......@@ -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_editor').native.send_keys 'Hello World!'
find('.ace_text-input').native.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_editor').native.send_keys 'Hello World!'
find('.ace_text-input').native.send_keys 'Hello World!'
end
click_button 'Create snippet'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment