Skip to content

Commit 9068e35

Browse files
committed
Merge branch 'master' into is1988/upgrading-director-to-fastapi
2 parents c202c3d + 9915ebd commit 9068e35

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ def _(
447447
if press_open:
448448
open_button = page.get_by_test_id("openResource")
449449
if template_id is not None:
450+
if is_product_billable:
451+
open_button.click()
452+
# Open project with default resources
453+
open_button = page.get_by_test_id("openWithResources")
450454
# it returns a Long Running Task
451455
with page.expect_response(
452456
re.compile(rf"/projects\?from_study\={template_id}")
@@ -489,9 +493,9 @@ def wait_for_done(response):
489493
...
490494
else:
491495
open_button.click()
492-
if is_product_billable:
493-
# Open project with default resources
494-
page.get_by_test_id("openWithResources").click()
496+
if is_product_billable:
497+
# Open project with default resources
498+
page.get_by_test_id("openWithResources").click()
495499
project_data = response_info.value.json()
496500
assert project_data
497501
project_uuid = project_data["data"]["uuid"]

0 commit comments

Comments
 (0)