等待后端更新接口
This commit is contained in:
@@ -18,6 +18,13 @@ test('内容发布页为全部家谱功能入口透传真实家谱上下文', ()
|
||||
});
|
||||
});
|
||||
|
||||
test('内容工作台在未选择家谱时使用统一的空上下文状态', () => {
|
||||
const page = read('profile-content.html');
|
||||
|
||||
assert.match(page, /api-state--empty[^>]*data-api-state="empty"/);
|
||||
assert.doesNotMatch(page, /api-empty/);
|
||||
});
|
||||
|
||||
test('家谱主页公开谱文、相册、视频、功德和祭祀活动入口并透传上下文', () => {
|
||||
const page = read('profile-family-home.html');
|
||||
|
||||
@@ -66,6 +73,6 @@ test('个人中心、我的家谱和当前家谱主页使用明确且可返回
|
||||
assert.match(account, /<a href="profile-families\.html">我的家谱<\/a>/);
|
||||
assert.match(families, /<nav class="profile-path" aria-label="当前位置">[\s\S]*个人中心[\s\S]*我的家谱/);
|
||||
assert.match(familyHome, /<nav class="profile-path" aria-label="当前位置">[\s\S]*profile-families\.html[\s\S]*data-family-home-context/);
|
||||
assert.match(familyHomeRuntime, /setText\('\[data-family-home-context\]', result\.overview\.genealogyName\)/);
|
||||
assert.match(familyHomeRuntime, /setText\('\[data-family-home-context\]', result\.genealogyName\)/);
|
||||
assert.doesNotMatch(coreHeaders, /返回中心|数字家谱/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user