diff --git a/tests/e2e-playwright/tests/conftest.py b/tests/e2e-playwright/tests/conftest.py index c50cdeba6c2..a8a1f8d979d 100644 --- a/tests/e2e-playwright/tests/conftest.py +++ b/tests/e2e-playwright/tests/conftest.py @@ -447,6 +447,10 @@ def _( if press_open: open_button = page.get_by_test_id("openResource") if template_id is not None: + if is_product_billable: + open_button.click() + # Open project with default resources + open_button = page.get_by_test_id("openWithResources") # it returns a Long Running Task with page.expect_response( re.compile(rf"/projects\?from_study\={template_id}") @@ -454,9 +458,6 @@ def _( open_button.click() lrt_data = lrt.value.json() lrt_data = lrt_data["data"] - if is_product_billable: - # Open project with default resources - page.get_by_test_id("openWithResources").click() with log_context( logging.INFO, "Copying template data",