Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ qx.Class.define("osparc.navigation.NavigationBar", {
opacity: 0.8,
visibility: "excluded",
});
osparc.utils.Utils.setIdToWidget(control, "savingStudyIcon");
this.getChildControl("left-items").add(control);
break;
case "read-only-info": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pytest_simcore.helpers.logging_tools import log_context
from pytest_simcore.helpers.playwright import (
MINUTE,
SECOND,
RobustWebSocket,
ServiceType,
wait_for_service_running,
Expand Down Expand Up @@ -180,15 +181,27 @@ def test_response_surface_modeling(
lambda resp: resp.url.endswith(f"/projects/{jsonifier_prj_uuid}")
and resp.request.method == "PATCH"
) as patch_prj_rename_ctx:
page.get_by_test_id("studyTitleRenamer").locator("input").fill(
_STUDY_FUNCTION_NAME
)
renamer = page.get_by_test_id("studyTitleRenamer").locator("input")
renamer.fill(_STUDY_FUNCTION_NAME)
renamer.press("Enter")

patch_prj_rename_resp = patch_prj_rename_ctx.value
assert (
patch_prj_rename_resp.status == 204
), f"Expected 204 from PATCH, got {patch_prj_rename_resp.status}"

# if the project is being saved, wait until it's finished
with log_context(logging.INFO, "Wait until project is saved"):
# Wait for the saving icon to disappear
try:
page.get_by_test_id("savingStudyIcon").wait_for(
state="hidden", timeout=5 * SECOND
)
except TimeoutError:
raise AssertionError(
"Saving icon did not disappear within expected time"
)

# 2. go back to dashboard
with (
log_context(logging.INFO, "Go back to dashboard"),
Expand Down
Loading