Commit cf26de91 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '231530-update-breadcrumb-link-for-project-import-page' into 'master'

Update breadcrumb link for Project import page

See merge request gitlab-org/gitlab!63089
parents dda8ff61 8685b353
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
- paginatable = local_assigns.fetch(:paginatable, false) - paginatable = local_assigns.fetch(:paginatable, false)
- provider_title = Gitlab::ImportSources.title(provider) - provider_title = Gitlab::ImportSources.title(provider)
- header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
#import-projects-mount-element{ data: { provider: provider, provider_title: provider_title, #import-projects-mount-element{ data: { provider: provider, provider_title: provider_title,
can_select_namespace: current_user.can_select_namespace?.to_s, can_select_namespace: current_user.can_select_namespace?.to_s,
ci_cd_only: has_ci_cd_only_params?.to_s, ci_cd_only: has_ci_cd_only_params?.to_s,
......
- title = _('Bitbucket Server Import') - page_title _('Bitbucket Server Import')
- page_title title - header_title _("New project"), new_project_path
- breadcrumb_title title - add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
- header_title _("Projects"), root_path
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
......
- page_title _('Bitbucket Server import') - page_title _('Bitbucket Server import')
- header_title _('Projects'), root_path
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
......
- page_title _("FogBugz Import") - page_title _("FogBugz Import")
- header_title _("Projects"), root_path - header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('bug', css_class: 'gl-mr-2') = sprite_icon('bug', css_class: 'gl-mr-2')
......
- page_title _('User map'), _('FogBugz import') - page_title _('User map'), _('FogBugz import')
- header_title _("Projects"), root_path - header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('bug', css_class: 'gl-mr-2') = sprite_icon('bug', css_class: 'gl-mr-2')
......
- page_title _("FogBugz import") - page_title _("FogBugz import")
- header_title _("Projects"), root_path
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('bug', css_class: 'gl-mr-2') = sprite_icon('bug', css_class: 'gl-mr-2')
......
- page_title _("Gitea Import") - page_title _("Gitea Import")
- header_title _("Projects"), root_path - header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
%h3.page-title %h3.page-title
= custom_icon('gitea_logo') = custom_icon('gitea_logo')
......
- page_title _("Gitea Import") - page_title _("Gitea Import")
- header_title _("Projects"), root_path
%h3.page-title %h3.page-title
= custom_icon('gitea_logo') = custom_icon('gitea_logo')
= _('Import Projects from Gitea') = _('Import Projects from Gitea')
......
- title = _('Authenticate with GitHub') - title = _('Authenticate with GitHub')
- page_title title - page_title title
- breadcrumb_title title - header_title _("New project"), new_project_path
- header_title _("Projects"), root_path - add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
%h2.page-title %h3.page-title
= title = title
%p %p
......
- title = has_ci_cd_only_params? ? _('Connect repositories from GitHub') : _('GitHub import') - title = has_ci_cd_only_params? ? _('Connect repositories from GitHub') : _('GitHub import')
- page_title title - page_title title
- breadcrumb_title title
- header_title _("Projects"), root_path
%h3.page-title.mb-0.gl-display-flex %h3.page-title.mb-0.gl-display-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
= sprite_icon('github', css_class: 'gl-mr-2') = sprite_icon('github', css_class: 'gl-mr-2')
......
- page_title _("GitLab.com import") - page_title _("GitLab.com import")
- header_title _("Projects"), root_path
%h3.page-title %h3.page-title
= sprite_icon('heart', css_class: 'gl-vertical-align-middle') = sprite_icon('heart', css_class: 'gl-vertical-align-middle')
= _('Import projects from GitLab.com') = _('Import projects from GitLab.com')
......
- page_title _("GitLab Import") - page_title _("GitLab Import")
- header_title _("Projects"), root_path - header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
......
- page_title _("Manifest file import") - page_title _("Manifest file import")
- header_title _("Projects"), root_path - header_title _("New project"), new_project_path
- add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
%h3.page-title %h3.page-title
= _('Manifest file import') = _('Manifest file import')
......
- page_title _("Manifest import") - page_title _("Manifest import")
- header_title _("Projects"), root_path
%h3.page-title %h3.page-title
= _('Manifest file import') = _('Manifest file import')
......
- title = _('Phabricator Server Import') - page_title _('Phabricator Server Import')
- page_title title - header_title _("New project"), new_project_path
- breadcrumb_title title - add_to_breadcrumbs s_('ProjectsNew|Import project'), new_projects_path(anchor: 'import_project')
- header_title _("Projects"), root_path
%h3.page-title.d-flex %h3.page-title.d-flex
.gl-display-flex.gl-align-items-center.gl-justify-content-center .gl-display-flex.gl-align-items-center.gl-justify-content-center
......
...@@ -30,14 +30,14 @@ RSpec.describe 'Import/Export - project import integration test', :js do ...@@ -30,14 +30,14 @@ RSpec.describe 'Import/Export - project import integration test', :js do
it 'user imports an exported project successfully', :sidekiq_might_not_need_inline do it 'user imports an exported project successfully', :sidekiq_might_not_need_inline do
visit new_project_path visit new_project_path
click_import_project_tab click_import_project
click_link 'GitLab export' click_link 'GitLab export'
fill_in :name, with: 'Test Project Name', visible: true fill_in :name, with: 'Test Project Name', visible: true
fill_in :path, with: 'test-project-path', visible: true fill_in :path, with: 'test-project-path', visible: true
attach_file('file', file) attach_file('file', file)
expect { click_on 'Import project' }.to change { Project.count }.by(1) expect { click_button 'Import project' }.to change { Project.count }.by(1)
project = Project.last project = Project.last
expect(project).not_to be_nil expect(project).not_to be_nil
...@@ -49,11 +49,11 @@ RSpec.describe 'Import/Export - project import integration test', :js do ...@@ -49,11 +49,11 @@ RSpec.describe 'Import/Export - project import integration test', :js do
visit new_project_path visit new_project_path
click_import_project_tab click_import_project
click_link 'GitLab export' click_link 'GitLab export'
fill_in :name, with: project.name, visible: true fill_in :name, with: project.name, visible: true
attach_file('file', file) attach_file('file', file)
click_on 'Import project' click_button 'Import project'
page.within('.flash-container') do page.within('.flash-container') do
expect(page).to have_content('Project could not be imported') expect(page).to have_content('Project could not be imported')
...@@ -61,7 +61,7 @@ RSpec.describe 'Import/Export - project import integration test', :js do ...@@ -61,7 +61,7 @@ RSpec.describe 'Import/Export - project import integration test', :js do
end end
end end
def click_import_project_tab def click_import_project
find('[data-qa-selector="import_project_link"]').click find('[data-qa-selector="import_project_link"]').click
end end
end end
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