/* Real DOM exam evidence and submit-state tests. No business scripts or requests. */ 'use strict'; const assert = require('node:assert/strict'); const fs = require('node:fs'); const path = require('node:path'); const { chromium } = require('playwright'); const rootDir = path.resolve(__dirname, '..'); const modules = ['question-bank-core.js', 'bank-store.js', 'answer-matcher.js', 'answer-runner.js', 'exam-controller.js']; function paperHTML(total = 25) { const questions = Array.from({ length: total }, (_, i) => `
[单选] ${i + 1}. 安全核对题${i + 1}应该怎样操作?(${100 / total}分)
' + (qaModel.unansweredWarning ? '尚有 1 题未答,是否确认交卷?' : '是否确认交卷?') + '