Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Bergkemper <frank.bergkemper@bareos.com>2018-04-11 13:35:27 +0300
committerFrank Bergkemper <frank.bergkemper@bareos.com>2018-04-20 13:55:16 +0300
commit41c4b88bc7f373af697c36e286284fe1faf38c95 (patch)
tree679fef996cd9ab0873fa5e34f1f13c452bef1f33
parent0acd6cde71dc172864d47ae9947eaec5a0b545dd (diff)
tiny fix and some cleanup
-rwxr-xr-xtests/selenium/webui-selenium-test.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/selenium/webui-selenium-test.py b/tests/selenium/webui-selenium-test.py
index 9b1862f..664466d 100755
--- a/tests/selenium/webui-selenium-test.py
+++ b/tests/selenium/webui-selenium-test.py
@@ -159,7 +159,6 @@ class WebuiSeleniumTest(unittest.TestCase):
self.logout()
def test_job_canceling(self):
-
driver = self.driver
self.login()
job_id = self.job_start_configured()
@@ -171,7 +170,6 @@ class WebuiSeleniumTest(unittest.TestCase):
self.logout()
def test_languages(self):
-
driver = self.driver
driver.get(self.base_url + '/auth/login')
self.driver.find_element_by_xpath('//button[@data-id="locale"]').click()
@@ -187,7 +185,6 @@ class WebuiSeleniumTest(unittest.TestCase):
raise LocaleException(expected_languages,elements)
def test_menue(self):
-
self.login()
self.wait_for_url_and_click('/director/')
self.wait_for_url_and_click('/schedule/')
@@ -211,7 +208,6 @@ class WebuiSeleniumTest(unittest.TestCase):
self.logout()
def test_restore(self):
-
# Login
self.login()
self.wait_for_url_and_click('/restore/')
@@ -267,21 +263,20 @@ class WebuiSeleniumTest(unittest.TestCase):
return status
def compare_locales(self):
-
return b
def job_cancel(self, id):
# Go to job list
self.wait_and_click(By.ID, 'menu-topnavbar-job')
# Click on the object that has id in its url
- self.wait_for_url_and_click('/bareos-webui/job/details/%s' % id)
+ self.wait_and_click(By.ID, 'btn-1')
+ #self.wait_for_url_and_click('/bareos-webui/job/details/%s' % id)
# Wait for the cancel button to load
- self.wait_for_element(By.XPATH, '//*[@title="Cancel"]')
+ #self.wait_for_element(By.XPATH, '//*[@title="Cancel"]')
# Click on cancel button
- self.wait_and_click(By.XPATH, '//*[@title="Cancel"]')
+ #self.wait_and_click(By.XPATH, '//*[@title="Cancel"]')
def job_start_configured(self):
-
driver = self.driver
self.wait_and_click(By.ID, 'menu-topnavbar-job')
self.wait_and_click(By.LINK_TEXT, 'Run')