Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Fix os-depending url and remove whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Bergkemper <frank.bergkemper@bareos.com>
  • Loading branch information
[Aron Schueler] authored and fbergkemper committed Mar 16, 2018
1 parent d80f296 commit 4974a83
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/selenium/webui-selenium-test.py
Expand Up @@ -144,14 +144,14 @@ def test_run_configured_job(self):
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):
Expand All @@ -166,7 +166,7 @@ def job_start_configured(self):
# 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
Expand All @@ -183,14 +183,14 @@ def job_start_configured(self):
# 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"]')

Expand Down

0 comments on commit 4974a83

Please sign in to comment.