test(admin): 同步弹窗样式与预览挂载回归断言

This commit is contained in:
2026-10-21 07:45:36 +08:00
parent 0a1968a134
commit 876930b07e
3 changed files with 8 additions and 6 deletions
@@ -164,7 +164,7 @@ describe('LocationsView', () => {
expect(locationsSource).not.toContain('AppDrawer')
expect(locationsSource).not.toContain('FormSection')
expect(locationsSource).toContain('width="min(1000px, calc(100vw - 28px))"')
expect(densitySource).toContain('.admin-density-dialog.el-dialog .el-dialog__body { min-height: 0; overflow-y: auto;')
expect(densitySource).toContain('.admin-density-dialog.el-dialog > .el-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto;')
expect(locationsSource).toContain('.editor-field-grid { grid-template-columns: minmax(0, 1fr); }')
})
beforeEach(() => {
@@ -132,7 +132,7 @@ describe('PalletsView', () => {
expect(palletsSource).not.toContain('<AppDrawer')
expect(palletsSource).toContain('width="min(560px, calc(100vw - 28px))" class="pallet-editor-dialog admin-density-dialog admin-workbench is-dialog"')
expect(palletsSource).not.toContain('<el-drawer v-model="editorOpen"')
expect(densitySource).toContain('.admin-density-dialog.el-dialog .el-dialog__body { min-height: 0; overflow-y: auto;')
expect(densitySource).toContain('.admin-density-dialog.el-dialog > .el-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto;')
expect(palletsSource).toContain('.editor-field-grid { grid-template-columns: minmax(0, 1fr); }')
})
beforeEach(() => {