'This test will simulate the device that has already registered and the only option is available is update
the software else the test will fail.'

def test_device_already_register(self):

    facility_name = 'default'
    self.zone = self.create_zone()
    self.device_zone = self.create_device_zone(self.zone)
    self.fac = self.create_facility(name=facility_name)
    self.browser_login_admin(**self.admin_data)
    self.browse_to(self.reverse('zone_redirect'))
    element = self.browser.find_element_by_id('force-sync')
    try:
        WebDriverWait(self.browser, 0.7).until(EC.visibility_of(element))
    except TimeoutException:
        pass
    self.assertTrue(element.is_displayed())
