diff options
author | Stan Hu <stanhu@gmail.com> | 2018-12-24 09:17:03 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-12-24 09:17:03 +0300 |
commit | 91b0754d8ea158813d28a8a146ffea9554567364 (patch) | |
tree | e8ef8609195e499fff6a35999a70210860c44320 /spec | |
parent | f50ee65ba457821eeb732244aed14ebf162079af (diff) |
Fix HTTP/SSH clone panel for mobile
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/projects_spec.rb b/spec/features/projects_spec.rb index 209cdd2a838..c6ad4f5227b 100644 --- a/spec/features/projects_spec.rb +++ b/spec/features/projects_spec.rb @@ -139,6 +139,16 @@ describe 'Project' do expect(page).not_to have_content('Clone with SSH') end end + + context 'mobile component' do + it 'shows only the instructions for HTTP' do + resize_screen_xs + find('.dropdown-toggle').click + + expect(page).to have_content('Copy HTTP clone URL') + expect(page).not_to have_content('Copy SSH clone URL') + end + end end context 'when only SSH clones are allowed' do @@ -152,6 +162,16 @@ describe 'Project' do expect(page).not_to have_content('Clone with HTTP') end end + + context 'mobile component' do + it 'shows only the instructions for SSH' do + resize_screen_xs + find('.dropdown-toggle').click + + expect(page).to have_content('Copy SSH clone URL') + expect(page).not_to have_content('Copy HTTP clone URL') + end + end end end |