Geo: explore re-use of 'waiting for Geo replication' method code
Many page objects have methods that wait for a UI indication that Geo replication has occurred.
def wait_for_some_resource_replication
QA::Runtime::Logger.debug(%Q[#{self.class.name} - wait_for_some_resource_replication])
wait_until(max_duration: Runtime::Geo.max_file_replication_time) do
has_UI_element_for_resource?
end
end
The differences are the name of the resource and the UI element to be searched for. Is there a way to streamline this?