summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-03-21 12:06:44 +0000
committerPhil Hughes <me@iamphill.com>2018-03-21 12:06:44 +0000
commit724cca8d767a8a51ee4cfcfa730155dedc15c724 (patch)
treed3d09c8bda1e926f98f5bd60861cca26d4dc77ee /spec/features
parentaa2a97b545243f528f60fe74ed1c0374b920f97f (diff)
downloadgitlab-ce-724cca8d767a8a51ee4cfcfa730155dedc15c724.tar.gz
Fixes the web IDE link in tree list opening the wrong URL
Closes #44477
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/tree/tree_show_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/projects/tree/tree_show_spec.rb b/spec/features/projects/tree/tree_show_spec.rb
index c8a17871508..c4b3fb9d171 100644
--- a/spec/features/projects/tree/tree_show_spec.rb
+++ b/spec/features/projects/tree/tree_show_spec.rb
@@ -25,4 +25,18 @@ feature 'Projects tree' do
expect(page).to have_selector('.label-lfs', text: 'LFS')
end
end
+
+ context 'web IDE', :js do
+ before do
+ visit project_tree_path(project, File.join('master', 'bar'))
+
+ click_link 'Web IDE'
+
+ find('.ide-file-list')
+ end
+
+ it 'opens folder in IDE' do
+ expect(page).to have_selector('.is-open', text: 'bar')
+ end
+ end
end