Unverified Commit 908245ed authored by Johannes Tomren Røsvik's avatar Johannes Tomren Røsvik
Browse files

Add OS check to webdriver setup

parent c9ef69eb
Pipeline #74297 passed with stage
in 1 minute and 7 seconds
......@@ -8,7 +8,10 @@ url = "http://127.0.0.1:8000/"
class AgreelanceDarkMode(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome("./bin/chromedriver.exe")
if os.name == "nt":
self.driver = webdriver.Chrome("./bin/chromedriver.exe")
return
self.driver = webdriver.Chrome("./bin/chromedriver")
#Checks that toggleelement should be availeble through togglebar
def test_dark_mode_in_toggle(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment