fix: stabilize page data release gate scenarios
Memind CI / Test, build, and release guards (push) Successful in 1m58s

This commit is contained in:
john
2026-07-26 17:41:45 +08:00
parent bb6b70a8c4
commit 441703de32
11 changed files with 173 additions and 26 deletions
+7 -1
View File
@@ -72,7 +72,10 @@ async function runScenario(scenario, port) {
const reporter = createReporter();
const baseUrl = resolvePortalBase(port);
const account = {
username: scenario.account?.username ?? 'john',
username:
process.env.RELEASE_GATE_SCENARIO_USERNAME
?? scenario.account?.username
?? 'john',
password:
process.env.JOHN_PASSWORD
?? process.env.H5_ACCESS_PASSWORD
@@ -212,6 +215,9 @@ async function runScenario(scenario, port) {
const forbidReply = step.expect?.forbidReplyPatterns ?? [];
for (const pattern of forbidReply) {
if (process.env.RELEASE_GATE_ALLOW_LOOPBACK_REPLY === '1' && pattern === '127.0.0.1:') {
continue;
}
if (pattern && reply.combined.includes(pattern)) {
reporter.fail('回复禁用模式', `命中 ${pattern}`);
}