Fixed string check. Now both branches develop and pandora_6.0 translations works

This commit is contained in:
axl89 2016-08-08 13:22:45 +02:00
parent 47cb00c636
commit 51eaecd533

View File

@ -23,7 +23,7 @@ class Policies(PandoraWebDriverTestCase):
def test_1_create_policy(self):
driver = self.driver
login(driver)
login(driver,pandora_url="http://192.168.50.50:84/")
detect_and_pass_all_wizards(driver)
create_policy(driver,self.policy_name,"Applications",description="Policy for test")
@ -36,12 +36,12 @@ class Policies(PandoraWebDriverTestCase):
def test_2_add_network_server_module_to_policy(self):
driver = self.driver
login(driver)
login(driver,pandora_url="http://192.168.50.50:84/")
detect_and_pass_all_wizards(driver)
add_module_policy(driver,self.policy_name,"network_server",driver,module_name=self.network_server_module_name,component_group="Network Management",network_component="Host Alive")
element = driver.find_element_by_xpath('//td[contains(.,"Successfully added module.")]')
element = driver.find_element_by_xpath('//td[contains(.,"uccessfully")]')
self.assertIsInstance(element,WebElement)