编辑器存量 rubric 徽标/题型切换清理/分值输入修复(最终复核 R1-R3)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
5e4904742a
commit
5ce33f3edf
@@ -61,6 +61,18 @@ describe("QuestionList 结构化编辑", () => {
|
||||
expect(screen.getByText("AI 逐评分点判分(存量题,保留原评分点)")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("编辑存量无 judgeMode 字段的题显示 AI 判分徽标与必填参考解答语义", () => {
|
||||
render(
|
||||
<QuestionList
|
||||
value={[{ type: "solve", stem: "解方程", points: 10, reference: "x=2", rubric: [{ point: "过程", score: 6 }], explain: "e" }]}
|
||||
onChange={() => {}}
|
||||
/>,
|
||||
);
|
||||
fireEvent.click(screen.getByLabelText("编辑第 1 题"));
|
||||
expect(screen.getByText("AI 逐评分点判分(存量题,保留原评分点)")).toBeInTheDocument();
|
||||
expect(screen.getByText("参考解答(完整解题过程,展示给孩子)")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("题干为空保存时报错,不写入列表", async () => {
|
||||
const user = userEvent.setup();
|
||||
let saved: QuizQ[] = [];
|
||||
|
||||
Reference in New Issue
Block a user