修改功能

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
+12 -9
View File
@@ -188,15 +188,17 @@ test('我的家谱页是可用的真实列表入口', () => {
assert.match(script, /result = await api\.genealogyQuota\(\);/);
});
test('家谱排序在未声明 PC 读取和保存契约时保持明确不可操作状态', () => {
test('家谱排序使用我的家谱响应并保存稳定 ID 顺序', () => {
const source = read('profile-families.html');
const apiClient = read('utils/ApiClient.js');
const verification = read('docs/验证20%记录.md');
assert.match(source, /class="module-card is-unavailable" aria-disabled="true">\s*<span class="icon">序<\/span>\s*<h3>家谱排序<\/h3>/);
assert.match(source, /当前 PC 家谱契约未提供自定义排序的读取或保存接口/);
assert.doesNotMatch(apiClient, /sortGenealogy|genealogySort/);
assert.match(verification, /家谱邀请、家谱删除、家谱排序、分享奖励/);
assert.match(source, /data-genealogy-sort-select/);
assert.match(source, /data-genealogy-sort-up/);
assert.match(source, /data-genealogy-sort-down/);
assert.match(source, /data-genealogy-sort-save/);
assert.match(apiClient, /saveGenealogyOrder/);
assert.match(verification, /分享奖励、推荐偏好仍保持不可操作/);
});
test('创建家谱页开放真实 PC 表单且不允许手填业务 ID', () => {
@@ -238,7 +240,7 @@ test('公共创建入口复用真实 PC 创建表单,不保留无效的静态
assert.match(source, /name="(?:ancestralHall|originPlace|addressDetail|intro|visibility|joinMode)"/);
assert.match(source, /data-region-picker-status role="status" aria-live="polite"/);
assert.match(source, /id="publicJoinMode"[^>]*aria-describedby="public-invite-mode-note"/);
assert.match(source, /当前 PC 未提供邀请码生成、发送或管理接口/);
assert.match(source, /创建完成后,可在家谱首页的“邀请家人”中生成一次性邀请链接/);
assert.match(source, /data-genealogy-create-submit/);
assert.match(source, /public\/js\/profile-common\.js/);
assert.match(source, /public\/js\/region-pages\.js/);
@@ -253,7 +255,7 @@ test('创建页保留合法邀请模式,但不把缺失的邀请码管理伪
[profileCreate, publicCreate].forEach((source) => {
assert.match(source, /<option value="2">邀请码加入<\/option>/);
assert.match(source, /当前 PC 未提供邀请码生成、发送或管理接口/);
assert.match(source, /创建完成后,可在家谱首页的“邀请家人”中生成一次性邀请链接/);
});
assert.match(profileCreate, /id="joinMode"[^>]*aria-describedby="family-invite-mode-note"/);
assert.match(publicCreate, /id="publicJoinMode"[^>]*aria-describedby="public-invite-mode-note"/);
@@ -333,8 +335,9 @@ test('小屏导航提供统一入口,并且所有家谱内链接继续透传
assert.match(common, /data-profile-mobile-menu-toggle/);
assert.match(common, /data-profile-mobile-menu/);
assert.match(common, /profile-family-home\.html" data-genealogy-context-link/);
assert.match(common, /profile-family-admin\.html" data-genealogy-context-link/);
assert.match(common, /href: 'profile-family-home\.html', context: true/);
assert.match(common, /href: 'profile-family-admin\.html', context: true/);
assert.match(common, /renderWorkspaceNavigation\(navigation, currentPage\)/);
assert.match(css, /\.profile-mobile-menu\.is-open/);
assert.match(css, /\.profile-current-genealogy/);
});