修改功能

This commit is contained in:
2026-08-29 19:06:07 +08:00
parent f94c652c7c
commit aaed0584b1
142 changed files with 6176 additions and 869 deletions
+11 -10
View File
@@ -108,22 +108,23 @@ test('个人中心将参考账户与家谱能力映射到 PC 工作台,未声
assert.match(profile, /data-logout-open/);
assert.match(services, /href="help\.html"/);
assert.match(services, /href="about\.html"/);
assert.match(services, /应用分享与收益[\s\S]+?当前不提供不可用的跳转入口/);
assert.match(services, /个性化推荐[\s\S]+?暂不能设置推荐开关/);
assert.match(services, /href="profile-earnings\.html"[\s\S]+?查看推广收益、可用余额、流水和提现记录/);
assert.match(services, /个性化推荐[\s\S]+?推荐设置正在完善,目前不会保存开关状态/);
assert.doesNotMatch(services, /data-(?:share|withdraw|recommendation)-(?:form|toggle)/);
assert.doesNotMatch(share, /data-feature-status="pending"|pending-pages\.js|data-(?:share|withdraw)-(?:form|toggle)/);
assert.match(share, /当前 PC 未声明应用分享、奖励、收益或提现的正式接口/);
assert.match(familyHome, /class="module-card is-unavailable" aria-disabled="true">\s*<span class="icon">邀<\/span>\s*<h3>邀请家人<\/h3>/);
assert.match(familyHome, /重要证件[\s\S]+?暂不能查看或保存/);
assert.match(familyHome, /删除家谱[\s\S]+?暂不能查看或执行删除操作/);
assert.doesNotMatch(familyHome, /data-genealogy-delete|deleteGenealogy/);
assert.match(share, /应用邀请暂以移动端为主;这里可查看推广收益、流水和提现记录/);
assert.match(familyHome, /href="profile-invite\.html"[^>]*data-family-home-management/);
assert.match(familyHome, /href="profile-documents\.html"/);
assert.match(familyHome, /href="profile-family-settings\.html"[^>]*data-family-home-management/);
assert.match(content, /亲友往来(贺礼簿)/);
assert.match(content, /备忘录(家族恩人)/);
assert.doesNotMatch(apiClient, /\/pages\/(?:mine|index)\//);
assert.doesNotMatch(apiClient, /deleteGenealogy/);
assert.doesNotMatch(apiClient, /(?:withdrawal|shareReward|recommendationPreference|documentRecords)/);
assert.match(verification, /资料提醒、家谱邀请、家谱删除、家谱排序、分享奖励、推广收益与提现/);
assert.match(mapping, /`Jiapu-App` 只作为产品信息架构参考/);
assert.match(apiClient, /genealogyProfileReminders|issueGenealogyInvitation|permanentlyDeleteGenealogy/);
assert.match(apiClient, /createEarningWithdrawal|personDocuments|vipPaymentStatus/);
assert.doesNotMatch(apiClient, /shareReward|recommendationPreference/);
assert.match(verification, /资料提醒、家谱邀请、重要证件、家谱生命周期、推广收益与提现、VIP 微信扫码支付/);
assert.match(mapping, /参考项目固定为 `C:\\Users\\Rain\\Desktop\\job\\Jiapu-App`,只用于核对产品信息架构/);
['profile-data.html', 'profile-security.html', 'profile-family-home.html', 'profile-tree.html', 'profile-feed.html', 'profile-services.html'].forEach((page) => {
assert.match(mapping, new RegExp('`' + page.replace('.', '\\.') + '`'));
assert.equal(fs.existsSync(path.join(root, page)), true, `映射页面不存在:${page}`);