优化
This commit is contained in:
@@ -3,6 +3,7 @@ import { resolve } from 'node:path'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
const source = readFileSync(resolve(process.cwd(), 'src/modules/inbounds/components/InboundWorkflowWorkspace.vue'), 'utf8')
|
||||
const measurementDialogSource = readFileSync(resolve(process.cwd(), 'src/modules/inbounds/measurement/InboundMeasurementDialog.vue'), 'utf8')
|
||||
|
||||
describe('InboundWorkflowWorkspace', () => {
|
||||
it('assembles every phase-two inbound domain behind one server-backed workspace', () => {
|
||||
@@ -88,9 +89,10 @@ describe('InboundWorkflowWorkspace', () => {
|
||||
})
|
||||
|
||||
it('uses semantic outlined or solid buttons for workflow launches and decisions', () => {
|
||||
expect(source).toContain('<el-button type="primary" @click="measurementDialogOpen = true">')
|
||||
expect(source).toContain('<el-button v-if="canViewMeasurement" type="primary" @click="measurementDialogOpen = true">')
|
||||
expect(source).toContain('<el-button type="primary" @click="reviewDialogOpen = true">')
|
||||
expect(source).toContain('type="primary" plain')
|
||||
expect(measurementDialogSource).toContain('type="primary"')
|
||||
expect(measurementDialogSource).toContain('plain')
|
||||
expect(source).toContain('type="danger" plain')
|
||||
expect(source).toContain('type="warning" plain')
|
||||
expect(source).toContain('<Pencil :size="16" />编辑测量数据')
|
||||
|
||||
Reference in New Issue
Block a user