fix(wechat): sync MindSpace pages after MP generation and redirect on 401
Memind CI / Test, build, and release guards (push) Failing after 3m31s
Memind CI / Test, build, and release guards (push) Failing after 3m31s
WeChat page delivery now triggers syncUserGeneratedPages so write_file HTML gets page records; public share widget redirects unauthenticated owners to WeChat OAuth instead of only showing an error. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,6 +18,8 @@ test('injectPublicFileShareButton adds plaza entry and confirm dialog', () => {
|
||||
assert.doesNotMatch(result.html, /data-mindspace-public-share-dialog-panel"/);
|
||||
assert.match(result.html, /color:#fff !important/);
|
||||
assert.match(result.html, /apiErrorBody/);
|
||||
assert.match(result.html, /redirectToMindSpaceLogin/);
|
||||
assert.match(result.html, /auth\/wechat\/authorize\?intent=login/);
|
||||
assert.match(result.html, /ALREADY_PUBLISHED/);
|
||||
assert.equal(result.scriptHashes.length, 1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user