From faa40419d92b2535b59f6c1925a249efd10bae16 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda <filipa@gitlab.com> Date: Sun, 13 Aug 2017 00:38:26 +0100 Subject: [PATCH] Adds tests for mirror repository checkbox --- spec/features/projects/new_project_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/features/projects/new_project_spec.rb b/spec/features/projects/new_project_spec.rb index 22fb122373983..c20b9721c760e 100644 --- a/spec/features/projects/new_project_spec.rb +++ b/spec/features/projects/new_project_spec.rb @@ -125,6 +125,10 @@ expect(git_import_instructions).to be_visible expect(git_import_instructions).to have_content 'Git repository URL' end + + it 'shows mirror repository checkbox enabled', :js do + expect(page).to have_unchecked_field('Mirror repository', disabled: false) + end end context 'from GitHub' do -- GitLab