Skip to content

Commit b2488fa

Browse files
committed
open_with_resources_clicked
1 parent c2058db commit b2488fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ def _(
443443
re.compile(r"/projects/[^:]+:open"), timeout=timeout + 5 * SECOND
444444
) as response_info,
445445
):
446+
open_with_resources_clicked = False
446447
# Project detail view pop-ups shows
447448
if press_open:
448449
open_button = page.get_by_test_id("openResource")
@@ -456,6 +457,7 @@ def _(
456457
re.compile(rf"/projects\?from_study\={template_id}")
457458
) as lrt:
458459
open_button.click()
460+
open_with_resources_clicked = True
459461
lrt_data = lrt.value.json()
460462
lrt_data = lrt_data["data"]
461463
with log_context(
@@ -496,6 +498,10 @@ def wait_for_done(response):
496498
if is_product_billable:
497499
# Open project with default resources
498500
page.get_by_test_id("openWithResources").click()
501+
open_with_resources_clicked = True
502+
if is_product_billable and not open_with_resources_clicked:
503+
# Open project with default resources
504+
page.get_by_test_id("openWithResources").click()
499505
project_data = response_info.value.json()
500506
assert project_data
501507
project_uuid = project_data["data"]["uuid"]

0 commit comments

Comments
 (0)