diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-21 15:06:44 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-21 15:06:44 +0300 |
commit | 724cca8d767a8a51ee4cfcfa730155dedc15c724 (patch) | |
tree | d3d09c8bda1e926f98f5bd60861cca26d4dc77ee /spec/features/projects/tree | |
parent | aa2a97b545243f528f60fe74ed1c0374b920f97f (diff) |
Fixes the web IDE link in tree list opening the wrong URL
Closes #44477
Diffstat (limited to 'spec/features/projects/tree')
-rw-r--r-- | spec/features/projects/tree/tree_show_spec.rb | 14 |
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 |