Skip to content

Commit

Permalink
Fix SiteDriver instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemijRodionov committed Mar 12, 2019
1 parent 6eb9dc5 commit 7e523bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shopelectro/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SeleniumTestCase(LiveServerTestCase):
def setUpClass(cls):
"""Instantiate browser instance."""
super().setUpClass()
cls.browser = SiteDriver()
cls.browser = SiteDriver(site_url=self.live_server_url)
# @todo #371:15m Move selenium timeout to env var. stb2
# To be able to change it from drone without touching code.
cls.browser.implicitly_wait(30)
Expand Down
2 changes: 1 addition & 1 deletion shopelectro/tests/tests_selenium_mobile.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Mobile(MobileSeleniumTestCase):

def setUp(self):
"""Set up testing urls and dispatch selenium webdriver."""
self.browser.get()
self.browser.get('/')
self.wait_page_loading()

def wait_page_loading(self):
Expand Down

0 comments on commit 7e523bb

Please sign in to comment.