Skip to content

Commit

Permalink
πŸ› [e2e-playwright] Fix tests, 2nd attempt (ITISFoundation#6735)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Nov 15, 2024
1 parent fd6a436 commit 9915ebd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/e2e-playwright/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,16 +447,17 @@ 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}")
) as lrt:
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",
Expand Down

0 comments on commit 9915ebd

Please sign in to comment.