From 9915ebd195043616617467eac75a142ff562f43a Mon Sep 17 00:00:00 2001 From: Odei Maiz <33152403+odeimaiz@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:27:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20[e2e-playwright]=20Fix=20tests,?= =?UTF-8?q?=202nd=20attempt=20(#6735)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/e2e-playwright/tests/conftest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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",