diff options
Diffstat (limited to 'spec/features/projects/tree')
-rw-r--r-- | spec/features/projects/tree/tree_show_spec.rb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/spec/features/projects/tree/tree_show_spec.rb b/spec/features/projects/tree/tree_show_spec.rb index cd94e6da018..53e89cd2959 100644 --- a/spec/features/projects/tree/tree_show_spec.rb +++ b/spec/features/projects/tree/tree_show_spec.rb @@ -81,7 +81,7 @@ RSpec.describe 'Projects tree', :js do wait_for_requests page.within('.project-last-commit') do - expect(page).to have_selector('.user-avatar-link') + expect(page).to have_selector('.gl-avatar') expect(page).to have_content('Merge branch') end end @@ -152,4 +152,18 @@ RSpec.describe 'Projects tree', :js do end end end + + context 'ref switcher' do + it 'switches ref to branch' do + ref_name = 'feature' + visit project_tree_path(project, 'master') + first('.js-project-refs-dropdown').click + + page.within '.project-refs-form' do + click_link ref_name + end + + expect(page).to have_selector '.dropdown-menu-toggle', text: ref_name + end + end end |