Skip to content

Commit 1e5da66

Browse files
Superuser
1 parent 01b38a2 commit 1e5da66

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

libs/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class CurrentExecution:
1616
session_screenshots_dir: str = ""
1717
screenshot_sequence: int = 0
1818
capture_screenshot_flag: bool = False
19-
login_username: str = ""
20-
login_password: str = ""
19+
nurse_username: str = ""
20+
nurse_password: str = ""
2121
superuser_username: str = ""
2222
superuser_password: str = ""
2323
parental_consent_url: str = ""
@@ -30,8 +30,10 @@ def get_env_values():
3030
CurrentExecution.service_url = os.getenv("TEST_URL")
3131
CurrentExecution.base_auth_username = os.getenv("TEST_USERNAME")
3232
CurrentExecution.base_auth_password = os.getenv("TEST_PASSWORD")
33-
CurrentExecution.login_username = os.getenv("LOGIN_USERNAME")
34-
CurrentExecution.login_password = os.getenv("LOGIN_PASSWORD")
33+
CurrentExecution.nurse_username = os.getenv("NURSE_USERNAME")
34+
CurrentExecution.nurse_password = os.getenv("NURSE_PASSWORD")
35+
CurrentExecution.superuser_username = os.getenv("SUPERUSER_USERNAME")
36+
CurrentExecution.superuser_password = os.getenv("SUPERUSER_PASSWORD")
3537
CurrentExecution.headless_mode = os.getenv("HEADLESS").lower() == "true"
3638
CurrentExecution.capture_screenshot_flag = os.getenv("CAPTURE_SCREENSHOTS").lower() == "true"
3739
CurrentExecution.parental_consent_url = os.getenv("PARENTAL_CONSENT_URL")

pages/pg_login.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ def verify_login_successful(self):
3333

3434
def login_as_nurse(self):
3535
self.click_start()
36-
self.enter_username(username=self.ce.login_username)
37-
self.enter_password(password=self.ce.login_password)
36+
self.enter_username(username=self.ce.nurse_username)
37+
self.enter_password(password=self.ce.nurse_password)
3838
self.click_login()
3939
self.verify_login_successful()
4040

0 commit comments

Comments
 (0)