Commit c42cbbcf authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-fix-group-project-template-spec' into 'master'

Fix group project template e2e test

Closes #198690

See merge request gitlab-org/gitlab!25973
parents e8fb1e9f 3590e3af
......@@ -24,7 +24,9 @@ module QA
end
def wait_for_import_success
has_text?('The project was successfully imported.', wait: QA::Support::Repeater::DEFAULT_MAX_WAIT_TIME)
wait_until(max_duration: 120, sleep_interval: 1) do
has_text?('The project was successfully imported.')
end
end
end
end
......
......@@ -24,6 +24,12 @@ module QA
end
end
def click_settings
within_sidebar do
click_element(:group_settings_item)
end
end
def click_contribution_analytics_item
hover_element(:analytics_link) do
within_submenu(:analytics_sidebar_submenu) do
......
......@@ -106,19 +106,20 @@ module QA
end
end
context 'group level', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/198690', type: :flaky } do
context 'group level' do
before do
Flow::Login.sign_in
Page::Main::Menu.perform(&:go_to_groups)
Page::Dashboard::Groups.perform { |groups| groups.click_group(Runtime::Namespace.sandbox_name) }
Page::Project::Menu.perform(&:click_settings)
Page::Group::Menu.perform(&:click_settings)
Page::Group::Settings::General.perform do |settings|
settings.choose_custom_project_template("#{@template_container_group_name}")
end
Page::Project::Menu.perform(&:click_settings)
Page::Group::Menu.perform(&:click_settings)
Page::Group::Settings::General.perform do |settings|
expect(settings.current_custom_project_template).to include @template_container_group_name
......
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