补齐固定旧版的浏览器逐笔写入对照并记录账务差异
This commit is contained in:
1 parent
e77588b337
commit
7d2007955f
39 files changed
+3653
-41
No files matched your search
@@ -18,6 +18,10 @@ if [ "$SKIP_BROWSER" = 0 ]; then
|
||||
else echo "缺少 e2e/node_modules/playwright,请先执行:(cd e2e && PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci)"; NAMES+=("浏览器流程(browser)"); RESULTS+=("FAIL"); TIMES+=("0s"); FAILED=1; fi
|
||||
fi
|
||||
if [ "$WITH_NEXT" = 1 ]; then
|
||||
reference_tmp=$(mktemp -d) || exit 1
|
||||
trap 'rm -rf "$reference_tmp"' EXIT
|
||||
LEDGER_REFERENCE_APP=$(node e2e/lib/write-reference.mjs "$reference_tmp") || exit 1
|
||||
export LEDGER_REFERENCE_APP
|
||||
# 已提交的 web/dist 必须与源码重新构建的结果一致(需先在 web/ 下 npm ci)。
|
||||
if [ -d "$APP/web/node_modules" ]; then
|
||||
run "新版构建与提交一致(web/dist)" bash -c 'cd web && npx vite build --logLevel error && git diff --quiet --exit-code -- dist && test -z "$(git ls-files --others --exclude-standard -- dist)"'
|
||||
@@ -25,6 +29,8 @@ if [ "$WITH_NEXT" = 1 ]; then
|
||||
run "新旧开单对照(parity)" node e2e/parity-create-order.mjs
|
||||
run "业务页面与旧版对照(parity-pages)" node e2e/parity-pages.mjs
|
||||
run "新版界面浏览器(browser-next)" node e2e/browser-next.mjs
|
||||
run "逐笔写入及路由覆盖" node e2e/parity-writes.mjs
|
||||
run "金额差错负控" node e2e/parity-writes.mjs --only settings --prove
|
||||
fi
|
||||
[ "$WITH_UNIT" = 1 ] && run "单元测试(node --test test/)" node --test test/
|
||||
echo; echo "════ 汇总 ════"
|
||||
|
||||
Reference in new issue
Block a user