feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
@@ -186,13 +186,10 @@ test('post-card CSS owns the exact desktop and 767/640 responsive matrix', () =>
|
||||
test('article metadata owns its flex and SVG contracts on every list route', () => {
|
||||
const css = read('assets/css/frontend/post-card.css');
|
||||
const scripts = read('src/Core/ScriptsPart1c.php');
|
||||
const svgEnqueue = scripts.slice(
|
||||
scripts.indexOf("'aksrt-svg-icon',"),
|
||||
scripts.indexOf("'aksrt-svg-icon-helper',")
|
||||
);
|
||||
const loader = read('assets/vendor/zibll/js/loader.js');
|
||||
|
||||
assert.match(svgEnqueue, /\['jquery'\]/);
|
||||
assert.match(svgEnqueue, /true\s*\/\/ load after <body> exists/);
|
||||
assert.doesNotMatch(scripts, /aksrt-svg-icon|svg-icon-helper/);
|
||||
assert.match(loader, /'svg-icon'\s*:\s*'svg-icon'/);
|
||||
assert.match(css, /\.posts-item\.flex,[\s\S]*?\.posts-mini \.flex\s*\{[^}]*display:\s*flex;/);
|
||||
assert.match(css, /\.posts-item \.flex\.xx,[\s\S]*?\.posts-mini \.flex\.xx\s*\{[^}]*flex-direction:\s*column;/);
|
||||
assert.match(css, /\.posts-item \.flex\.ac,[\s\S]*?\.posts-mini \.flex\.ac\s*\{[^}]*align-items:\s*center;/);
|
||||
@@ -250,7 +247,8 @@ test('AJAX pagination can recover, caps auto loading and rehydrates appended med
|
||||
assert.doesNotMatch(homepage, /href="javascript:;" class="ajax-next aksrt-load-more-btn"/);
|
||||
assert.match(ajaxList, /if \(link\.closest\("\[data-aksrt-pagination\], \.aksrt-comment-pagination"\)\) return;/);
|
||||
assert.match(media, /thumb-dplayer-playing/);
|
||||
assert.match(media, /data-post-thumb-slider/);
|
||||
assert.doesNotMatch(media, /new Swiper|data-post-thumb-slider/);
|
||||
assert.match(read('assets/vendor/zibll/js/main.min.js'), /new-swiper/);
|
||||
assert.match(media, /data-post-thumb-video/);
|
||||
assert.match(media, /window\.Grade\(container/);
|
||||
assert.match(media, /linear-gradient\(135deg/);
|
||||
|
||||
@@ -190,7 +190,7 @@ test('notyf CSS and WordPress enqueue match the reference contract', () => {
|
||||
|
||||
assert.match(scripts, /'aksrt-notyf',[\s\S]*?'\/assets\/js\/notyf\.js',[\s\S]*?\['jquery'\]/);
|
||||
assert.match(scripts, /'aksrt-runtime',[\s\S]*?\['aksrt-rehydrate', 'aksrt-notyf'\]/);
|
||||
assert.match(scripts, /'\/assets\/css\/frontend\/notyf\.css',[\s\S]*?'aksrt-font-awesome-5-v4-shims'/);
|
||||
assert.match(scripts, /'\/assets\/css\/frontend\/notyf\.css',[\s\S]*?'_fontawesome'/);
|
||||
});
|
||||
|
||||
test('balance center actions use direct fixed-id notyf flows', () => {
|
||||
|
||||
Reference in New Issue
Block a user