mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Repair errors in PAN4, PAN5 and PAN9
This commit is contained in:
parent
f1aceec1c8
commit
70557ff2c5
@ -8,6 +8,8 @@ from selenium.webdriver.common.by import By
|
|||||||
from selenium.webdriver.common.keys import Keys
|
from selenium.webdriver.common.keys import Keys
|
||||||
from selenium.webdriver.support.ui import Select
|
from selenium.webdriver.support.ui import Select
|
||||||
from selenium.common.exceptions import StaleElementReferenceException
|
from selenium.common.exceptions import StaleElementReferenceException
|
||||||
|
from selenium.common.exceptions import NoSuchElementException
|
||||||
|
from selenium.common.exceptions import NoAlertPresentException
|
||||||
from selenium.webdriver.remote.webelement import WebElement
|
from selenium.webdriver.remote.webelement import WebElement
|
||||||
import unittest, time, re
|
import unittest, time, re
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ from selenium.webdriver.common.by import By
|
|||||||
from selenium.webdriver.common.keys import Keys
|
from selenium.webdriver.common.keys import Keys
|
||||||
from selenium.webdriver.support.ui import Select
|
from selenium.webdriver.support.ui import Select
|
||||||
from selenium.common.exceptions import StaleElementReferenceException, NoSuchElementException
|
from selenium.common.exceptions import StaleElementReferenceException, NoSuchElementException
|
||||||
|
from selenium.common.exceptions import NoAlertPresentException
|
||||||
from selenium.webdriver.remote.webelement import WebElement
|
from selenium.webdriver.remote.webelement import WebElement
|
||||||
import unittest, time, re
|
import unittest, time, re
|
||||||
|
|
||||||
@ -60,7 +61,7 @@ class PAN5(PandoraWebDriverTestCase):
|
|||||||
#Check that there are japanese characters present on the event
|
#Check that there are japanese characters present on the event
|
||||||
|
|
||||||
try:
|
try:
|
||||||
element = driver.find_element_by_xpath('//a[contains(.,u"Alert fired (Critical condition) assigned to (管理者ガイド)")]')
|
element = driver.find_element_by_xpath(u'//a[contains(.,"Alert fired (Critical condition) assigned to (管理者ガイド)")]')
|
||||||
self.assertIsInstance(element,WebElement)
|
self.assertIsInstance(element,WebElement)
|
||||||
|
|
||||||
except AssertionError as e:
|
except AssertionError as e:
|
||||||
|
@ -22,7 +22,7 @@ class PAN9(PandoraWebDriverTestCase):
|
|||||||
def test_pan9(self):
|
def test_pan9(self):
|
||||||
|
|
||||||
driver = self.driver
|
driver = self.driver
|
||||||
login(driver,pandora_url="http://192.168.50.50:84/")
|
login(driver)
|
||||||
detect_and_pass_all_wizards(driver)
|
detect_and_pass_all_wizards(driver)
|
||||||
|
|
||||||
create_agent_group(driver,"PAN9_A",propagate_acl=True,description="Group A, with propagate ACL, son of ALL")
|
create_agent_group(driver,"PAN9_A",propagate_acl=True,description="Group A, with propagate ACL, son of ALL")
|
||||||
@ -37,9 +37,9 @@ class PAN9(PandoraWebDriverTestCase):
|
|||||||
|
|
||||||
create_user(driver,"PAN9_user","pandora",profile_list=l)
|
create_user(driver,"PAN9_user","pandora",profile_list=l)
|
||||||
|
|
||||||
logout(driver,"http://192.168.50.50:84/")
|
logout(driver)
|
||||||
|
|
||||||
login(driver,user="PAN9_user",pandora_url="http://192.168.50.50:84/")
|
login(driver,user="PAN9_user")
|
||||||
|
|
||||||
detect_and_pass_all_wizards(driver)
|
detect_and_pass_all_wizards(driver)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user