重构 Kiro 注册页面状态收养

This commit is contained in:
QLHazyCoder
2026-05-20 20:42:29 +08:00
parent 065607bc04
commit 59b7d77b5d
5 changed files with 618 additions and 70 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ test('kiro state session patch accepts canonical nested runtime updates', () =>
kiroRuntime: {
session: {
currentStage: 'register',
pageState: 'otp_page',
pageState: 'register_otp_page',
pageUrl: 'https://signin.aws/register',
},
register: {
@@ -92,7 +92,7 @@ test('kiro state session patch accepts canonical nested runtime updates', () =>
});
assert.equal(patch.kiroRuntime.session.currentStage, 'register');
assert.equal(patch.kiroRuntime.session.pageState, 'otp_page');
assert.equal(patch.kiroRuntime.session.pageState, 'register_otp_page');
assert.equal(patch.kiroRuntime.session.pageUrl, 'https://signin.aws/register');
assert.equal(patch.kiroRuntime.register.email, 'aws-user@example.com');
assert.equal(patch.kiroRuntime.register.fullName, 'Ada Lovelace');