summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/features/projects_spec.rb20
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