Улучшить ввод пароля при входе и регистрации

This commit is contained in:
AidarKC
2026-11-21 17:14:46 +03:00
parent 8ac8f04128
commit 653015b2e7
11 changed files with 351 additions and 93 deletions
@@ -26,7 +26,10 @@ test('пароль допускает один символ, а email можно
const email = read('../js/pages/registration-email-view.js');
assert.match(registration, /value\.length < 1/);
assert.doesNotMatch(registration, /value\.length < 12/);
assert.match(registration, /input\.type = 'text'/);
assert.match(registration, /createExpandablePasswordTextarea\(\)/);
const passwordField = read('../js/components/visible-password-field.js');
assert.match(passwordField, /createExpandablePasswordTextarea/);
assert.match(passwordField, /input\.tagName === 'TEXTAREA'/);
assert.match(email, /let emailRequestId = 0/);
assert.match(email, /requestId !== emailRequestId/);
assert.match(email, /emailRequestId \+= 1/);