列表增强: 快捷标签页(全部/今日/有效人员/推荐/待定/已打招呼), 当天数据高亮+今徽章, 日期按北京时间显示, 导出同步支持
This commit is contained in:
@@ -61,6 +61,17 @@ const sleep = (ms) => new Promise(r => setTimeout(r, ms));
|
||||
const kwOk = await p.evaluate(() => document.querySelectorAll('#tbody tr').length >= 0);
|
||||
ok('关键词筛选不报错', kwOk);
|
||||
|
||||
console.log('== 4b. 快捷标签页 ==');
|
||||
await p.evaluate(() => quickTab('valid')); await sleep(700);
|
||||
const validOk = await p.evaluate(() => {
|
||||
const rows = [...document.querySelectorAll('#tbody tr')];
|
||||
return rows.length > 0 && rows.every(tr => tr.textContent.includes('推荐') || tr.textContent.includes('待定'));
|
||||
});
|
||||
ok('"有效人员"页全部为推荐/待定', validOk);
|
||||
const todayRows = await p.evaluate(async () => { quickTab('today'); await new Promise(r => setTimeout(r, 600)); return document.querySelectorAll('#tbody tr.today').length; });
|
||||
ok(`"今日"页当天高亮行(${todayRows})`, todayRows >= 0);
|
||||
await p.evaluate(() => quickTab('')); await sleep(500);
|
||||
|
||||
console.log('== 5. 候选人详情弹窗 ==');
|
||||
await p.evaluate(() => document.querySelector('#tbody tr')?.click()); await sleep(800);
|
||||
ok('弹窗打开且含简历全文', (await $('#detailBody').innerText()).includes('简历全文'));
|
||||
|
||||
Reference in New Issue
Block a user