公开用户主页文章双列实现
This commit is contained in:
1 parent
c4e162839c
commit
5f01b3b316
3 files changed
+23
-2
No files matched your search
@@ -216,6 +216,10 @@ test('related posts, author page and widgets use their dedicated renderers', ()
|
||||
assert.match(resourceRelated, /aksrt_render_related_graphic_card/);
|
||||
assert.doesNotMatch(resourceRelated, /aksrt_render_post_list/);
|
||||
assert.match(authorPosts, /aksrt_render_post_list/);
|
||||
assert.match(authorPosts, /'type'\s*=>\s*'list'/);
|
||||
assert.match(authorPosts, /'no_author'\s*=>\s*true/);
|
||||
assert.match(authorPosts, /'no_margin'\s*=>\s*true/);
|
||||
assert.match(authorPosts, /'wrapper_class'\s*=>\s*'aksrt-user-home__post-list'/);
|
||||
assert.match(authorPosts, /aksrt_render_pagination/);
|
||||
assert.match(authorPosts, /'page_var'\s*=>\s*'posts_page'/);
|
||||
assert.doesNotMatch(authorPosts, /aksrt_render_profile_pagination/);
|
||||
@@ -307,6 +311,7 @@ test('profile routes load versioned leaf styles and keep dialogs hidden initiall
|
||||
assert.match(accountModals, /id="email-modal" class="aksrt-modal" hidden/);
|
||||
assert.match(userCenterJs, /function closeModal\(m\)[\s\S]*?m\.hidden = true;/);
|
||||
assert.match(userHomeCss, /\.aksrt-profile-details-modal\[hidden\]\s*\{\s*display:\s*none\s*!important;\s*\}/);
|
||||
assert.match(userHomeCss, /@media \(min-width: 992px\)[\s\S]*?\.aksrt-user-home #panel-posts \.aksrt-user-home__post-list \.posts-item\s*\{[^}]*display:\s*inline-flex;[^}]*width:\s*calc\(50% - 16px\);/);
|
||||
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"/);
|
||||
|
||||
Reference in new issue
Block a user