fix(settings): repair phone binding modal
This commit is contained in:
1 parent
3028ab6f0c
commit
029df27b1d
4 files changed
+38
-25
No files matched your search
@@ -287,9 +287,11 @@ test('article visual matrix pins every breakpoint, state and strict threshold',
|
||||
test('profile routes load versioned leaf styles and keep dialogs hidden initially', () => {
|
||||
const scripts = read('src/Core/ScriptsPart1b.php');
|
||||
const accountModals = read('inc/helpers/user-center-renderers/profile-account-modals.php');
|
||||
const settingsSecurity = read('inc/helpers/user-center-renderers/settings-security.php');
|
||||
const userCenterJs = read('assets/js/routes/user-center.js');
|
||||
const userHomeCss = read('assets/css/routes/user-home.css');
|
||||
const profileLayoutCss = read('assets/css/routes/profile/layout.css');
|
||||
const profileModalsCss = read('assets/css/routes/profile/modals.css');
|
||||
|
||||
assert.ok(scripts.includes("$profile_parts = ['layout', 'lists', 'modals'];"));
|
||||
for (const part of ['user-center/shell', 'user-center/credits', 'user-center/vip', 'user-center/level', 'user-center/settings', 'revenue', 'user-center/revenue', 'user-center/revenue-earnings', 'user-center/responsive']) {
|
||||
@@ -307,4 +309,9 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
|
||||
assert.match(userHomeCss, /\.aksrt-profile-details-modal\[hidden\]\s*\{\s*display:\s*none\s*!important;\s*\}/);
|
||||
assert.match(profileLayoutCss, /\.aksrt-cover-menu__panel\[hidden\]\s*\{\s*display:\s*none\s*!important;\s*\}/);
|
||||
assert.match(profileLayoutCss, /#aksrt-bg-file-input\[hidden\],[\s\S]*?#aksrt-avatar-file-input\[hidden\][\s\S]*?display:\s*none\s*!important;/);
|
||||
assert.match(settingsSecurity, /data-modal="email-modal"[\s\S]*?<\/button>\s*<\/div>\s*<div class="security-action-item">[\s\S]*?data-modal="phone-modal"/);
|
||||
assert.match(accountModals, /id="phone-modal" class="aksrt-modal" hidden role="dialog"[\s\S]*?aksrt-modal__overlay" data-close-modal[\s\S]*?aksrt-modal__box/);
|
||||
assert.match(accountModals, /id="phone-modal"[\s\S]*?class="modal-field modal-field--code"[\s\S]*?class="code-input-group"[\s\S]*?class="aksrt-modal__footer"/);
|
||||
assert.doesNotMatch(accountModals, /id="phone-modal"[\s\S]*?aksrt-modal__(?:dialog|body|actions)/);
|
||||
assert.match(profileModalsCss, /\.modal-field input\[type="tel"\]/);
|
||||
});
|
||||
Reference in new issue
Block a user