const assert = require("assert");
const fs = require("fs");
const path = require("path");

const dialogPath = path.resolve(__dirname, "../../src/views/ccdiProject/components/ImportHistoryDialog.vue");
const source = fs.readFileSync(dialogPath, "utf8");

assert(source.includes('label="新项目名称"'), "应保留新项目名称字段");
assert(source.includes('label="备注"'), "应新增备注字段");
assert(source.includes('type="daterange"'), "应使用日期范围选择器");
assert(source.includes("data-multiselect") === false, "不应继续保留单选语义");
assert(source.includes("selectedProjectIds"), "应改为多选项目ID数组");

console.log("project-import-history-dialog-layout test passed");
