Commit bad83104 authored by Phil Hughes's avatar Phil Hughes
Browse files

Merge branch...

Merge branch '52035-selecting-an-autofill-suggestion-for-project-name-will-not-update-the-project-slug' into 'master'

Resolve "Selecting an autofill suggestion for project name will not update the project slug"

Closes #52035

See merge request gitlab-org/gitlab-ce!22016
......@@ -147,7 +147,7 @@ const bindEvents = () => {
$projectImportUrl.keyup(() => deriveProjectPathFromUrl($projectImportUrl));
$projectName.keyup(() => {
$projectName.on('keyup change', () => {
onProjectNameChange($projectName, $projectPath);
hasUserDefinedProjectPath = $projectPath.val().trim().length > 0;
});
......
---
title: Update project path on project name autofill
merge_request: 22016
author:
type: other
......@@ -21,8 +21,9 @@
context 'when selecting the namespace' do
let(:user) { create(:admin) }
let!(:namespace) { user.namespace }
let(:project_name) { 'Test Project Name' + SecureRandom.hex }
let(:project_path) { 'test-project-path' + SecureRandom.hex }
let(:randomHex) { SecureRandom.hex }
let(:project_name) { 'Test Project Name' + randomHex }
let(:project_path) { 'test-project-name' + randomHex }
context 'prefilled the path' do
it 'user imports an exported project successfully' do
......@@ -30,7 +31,6 @@
select2(namespace.id, from: '#project_namespace_id')
fill_in :project_name, with: project_name, visible: true
fill_in :project_path, with: project_path, visible: true
click_import_project_tab
click_link 'GitLab export'
......@@ -79,7 +79,6 @@
select2(user.namespace.id, from: '#project_namespace_id')
fill_in :project_name, with: project.name, visible: true
fill_in :project_path, with: project.path, visible: true
click_import_project_tab
click_link 'GitLab export'
attach_file('file', file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment