fix(frontend): recover rectification and consultation retries
This commit is contained in:
@@ -102,6 +102,30 @@ test("server profile failures pause automatic rectification resume", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test("homepage rectification open failures always surface a visible recovery message", () => {
|
||||
const opening = page.slice(
|
||||
page.indexOf("async function openRectificationCase"),
|
||||
page.indexOf("async function openRectificationFromHomepage"),
|
||||
);
|
||||
|
||||
assert.match(
|
||||
opening,
|
||||
/code === "profile_incomplete"[\s\S]*?handleRectificationProfileIncomplete\(\)/,
|
||||
);
|
||||
assert.match(
|
||||
opening,
|
||||
/code === "invalid_open_request"[\s\S]*?setRectificationError\(/,
|
||||
);
|
||||
assert.match(
|
||||
opening,
|
||||
/catch \{[\s\S]*?setRectificationError\("生时校正会话暂时无法打开,请稍后重试。"\)/,
|
||||
);
|
||||
assert.match(
|
||||
page,
|
||||
/rectificationError && !rectificationSurfaceOpen && \([\s\S]*?role="alert"[\s\S]*?rectificationErrorMessage/,
|
||||
);
|
||||
});
|
||||
|
||||
test("account rehydration normalizes persisted ISO birth dates before completeness checks", () => {
|
||||
const profileReader = page.slice(
|
||||
page.indexOf("function readProfile"),
|
||||
|
||||
Reference in New Issue
Block a user