Commit 810024a1 authored by Sanad Liaquat's avatar Sanad Liaquat

Resolve merge conflict and fix test

parent f4c0abd5
...@@ -7,7 +7,7 @@ module QA ...@@ -7,7 +7,7 @@ module QA
# creating it if it doesn't yet exist. # creating it if it doesn't yet exist.
# #
class Sandbox < Base class Sandbox < Base
attr_reader :path attr_accessor :path
attribute :id attribute :id
...@@ -27,7 +27,8 @@ module QA ...@@ -27,7 +27,8 @@ module QA
Page::Group::New.perform do |group| Page::Group::New.perform do |group|
group.set_path(path) group.set_path(path)
group.set_description('GitLab QA Sandbox Group') group.set_description('GitLab QA Sandbox Group')
group.set_visibility('Public') # https://gitlab.com/gitlab-org/gitlab-ce/issues/52771
# group.set_visibility('Public')
group.create group.create
end end
end end
......
...@@ -38,7 +38,7 @@ module QA ...@@ -38,7 +38,7 @@ module QA
end end
# Create a sand box group # Create a sand box group
Factory::Resource::Sandbox.fabricate_via_browser_ui! do |resource| Resource::Sandbox.fabricate_via_browser_ui! do |resource|
resource.path = "Synched-engineering-group-#{SecureRandom.hex(4)}" resource.path = "Synched-engineering-group-#{SecureRandom.hex(4)}"
end end
...@@ -52,10 +52,15 @@ module QA ...@@ -52,10 +52,15 @@ module QA
EE::Page::Group::Menu.perform(&:go_to_members) EE::Page::Group::Menu.perform(&:go_to_members)
EE::Page::Group::Members.perform(&:click_sync_now) users_synchronised = false
EE::Page::Group::Members.perform do |page|
page.click_sync_now
users_synchronised = page.with_retry(reload: true) do
page.has_content?('ENG User 2') && page.has_content?('ENG User 3')
end
end
expect(page).to have_content('ENG User 2') expect(users_synchronised).to be_truthy
expect(page).to have_content('ENG User 3')
end 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