style(admin): unify dialog layouts and dense readonly presentation
This commit is contained in:
@@ -685,6 +685,17 @@ describe('WeightOcrPanel confirmation behavior', () => {
|
||||
await openWeightDialog(wrapper)
|
||||
|
||||
await dialogWeightInput().setValue('286.125')
|
||||
const expand = document.body.querySelector<HTMLButtonElement>('button[aria-label="展开全屏"]')
|
||||
expect(expand).not.toBeNull()
|
||||
await new DOMWrapper(expand!).trigger('click')
|
||||
await flushPromises()
|
||||
expect(document.body.querySelector('.el-dialog.is-fullscreen')).not.toBeNull()
|
||||
expect(dialogWeightInput().element.value).toBe('286.125')
|
||||
const collapse = document.body.querySelector<HTMLButtonElement>('button[aria-label="退出全屏"]')
|
||||
await new DOMWrapper(collapse!).trigger('click')
|
||||
await flushPromises()
|
||||
expect(dialogWeightInput().element.value).toBe('286.125')
|
||||
expect(confirmWeightResult).not.toHaveBeenCalled()
|
||||
await dialogConfirmButton().trigger('click')
|
||||
await flushPromises()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user