Skip to content

Commit 5b26616

Browse files
committed
Minor changes
1 parent cacc87d commit 5b26616

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

features/environment.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
PULL_REQUEST_ID = os.getenv("PULL_REQUEST_ID")
6969
JWT_PRIVATE_KEY = os.getenv("JWT_PRIVATE_KEY")
7070
JWT_KID = os.getenv("JWT_KID")
71+
HEADLESS = os.getenv("HEADLESS", "True").lower() in ("true", "1", "yes")
7172

7273
CPTS_UI_PREFIX = "cpt-ui"
7374
EPS_FHIR_SUFFIX = "electronic-prescriptions"
@@ -128,7 +129,9 @@ def before_all(context):
128129
if product == "CPTS-UI":
129130
global _page
130131
playwright = sync_playwright().start()
131-
context.browser = playwright.chromium.launch(headless=True, channel="chrome")
132+
context.browser = playwright.chromium.launch(
133+
headless=HEADLESS, channel="chrome"
134+
)
132135

133136
eps_api_methods.calculate_eps_fhir_base_url(context)
134137
print("CPTS-UI: ", context.cpts_ui_base_url)

features/steps/cpts_ui/select_your_role_steps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def verify_on_select_your_role_page(context):
2525

2626
@given("I am logged in")
2727
def login(context):
28-
context.page.goto(context.cpts_ui_base_url + "site/auth_demo.html")
28+
context.page.goto(context.cpts_ui_base_url + "site/login")
2929
context.page.get_by_role("button", name="Log in with mock CIS2").click()
3030
context.page.get_by_label("Username").fill("555073103100")
3131
context.page.get_by_role("button", name="Sign In").click()
32-
context.page.wait_for_url("**/auth_demo.html")
32+
context.page.wait_for_url("**/login.html")
3333

3434

3535
@then("I can see the summary container")

0 commit comments

Comments
 (0)