Adapted tests to new translations
This commit is contained in:
parent
13eb5c6305
commit
b8d0975444
|
@ -46,14 +46,7 @@ class Bulk_operations(PandoraWebDriverTestCase):
|
|||
|
||||
driver.get(url)
|
||||
|
||||
driver.find_element_by_css_selector("b").click()
|
||||
driver.find_element_by_css_selector("b").click()
|
||||
click_menu_element(driver,"Agent operations")
|
||||
driver.find_element_by_id("option").click()
|
||||
Select(driver.find_element_by_id("option")).select_by_visible_text("Bulk agent delete")
|
||||
Select(driver.find_element_by_id("id_agents")).select_by_visible_text(agent_name_1)
|
||||
Select(driver.find_element_by_id("id_agents")).select_by_visible_text(agent_name_2)
|
||||
driver.find_element_by_id("submit-go").click()
|
||||
delete_agent(driver,[agent_name_1,agent_name_2])
|
||||
|
||||
self.assertRegexpMatches(self.close_alert_and_get_its_text(), r"^Are you sure[\s\S]$")
|
||||
self.assertEqual(self.driver.find_element_by_xpath('//div[@id="main"]//td[contains(.,"Successfully deleted (2)")]').text,"Successfully deleted (2)")
|
||||
|
|
|
@ -12,7 +12,7 @@ def delete_agent (driver,agent_names_list):
|
|||
|
||||
click_menu_element(driver,"Agent operations")
|
||||
driver.find_element_by_id("option").click()
|
||||
Select(driver.find_element_by_id("option")).select_by_visible_text("Bulk agent delete")
|
||||
Select(driver.find_element_by_id("option")).select_by_visible_text("Delete agents in bulk")
|
||||
|
||||
for agent_name in agent_names_list:
|
||||
Select(driver.find_element_by_id("id_agents")).select_by_visible_text(agent_name)
|
||||
|
|
Loading…
Reference in New Issue