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

This commit is contained in:
Stan Hu 2017-08-16 02:20:39 -07:00
parent ebd5c309a8
commit 541a082c9f
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ feature 'Create Snippet', :js do
fill_in 'project_snippet_title', with: 'My Snippet Title' fill_in 'project_snippet_title', with: 'My Snippet Title'
fill_in 'project_snippet_description', with: 'My Snippet **Description**' fill_in 'project_snippet_description', with: 'My Snippet **Description**'
page.within('.file-editor') do page.within('.file-editor') do
find('.ace_editor').native.send_keys('Hello World!') find('.ace_text-input').native.send_keys('Hello World!')
end end
end end

View File

@ -14,7 +14,7 @@ feature 'User creates snippet', :js do
fill_in 'personal_snippet_title', with: 'My Snippet Title' fill_in 'personal_snippet_title', with: 'My Snippet Title'
fill_in 'personal_snippet_description', with: 'My Snippet **Description**' fill_in 'personal_snippet_description', with: 'My Snippet **Description**'
page.within('.file-editor') do page.within('.file-editor') do
find('.ace_editor').native.send_keys 'Hello World!' find('.ace_text-input').native.send_keys 'Hello World!'
end end
end end
@ -94,7 +94,7 @@ feature 'User creates snippet', :js do
fill_in 'personal_snippet_title', with: 'My Snippet Title' fill_in 'personal_snippet_title', with: 'My Snippet Title'
page.within('.file-editor') do page.within('.file-editor') do
find(:xpath, "//input[@id='personal_snippet_file_name']").set 'snippet+file+name' 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 end
click_button 'Create snippet' click_button 'Create snippet'