修复顶部多功能组件搜索框的两个问题
This commit is contained in:
@@ -190,6 +190,17 @@ test('footer brand icons keep the Brands font when legacy fa prefix is present',
|
||||
assert.match(icons, /'wechat'\s*=>\s*'fa fab fa-weixin'/)
|
||||
})
|
||||
|
||||
test('header multifunction search keeps focus and submit alignment route-independent', () => {
|
||||
assert.match(
|
||||
frontendBaseCss,
|
||||
/\.header-slider-search \.line-form-input:focus,[\s\S]*?\.header-slider-search \.line-form-input:focus-visible\s*\{[^}]*border:\s*0;[^}]*outline:\s*0;[^}]*box-shadow:\s*none;/,
|
||||
)
|
||||
assert.match(
|
||||
frontendBaseCss,
|
||||
/\.header-slider-search \.line-form \.abs-right\s*\{[^}]*position:\s*absolute;[^}]*right:\s*0\.7em;[^}]*top:\s*50%;[^}]*transform:\s*translateY\(-50%\);[^}]*margin-top:\s*0;/,
|
||||
)
|
||||
})
|
||||
|
||||
test('save contract rejects invalid input and round-trips canonical nested values', () => {
|
||||
const result = spawnSync(process.env.PHP_BINARY || 'php', [path.join(__dirname, 'page-display-save-harness.php')], {
|
||||
cwd: root,
|
||||
|
||||
Reference in New Issue
Block a user