登录弹窗接入Toast
This commit is contained in:
@@ -22,6 +22,7 @@ test('modal and sign page use one renderer and one state machine', () => {
|
||||
assert.match(shared, /data-auth-panel="bind"/);
|
||||
assert.match(shared, /data-auth-panel="oauth"/);
|
||||
assert.match(scripts, /assets\/js\/auth\.js/);
|
||||
assert.match(scripts, /'aksrt-notyf', 'aksrt-runtime'/);
|
||||
assert.doesNotMatch(scripts, /modal-auth\.js|sign-register\.js/);
|
||||
assert.doesNotMatch(runtime, /signsubmit-loader|tbquire\(\['sign-register'\]\)|\.on\('click', '\.(?:signin|signup)-loader'/);
|
||||
assert.doesNotMatch(loader, /sign-register/);
|
||||
@@ -172,7 +173,12 @@ test('shared renderer contracts every configured authentication state', () => {
|
||||
assert.match(client, /aksrtAuthAutoUntil/);
|
||||
assert.match(client, /data-password-show/);
|
||||
assert.match(client, /pollQr/);
|
||||
assert.match(client, /window\.notyf\(escapeHtml\(text\), type \|\| 'info'\)/);
|
||||
assert.match(client, /showToast\('请先完成人机验证', 'warning'\)/);
|
||||
assert.match(client, /form\.noValidate = true/);
|
||||
assert.match(client, /form\.checkValidity\(\)[\s\S]*?field\.validationMessage/);
|
||||
assert.match(client, /window\.location\.assign\(authPageUrl/);
|
||||
assert.doesNotMatch(client + shared, /showMessage|data-auth-message|sign-message/);
|
||||
assert.match(settings, /invitation_mode/);
|
||||
assert.match(settings, /\['close', 'open', 'must'\]/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user