You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the fixed authenticated workspace-photo route after uploads instead of reinterpreting an API-returned URL, and retain a focused source contract.
Signed-off-by: Joseph Yaksich <gitcommit90@users.noreply.github.com>
Copy file name to clipboardExpand all lines: test/workspace-interactions.mjs
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,8 @@ test("profile, naming, routing, and usage language match the visible product con
40
40
assert.match(app,/toBlob\(resolve,"image\/jpeg",0\.86\)/,"the square avatar is compressed before upload");
41
41
assert.match(app,/Photoready\.Adjustthecrop,thenchooseSaveprofile\./,"file choice does not instantly upload the raw photo");
42
42
assert.match(settings,/maxlength:100/,"workspace naming allows and caps a generous 100 characters");
43
+
assert.match(settings,/workspacePhotoSrc\("\/api\/workspace\/photo",Date\.now\(\)\)/,"workspace photo updates use the fixed same-origin asset route instead of an API-returned DOM URL");
44
+
assert.equal([...settings.matchAll(/workspacePhotoSrc\(S\.workspace\.photo_url,Date\.now\(\)\)/g)].length,1,"only the already-loaded workspace value may initialize the preview; update responses never become image destinations");
43
45
assert.match(app,/dataset:\{workspaceName:""\}/,"the complete workspace name has a stable wrapping hook");
44
46
assert.match(settings,/Connectionavailability/,"connections use direct availability wording");
45
47
assert.doesNotMatch(settings,/Moreconnections/,"the ambiguous connections heading is gone");
0 commit comments