This commit is contained in:
2026-09-02 10:04:21 +08:00
parent 4f3b83f16d
commit e5e412682c
10 changed files with 41 additions and 22 deletions
@@ -23,6 +23,8 @@ test('implements profile view, edit, save and cancel states', () => {
assert.match(viewSource, /function cancelEditing\(\)/)
assert.match(viewSource, /async function saveProfile\(\)/)
assert.match(viewSource, /请在“登录标识”中修改/)
assert.match(viewSource, /<dt>登录手机号<\/dt><dd>\{\{ auth\.profile\.phone/)
assert.doesNotMatch(viewSource, /<dt>联系电话<\/dt><dd>\{\{ auth\.profile\.phone/)
assert.match(viewSource, /企业归属由平台审核关系确定/)
assert.match(authSource, /async function savePersonalProfile\(/)
assert.match(viewSource, /await auth\.savePersonalProfile/)
@@ -38,6 +40,8 @@ test('changes username and mobile with current-password verification then clears
assert.match(viewSource, /error\.code === 'A0401'/)
assert.match(viewSource, /auth\.clearSession\(\)/)
assert.match(viewSource, /reason: 'identifiers-updated'/)
assert.match(viewSource, /label="登录手机号" prop="phone"/)
assert.match(viewSource, /全部登录会话都会立即退出/)
assert.doesNotMatch(viewSource, /auth\.logout\(\)[\s\S]*identifiers-updated/)
})