Commit 13820e01 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-shl-fix-project-export-audit-log-spec' into 'master'

Fix project export audit log spec

See merge request gitlab-org/gitlab!50644
parents ad7bbd28 0eed48e0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- project = local_assigns.fetch(:project) - project = local_assigns.fetch(:project)
.sub-section .sub-section{ data: { qa_selector: 'export_project_content' } }
%h4= _('Export project') %h4= _('Export project')
%p= _('Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.') %p= _('Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.')
......
...@@ -26,6 +26,7 @@ module QA ...@@ -26,6 +26,7 @@ module QA
view 'app/views/projects/_export.html.haml' do view 'app/views/projects/_export.html.haml' do
element :export_project_link element :export_project_link
element :download_export_link element :download_export_link
element :export_project_content
end end
def update_project_path_to(path) def update_project_path_to(path)
......
...@@ -98,7 +98,10 @@ module QA ...@@ -98,7 +98,10 @@ module QA
expect(page).to have_text("Project export started") expect(page).to have_text("Project export started")
Page::Project::Menu.perform(&:go_to_general_settings) Page::Project::Menu.perform(&:go_to_general_settings)
settings.expand_advanced_settings(&:has_download_export_link?) settings.expand_advanced_settings do |advanced_settings|
advanced_settings.scroll_to_element(:export_project_content)
advanced_settings.has_download_export_link?
end
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