Skip to content

Commit 0c7861b

Browse files
improving e2e tests
1 parent 53fc872 commit 0c7861b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/e2e-playwright/tests/sim4life/test_template.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from typing import Any
1212

1313
from playwright.sync_api import Page
14+
from pydantic import AnyUrl
1415
from pytest_simcore.helpers.playwright import RestartableWebSocket
1516
from pytest_simcore.helpers.playwright_sim4life import (
1617
check_video_streaming,
@@ -26,6 +27,7 @@ def test_template(
2627
template_id: str,
2728
is_autoscaled: bool,
2829
check_videostreaming: bool,
30+
product_url: AnyUrl,
2931
):
3032
project_data = create_project_from_template_dashboard(template_id)
3133

@@ -37,10 +39,14 @@ def test_template(
3739
assert len(node_ids) == 1, "Expected 1 node in the workbench!"
3840

3941
resp = wait_for_launched_s4l(
40-
page, node_ids[0], log_in_and_out, autoscaled=is_autoscaled, copy_workspace=True
42+
page,
43+
node_ids[0],
44+
log_in_and_out,
45+
autoscaled=is_autoscaled,
46+
copy_workspace=True,
47+
product_url=product_url,
4148
)
4249
s4l_websocket = resp["websocket"]
43-
# with web_socket_default_log_handler(s4l_websocket):
4450
s4l_iframe = resp["iframe"]
4551
interact_with_s4l(page, s4l_iframe)
4652

0 commit comments

Comments
 (0)