앱 게임 연동 탭 Riot ID 표: 앱이 유저 목록을 바꾸면(users.updated → state.usersRev) 다시 받고, 고치는 중이 아닌 입력칸은 새 Riot ID 로 맞춤 (탭을 열어 둔 채 자동 갱신된 이름이 보이게) · 목 __gvrMockRename · 시험 · v1.11.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -94,10 +94,12 @@ test('발로란트·롤 어댑터: 가짜 Riot 서버로 경기 시작→채팅
|
||||
store.upsertUser({ id: 'friend', name: '민수', avatar: null });
|
||||
store.setAccounts('friend', [{ puuid: 'riotid:아직모름#KR1', riotId: '아직모름#KR1' }]);
|
||||
const before = live.filter((e) => e.type === 'users.updated').length;
|
||||
const revBefore = bus.usersRev;
|
||||
mock.st.names = { 'self-puuid-0001': ['새하늘', 'KR2'] };
|
||||
await until(() => store.listAccounts().some((a) => a.puuid === 'self-puuid-0001' && a.riot_id === '새하늘#KR2'), 5000, 'rename');
|
||||
assert.equal(store.userIdForPuuid('self-puuid-0001'), 'owner');
|
||||
assert.ok(live.filter((e) => e.type === 'users.updated').length > before, '사이트에 유저 목록 다시 보냄');
|
||||
assert.ok(bus.usersRev > revBefore, '앱 설정 창도 유저 목록을 다시 받게 (state.usersRev)');
|
||||
assert.ok(store.listAccounts().some((a) => a.user_id === 'friend' && a.riot_id === '아직모름#KR1'), 'puuid 모르는 계정은 그대로');
|
||||
|
||||
// ---- 롤
|
||||
|
||||
Reference in New Issue
Block a user