SHA256
Исправить завершение регистрации и кнопку повтора
This commit is contained in:
@@ -12,6 +12,8 @@ test('Solana и Arweave используют единое завершение
|
||||
assert.match(emailView, /await completeRegistrationLogin\(\{\s*navigate,\s*keyBundle:\s*draft\.preGeneratedKeyBundle\s*\}\)/);
|
||||
assert.match(emailView, /if \(!draft\.dataItemId\) \{/);
|
||||
assert.match(paymentView, /authService\.resetConnection\(state\.entrySettings\.shineServer, \{ clearSessionContext: true \}\)/);
|
||||
assert.doesNotMatch(emailView, /const retry = document\.createElement\('button'\)/);
|
||||
assert.match(emailView, /confirm\.textContent = t\('screens\.registration_email_view\.text_009'\)/);
|
||||
});
|
||||
|
||||
test('после авторизации на завершении регистрации создаётся HEADER с актуальными логином и ключом', () => {
|
||||
@@ -31,6 +33,11 @@ test('новый вход восстанавливается на новом Web
|
||||
assert.match(authService, /this\.resetConnection\(this\.serverUrl, \{ clearSessionContext: true \}\);[\s\S]*?continue;/);
|
||||
});
|
||||
|
||||
test('после CreateAuthSession регистрация не запускает второй handshake на том же сокете', () => {
|
||||
assert.match(finish, /const resumedLogin = result\.login;[\s\S]*?authorizeSession\(\{[\s\S]*?storagePwd: resumedStoragePwd/);
|
||||
assert.doesNotMatch(finish, /await authService\.resumeSession\(/);
|
||||
});
|
||||
|
||||
// Проверяем выполнение настоящей функции с изолированными зависимостями:
|
||||
// ошибка HEADER не должна прерывать завершение регистрации.
|
||||
async function simulateCompletion({ headerFails = false } = {}) {
|
||||
|
||||
Reference in New Issue
Block a user