Skip to content

Commit

Permalink
feat: set TEST_LIVE_SERVER_DOMAIN in base ui testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-hd committed Oct 9, 2024
1 parent b9adba3 commit 65a5c9b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def accept_cookies(self):
def select_specific_nld_territory(self, nld_terriroty: str):
time.sleep(5) # wait for ajax call for NLD to load
self.py.get(".input-field.search").type(nld_terriroty)
time.sleep(5)
self.py.get(".region-results .result-item").click()

def create_project_and_community(self):
Expand Down
1 change: 0 additions & 1 deletion tests/functional/test_create_community_gis_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
class TestFeatures(UiFeatureHelper):
def setUp(self):
self.login()
os.environ['TEST_LIVE_SERVER_DOMAIN'] = self.live_server_url
self.alert_dialog = Alert(self.py.webdriver)
self.community_name = 'placeholder'
self.fake = faker.Faker()
Expand Down
1 change: 0 additions & 1 deletion tests/functional/test_preview_boundary_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def select_specific_nld_territory(self):
time.sleep(5) # wait for ajax call for NLD to load
selected_territory = 'panamakas'
self.py.get(".input-field.search").type(selected_territory)
time.sleep(5)
self.py.get(".region-results .result-item").click()

def create_project_and_researcher(self):
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/ui_feature_testcase_base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import urllib.parse

import pytest
Expand All @@ -15,6 +16,8 @@
@pytest.mark.usefixtures("py")
class UiFeatureHelper(StaticLiveServerTestCase):
def login(self,):
os.environ['TEST_LIVE_SERVER_DOMAIN'] = self.live_server_url

# create user
unhashed_pw = 'pw'
self.user_password_hashed = make_password(unhashed_pw)
Expand Down

0 comments on commit 65a5c9b

Please sign in to comment.