Merge branch 'sh-improve-flaky-ace-editor-spec' into 'master'

Improve flaky ACE editor spec

See merge request !13854
This commit is contained in:
Robert Speicher 2017-08-28 16:05:03 +00:00
commit 3e0757f2d2

View file

@ -56,11 +56,10 @@ describe 'User creates files' do
find('.add-to-tree').click find('.add-to-tree').click
click_link('New file') click_link('New file')
expect(page).to have_selector('.file-editor')
end end
it 'creates and commit a new file', js: true do it 'creates and commit a new file', js: true do
expect(page).to have_selector('.file-editor')
execute_script("ace.edit('editor').setValue('*.rbca')") execute_script("ace.edit('editor').setValue('*.rbca')")
fill_in(:file_name, with: 'not_a_file.md') fill_in(:file_name, with: 'not_a_file.md')
fill_in(:commit_message, with: 'New commit message', visible: true) fill_in(:commit_message, with: 'New commit message', visible: true)