Skip to content
Snippets Groups Projects
Commit 52fc43ff authored by John Watkins's avatar John Watkins
Browse files

converted routed to use base_url

parent c846124a
No related branches found
No related tags found
1 merge request!114LoggingService service class, new method to add a log to the "Logs" table when...
from modules.navigation import *
from modules.main import *
from modules.navigation import *
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
......@@ -79,7 +78,7 @@ class LoginRegisterSuite:
time.sleep(1)
try:
assert driver.current_url == "http://localhost:5000/dashboard"
assert driver.current_url == BASE_URL + "/dashboard"
success("Register with valid details works")
self.passed+=1
except AssertionError as e:
......@@ -133,7 +132,7 @@ class LoginRegisterSuite:
time.sleep(1)
try:
assert driver.current_url == "http://localhost:5000/"
assert driver.current_url == BASE_URL + "/"
success("Login in correctly redirects")
self.passed+=1
except AssertionError as e:
......
......@@ -43,7 +43,7 @@ class Nav:
time.sleep(1)
try:
assert driver.current_url == "http://localhost:5000/login"
assert driver.current_url == BASE_URL + "/login"
success("Redirect on logout works correctly")
self.passed+=1
except AssertionError as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment