恢复币安注入提供者列表但添加 WalletConnect 提示,更新支付测试

This commit is contained in:
2569718930@qq.com
2026-05-20 19:48:13 +08:00
parent 8ba9567f64
commit 84a2d4ce06
2 changed files with 16 additions and 5 deletions
@@ -32,4 +32,15 @@ export function runTests() {
!/STATIC_ASSETS\s*=\s*\[[^\]]*["']\/_next\//s.test(serviceWorkerSource),
"service worker must not cache-first the whole /_next/ tree; stale chunks break checkout after deploys",
);
assert(
!/label\.toLowerCase\(\)\.includes\(["']binance["']\)\)\s*return/.test(
accountCenterSource,
),
"Binance Web3 Wallet injected provider must remain available for browser-extension binding",
);
assert(
accountCenterSource.includes("Binance 扩展已绑定") &&
accountCenterSource.includes("如支付卡住,请优先使用 WalletConnect 扫码支付"),
"Binance extension binding must show a WalletConnect fallback hint for payment stability",
);
}