summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-08-28 16:05:03 +0000
committerRobert Speicher <robert@gitlab.com>2017-08-28 16:05:03 +0000
commit3e0757f2d265e0ab3b13c5d27786ced901744c90 (patch)
tree317ec2216aa38a7f34a8ae1172b1b7d11565cbec
parent3dd1efe6fc324e0e7993822327e4732ad1936ac6 (diff)
parente6c13d29544c7cbdad16575af04e5f2efca06e01 (diff)
downloadgitlab-ce-3e0757f2d265e0ab3b13c5d27786ced901744c90.tar.gz
Merge branch 'sh-improve-flaky-ace-editor-spec' into 'master'
Improve flaky ACE editor spec See merge request !13854
-rw-r--r--spec/features/projects/user_creates_files_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/features/projects/user_creates_files_spec.rb b/spec/features/projects/user_creates_files_spec.rb
index 4b78cc4fc53..3d335687510 100644
--- a/spec/features/projects/user_creates_files_spec.rb
+++ b/spec/features/projects/user_creates_files_spec.rb
@@ -56,11 +56,10 @@ describe 'User creates files' do
find('.add-to-tree').click
click_link('New file')
+ expect(page).to have_selector('.file-editor')
end
it 'creates and commit a new file', js: true do
- expect(page).to have_selector('.file-editor')
-
execute_script("ace.edit('editor').setValue('*.rbca')")
fill_in(:file_name, with: 'not_a_file.md')
fill_in(:commit_message, with: 'New commit message', visible: true)