fix: open synastry path after adding other chart

This commit is contained in:
732642856
2026-07-20 17:03:29 +08:00
parent 5579dcd483
commit c92746d97a
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -1463,6 +1463,7 @@ export default function Home() {
setAccountError("");
setProfileNotice("已保存到云端星盘库。");
}
await draftSynastryQuestionFromChart(record);
}
async function deleteOtherChart(recordId: string) {
@@ -20,6 +20,12 @@ test("other chart save falls back to local library when cloud sync fails", () =>
assert.doesNotMatch(source, /deleteOtherChart[\s\S]{0,500}void deleteCloudChartProfile/);
});
test("adding another chart immediately opens the synastry path", () => {
assert.match(source, /async function saveOtherChart[\s\S]{0,1400}await draftSynastryQuestionFromChart\(record\)/);
assert.match(source, /用于合盘/);
assert.match(source, /\/api\/synastry/);
});
test("a successful cloud read replaces stale local other charts", () => {
assert.match(
source,