Skip to content

Commit 9915ebd

Browse files
authored
🐛 [e2e-playwright] Fix tests, 2nd attempt (#6735)
1 parent fd6a436 commit 9915ebd

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,16 +447,17 @@ 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}")
453457
) as lrt:
454458
open_button.click()
455459
lrt_data = lrt.value.json()
456460
lrt_data = lrt_data["data"]
457-
if is_product_billable:
458-
# Open project with default resources
459-
page.get_by_test_id("openWithResources").click()
460461
with log_context(
461462
logging.INFO,
462463
"Copying template data",

0 commit comments

Comments
 (0)