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:
author[Aron Schueler] <aron.schueler@dass-it.de>2018-03-16 13:32:06 +0300
committerFrank Bergkemper <frank.bergkemper@bareos.com>2018-03-16 13:42:59 +0300
commit4974a8394770cdb5e56a2b73ebeab6573192f32d (patch)
treeb70a52e8fcbdf9cf08f2cba5f13ae8024f2c2d0c
parentd80f2968535110cbaaf453efffc9a79c29328a95 (diff)
Fix os-depending url and remove whitespace
Signed-off-by: Frank Bergkemper <frank.bergkemper@bareos.com>
-rwxr-xr-xtests/selenium/webui-selenium-test.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/selenium/webui-selenium-test.py b/tests/selenium/webui-selenium-test.py
index ce23bad..738c5de 100755
--- a/tests/selenium/webui-selenium-test.py
+++ b/tests/selenium/webui-selenium-test.py
@@ -144,14 +144,14 @@ class WebuiSeleniumTest(unittest.TestCase):
self.logout()
def test_job_canceling(self):
-
+
driver = self.driver
-
+
self.login()
-
+
job_id = self.job_start_configured()
self.job_cancel(job_id)
-
+
self.logout()
def job_start_configured(self):
@@ -166,7 +166,7 @@ class WebuiSeleniumTest(unittest.TestCase):
# Clears the priority field and enters 5.
driver.find_element_by_id('priority').clear()
driver.find_element_by_id('priority').send_keys('5')
-
+
# Open the calendar
self.wait_and_click(By.CSS_SELECTOR, "span.glyphicon.glyphicon-calendar")
# Click the icon to delay jobstart by 1min two times
@@ -183,14 +183,14 @@ class WebuiSeleniumTest(unittest.TestCase):
# If the current URL doesn't end with a digit we didn't start the job properly.
if not job_id.isdigit():
raise BadJobException
-
+
return job_id
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_for_url_and_click('/job/details/%s' % id)
# Click on cancel button
self.wait_and_click(By.XPATH, '//*[@title="Cancel"]')