File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/e2e-playwright/tests Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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" ]
You can’t perform that action at this time.
0 commit comments