完成50%
This commit is contained in:
@@ -72,11 +72,11 @@ const run = async () => {
|
||||
await assertText(send, '汤文远', 'T03 did not load person 101')
|
||||
await assertText(send, '离世纪念', 'T03 did not expose the semantic deceased-state entry')
|
||||
await valueOf(send, 'document.querySelector(".member-status-entry").click()')
|
||||
await waitFor(send, 'location.hash.includes("/pages/tree/t08-member-states?genealogyId=1001&personId=101&state=deceased")', 'T03 status entry did not open the routed member state')
|
||||
await waitFor(send, 'location.hash.includes("/pages/tree/t08-member-states?genealogyId=1001&personId=101&sourceKey=T03")', 'T03 status entry did not open the routed member state')
|
||||
|
||||
await open(send, '/pages/tree/t03-member-profile', '?genealogyId=1001&personId=102', '.member-state--detail')
|
||||
await open(send, '/pages/tree/t03-member-profile', '?genealogyId=1001&personId=102', '.member-state--restricted')
|
||||
await assertText(send, '汤正国', 'T03 did not derive content from personId 102')
|
||||
await assertText(send, '隐私资料', 'T03 did not expose person 102 privacy entry')
|
||||
await assertText(send, '部分成员资料未公开', 'T03 did not fail closed for person 102 privacy status')
|
||||
|
||||
await open(send, '/pages/tree/t04-add-relative', '?genealogyId=1001&personId=101', '.add-state--form')
|
||||
await assertText(send, '为汤文远添加一位亲属', 'T04 did not derive the current member task')
|
||||
@@ -85,8 +85,8 @@ const run = async () => {
|
||||
await open(send, '/pages/tree/t04-add-relative', '?genealogyId=1001&mode=first', '.add-state--form')
|
||||
await assertText(send, '录入家谱中的第一位成员', 'T04 first-member mode did not render')
|
||||
|
||||
await open(send, '/pages/tree/t05-edit-member', '?genealogyId=1001&personId=102', '.edit-state--form')
|
||||
await assertText(send, '完善汤正国的生命记录', 'T05 did not load the selected member')
|
||||
await open(send, '/pages/tree/t05-edit-member', '?genealogyId=1001&personId=102', '.edit-state--no-permission')
|
||||
await assertText(send, '当前账号不能编辑这位成员', 'T05 did not fail closed for a privacy member')
|
||||
await open(send, '/pages/tree/t05-edit-member', '?state=no-permission&genealogyId=1001&personId=103', '.edit-state--no-permission')
|
||||
await assertText(send, '当前账号不能编辑这位成员', 'T05 permission state did not render')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user