mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 03:19:05 +02:00
Add asserts in test F Bulk_operations.py file
(cherry picked from commit b6f863353c050d4be50c91b4d02f5a5938661746)
This commit is contained in:
parent
222f5ff63d
commit
aa3d57f438
@ -257,6 +257,17 @@ class Bulk_operations(PandoraWebDriverTestCase):
|
|||||||
edit_modules_in_bulk(driver,module_name_list,agent_name_list,new_min="1",new_max="2")
|
edit_modules_in_bulk(driver,module_name_list,agent_name_list,new_min="1",new_max="2")
|
||||||
|
|
||||||
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
||||||
|
|
||||||
|
search_module(driver,agent_name_1,module_name_1,go_to_module=True)
|
||||||
|
|
||||||
|
driver.find_element_by_xpath('//a[contains(.,"Advanced options")]').click()
|
||||||
|
|
||||||
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"1")]')
|
||||||
|
self.assertIsInstance(element,WebElement)
|
||||||
|
|
||||||
|
element = driver.find_element_by_xpath('//tr//td[contains(.,"2")]')
|
||||||
|
self.assertIsInstance(element,WebElement)
|
||||||
|
|
||||||
|
|
||||||
search_module (driver,agent_name_1,module_name_1)
|
search_module (driver,agent_name_1,module_name_1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user