feat: support desktop exams with strict answer text verification

This commit is contained in:
薇星幻海
2026-10-10 06:39:36 +08:00
parent 3969c233b3
commit 3d7a1ffed0
16 changed files with 1137 additions and 187 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ function parseCSV(text) {
await page.evaluate(() => history.pushState({}, '', location.href.replace('flag=exercise', 'flag=exam')));
await page.waitForTimeout(1100); assert(await page.getByRole('button', { name: '导出 CSV', exact: true }).isDisabled());
assert.equal(await page.evaluate(() => window.answerClicks), 0);
console.log('PASS 缺题等待、考试页面不触发、不改变答题状态');
console.log('PASS 缺题等待、未知考试模式不触发、不改变答题状态');
await page.getByRole('switch', { name: '导出题库', exact: true }).uncheck();
assert(await page.getByRole('button', { name: '导出 CSV', exact: true, includeHidden: true }).isHidden());