style: 统一镜头生产阶段操作区间距

This commit is contained in:
GouJ committed 2026-09-23 09:37:48 +08:00
1 parent de26dd0c19
commit 3888ca0538
2 files changed
+21 -7

No files matched your search

@@ -1,5 +1,6 @@
import { flushPromises, mount, type VueWrapper } from '@vue/test-utils'
import { afterEach, describe, expect, it, vi } from 'vitest'
import { readFileSync } from 'node:fs'
import { mediaAssetUrl } from '@/lib/assets'
import KeyframeDialog from '@/features/production/components/KeyframeDialog.vue'
import { productionApi } from '@/features/production/api'
@@ -29,6 +30,14 @@ function button(label: string): HTMLButtonElement {
}
describe('镜头生产数据契约', () => {
it('三个生产阶段使用统一的块级操作区,保证卡片、按钮和下一阶段之间有稳定间距', () => {
const source = readFileSync('src/features/production/components/ShotProductionAssets.vue', 'utf8')
expect(source.match(/class="production-stage-actions"/g)).toHaveLength(3)
expect(source).toMatch(
/\.production-stage-actions\s*\{[^}]*mt-4[^}]*min-h-\[34px\][^}]*items-center[^}]*gap-3/
)
})
it('可选尺寸必须成对留空或填写正整数', () => {
expect(validOptionalSize('', '')).toBe(true)
expect(validOptionalSize(1920, 1080)).toBe(true)