const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const page = fs.readFileSync( path.resolve(__dirname, "../src/views/analysis-of-students/dialogue.vue"), "utf8", ); assert.match(page, /content="导出教案"/); assert.match(page, /icon-class="导出"/); assert.doesNotMatch(page, /v-copyText="item\.content"/); assert.match(page, /function exportTeachingPlan\(item\)/); assert.match(page, /marked\.parse\(item\.content/); assert.match(page, /table-layout:\s*fixed/); assert.match(page, /th, td\s*\{[^}]*word-break:\s*break-word/); console.log("AI lesson plan export static checks passed");