feat: support desktop exams with strict answer text verification
This commit is contained in:
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user