forked from wangziqi/gongxue-base
test: require full h5 interaction evidence
This commit is contained in:
@@ -209,6 +209,30 @@ assert.ok(
|
||||
'missing H5 interaction smoke should be reported as a blocker',
|
||||
);
|
||||
|
||||
const oldTaroInteractionCoverage = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
const item = evidence.checks.find(check => check.id === 'taro.h5-interaction-smoke');
|
||||
item.summary.pass = 26;
|
||||
return evidence;
|
||||
});
|
||||
assert.notEqual(oldTaroInteractionCoverage.status, 0, 'old 26-check H5 interaction evidence should fail launch gate');
|
||||
assert.ok(
|
||||
oldTaroInteractionCoverage.payload.checks?.some(item => item.id === 'check.taro.h5-interaction-smoke.summary' && item.status === 'blocker'),
|
||||
'old H5 interaction coverage should be reported as a blocker',
|
||||
);
|
||||
|
||||
const missingAdminWriteCoverage = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
const item = evidence.checks.find(check => check.id === 'taro.h5-interaction-smoke');
|
||||
item.summary.mockApi.keyRequests.platformAdminWrites = 0;
|
||||
return evidence;
|
||||
});
|
||||
assert.notEqual(missingAdminWriteCoverage.status, 0, 'H5 interaction evidence without platform admin writes should fail launch gate');
|
||||
assert.ok(
|
||||
missingAdminWriteCoverage.payload.checks?.some(item => item.id === 'check.taro.h5-interaction-smoke.summary' && item.status === 'blocker'),
|
||||
'missing platform admin write coverage should be reported as a blocker',
|
||||
);
|
||||
|
||||
const missingTaroReleaseManifest = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
evidence.checks = evidence.checks.filter(item => item.id !== 'taro.h5-release-manifest');
|
||||
|
||||
Reference in New Issue
Block a user