进行了一些小优化
This commit is contained in:
@@ -326,6 +326,7 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
|
||||
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');
|
||||
const userCenterCreditsCss = read('assets/css/routes/user-center/credits.css');
|
||||
const profileCredits = read('inc/helpers/user-center-renderers/profile-credits.php');
|
||||
const profileOrders = read('inc/helpers/user-center-renderers/profile-orders.php');
|
||||
const ordersCss = read('assets/css/routes/orders.css');
|
||||
@@ -362,6 +363,8 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
|
||||
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"\]/);
|
||||
assert.match(userCenterCreditsCss, /#panel-credits\.dashboard-panel\s*\{[^}]*background:\s*transparent;[^}]*box-shadow:\s*none;/);
|
||||
assert.match(userCenterCreditsCss, /\.uc-asset-tabs,\s*\.uc-asset-tabs\.aksrt-panel\s*\{[^}]*background:\s*var\(--surface-1,\s*#fff\);[^}]*border:[^;}]+;[^}]*box-shadow:[^;}]+;/);
|
||||
assert.doesNotMatch(profileCredits, /credits-signin\.php|data-aksrt-signin-calendar/);
|
||||
assert.match(profileOrders, /data-aksrt-orders-filter-panel hidden/);
|
||||
assert.match(profileOrders, /'status'\s*=>\s*\$_GET\['order_status'\]\s*\?\?\s*'all'/);
|
||||
|
||||
Reference in New Issue
Block a user