优化
This commit is contained in:
@@ -6,8 +6,10 @@ const source = readFileSync(resolve(process.cwd(), 'src/modules/finance/pages/Fi
|
||||
const statementsSource = readFileSync(resolve(process.cwd(), 'src/modules/finance/pages/FinanceCustomerStatementsView.vue'), 'utf8')
|
||||
|
||||
describe('Finance formal settlement desktop presentation', () => {
|
||||
it('keeps settlement totals on the left and list actions on the right of the table toolbar', () => {
|
||||
it('keeps the title and actions in the toolbar and settlement totals before results', () => {
|
||||
expect(source).toContain('<template #toolbar-start>')
|
||||
expect(source).toContain('<h1>{{ title }}</h1>')
|
||||
expect(source).toContain('<template #before-results>')
|
||||
expect(source).toContain('<dl class="density-detail-overview settlement-summary" aria-label="结算汇总">')
|
||||
expect(source).toContain('<template #toolbar-actions>')
|
||||
expect(source).toContain('<div class="settlement-list-actions">')
|
||||
@@ -26,9 +28,9 @@ describe('Finance formal settlement desktop presentation', () => {
|
||||
}
|
||||
})
|
||||
|
||||
it('renders at most three permitted row actions as shared outlined text buttons', () => {
|
||||
it('renders at most three permitted row actions as shared text buttons', () => {
|
||||
expect(source.match(/key: 'actions', label: '操作', width: 250/g)).toHaveLength(2)
|
||||
expect(source).toContain('class="settlement-row-actions density-actions"')
|
||||
expect(source).toContain('class="settlement-row-actions density-actions row-actions admin-text-actions"')
|
||||
for (const action of ['openDetail(row)', 'openReceipt(row)', 'openPayment(row)']) expect(source).toContain('@click="' + action + '"')
|
||||
expect(source).toContain('data-tone="danger"')
|
||||
expect(source).toContain('class="density-action"')
|
||||
|
||||
Reference in New Issue
Block a user