Retry until the template is set

parent 3da460b8
...@@ -70,17 +70,19 @@ module QA ...@@ -70,17 +70,19 @@ module QA
before do before do
Flow::Login.sign_in_as_admin Flow::Login.sign_in_as_admin
Page::Main::Menu.perform(&:go_to_admin_area) Support::Retrier.retry_until do
Page::Admin::Menu.perform(&:go_to_template_settings) Page::Main::Menu.perform(&:go_to_admin_area)
Page::Admin::Menu.perform(&:go_to_template_settings)
EE::Page::Admin::Settings::Templates.perform do |templates| EE::Page::Admin::Settings::Templates.perform do |templates|
templates.choose_custom_project_template("#{@template_container_group_name}") templates.choose_custom_project_template("#{@template_container_group_name}")
end end
Page::Admin::Menu.perform(&:go_to_template_settings) Page::Admin::Menu.perform(&:go_to_template_settings)
EE::Page::Admin::Settings::Templates.perform do |templates| EE::Page::Admin::Settings::Templates.perform do |templates|
expect(templates.current_custom_project_template).to include @template_container_group_name templates.current_custom_project_template.include? @template_container_group_name
end
end end
Resource::Group.fabricate_via_api!.visit! Resource::Group.fabricate_via_api!.visit!
......
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