Commit 3db5b4f9 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-fix-export-file-download-spec' into 'master'

Try to Stablize Export file download spec in staging

See merge request gitlab-org/gitlab!32305
parents 762fd872 7f6f0514
......@@ -57,6 +57,10 @@ module QA
click_element :download_export_link
end
def has_download_export_link?
has_element? :download_export_link
end
def archive_project
page.accept_alert("Are you sure that you want to archive this project?") do
click_element :archive_project_link
......
......@@ -80,8 +80,14 @@ module QA
it_behaves_like 'audit event', ["Change visibility from public to internal"]
end
context "Export file download", quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/202249', type: :bug } do
context "Export file download", quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/217949', type: :investigating } do
before do
QA::Support::Retrier.retry_until do
project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project_for_export'
project.initialize_with_readme = true
end
project.visit!
Page::Project::Menu.perform(&:go_to_general_settings)
......@@ -90,6 +96,11 @@ module QA
expect(page).to have_text("Project export started")
Page::Project::Menu.perform(&:go_to_general_settings)
settings.expand_advanced_settings(&:has_download_export_link?)
end
end
Page::Project::Settings::Main.perform do |settings|
settings.expand_advanced_settings(&:click_download_export_link)
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