fix: open synastry path after adding other chart
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user