SHA256
Упростить полноэкранную регистрацию
This commit is contained in:
@@ -20,6 +20,23 @@ test('реальная почта и 256-символьный лимит сох
|
||||
assert.match(email, /confirmFreeRegistration\(/);
|
||||
assert.match(passwords, /PASSWORD_MAX_LENGTH = 256/);
|
||||
});
|
||||
test('пароль допускает один символ, а email можно изменить без устаревшего запроса', () => {
|
||||
const registration = read('../js/pages/register-view.js');
|
||||
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(email, /let emailRequestId = 0/);
|
||||
assert.match(email, /requestId !== emailRequestId/);
|
||||
assert.match(email, /emailRequestId \+= 1/);
|
||||
});
|
||||
test('старт регистрации использует иллюстрацию и русское название', () => {
|
||||
const intro = read('../js/pages/registration-intro-view.js');
|
||||
assert.match(intro, /registration-sunrise-space\.png/);
|
||||
assert.match(intro, /Добро пожаловать в Сияние/);
|
||||
assert.match(intro, /Ваши публикации, сообщения и лайки хранятся вечно/);
|
||||
assert.doesNotMatch(intro, /SHiNE\//);
|
||||
});
|
||||
test('экран поздравления объясняет различие статусов', () => {
|
||||
const finish = read('../js/pages/registration-success-view.js');
|
||||
assert.match(finish, /registrationSuccess\?\.flowType === 'paid'/);
|
||||
|
||||
Reference in New Issue
Block a user