summaryrefslogtreecommitdiff
path: root/spec/javascripts/projects
diff options
context:
space:
mode:
authorSam Bigelow <sbigelow@gitlab.com>2019-04-13 12:00:10 -0400
committerIgor Drozdov <idrozdov@gitlab.com>2019-05-29 14:03:50 +0300
commitc7903542683eaa5427a5d30adad8550f0754bdfa (patch)
tree33530fd36381bea2d99e74fa63afc380ac184eb8 /spec/javascripts/projects
parent3d4821a8e76d49b388b218824714d3bcb8c54dbf (diff)
downloadgitlab-ce-c7903542683eaa5427a5d30adad8550f0754bdfa.tar.gz
Handling password on import by url page
Diffstat (limited to 'spec/javascripts/projects')
-rw-r--r--spec/javascripts/projects/project_new_spec.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/javascripts/projects/project_new_spec.js b/spec/javascripts/projects/project_new_spec.js
index b61e0ac872f..106a3ba94e4 100644
--- a/spec/javascripts/projects/project_new_spec.js
+++ b/spec/javascripts/projects/project_new_spec.js
@@ -10,7 +10,17 @@ describe('New Project', () => {
setFixtures(`
<div class='toggle-import-form'>
<div class='import-url-data'>
- <input id="project_import_url" />
+ <div class="form-group">
+ <input id="project_import_url" />
+ </div>
+ <div id="import-url-auth-method">
+ <div class="form-group">
+ <input id="project-import-url-user" />
+ </div>
+ <div class="form-group">
+ <input id="project_import_url_password" />
+ </div>
+ </div>
<input id="project_name" />
<input id="project_path" />
</div>
@@ -119,7 +129,7 @@ describe('New Project', () => {
});
it('changes project path for HTTPS URL in $projectImportUrl', () => {
- $projectImportUrl.val('https://username:password@gitlab.company.com/group/project.git');
+ $projectImportUrl.val('https://gitlab.company.com/group/project.git');
projectNew.deriveProjectPathFromUrl($projectImportUrl);