Skip to content

Commit 6e78c42

Browse files
committed
fix
1 parent 7893a12 commit 6e78c42

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 4 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}")
@@ -458,9 +462,6 @@ def _(
458462
logging.INFO,
459463
"Copying template data",
460464
) as copying_logger:
461-
if is_product_billable:
462-
# Open project with default resources
463-
page.get_by_test_id("openWithResources").click()
464465

465466
# From the long running tasks response's urls, only their path is relevant
466467
def url_to_path(url):

0 commit comments

Comments
 (0)