优化
This commit is contained in:
@@ -74,6 +74,14 @@ enableAutoUnmount(afterEach)
|
||||
afterAll(() => vi.unstubAllGlobals())
|
||||
|
||||
describe('InternalUsersView platform internal user management', () => {
|
||||
it('renders row business actions as colored outlined buttons with prototype icons', () => {
|
||||
expect(internalUsersSource).toContain('size="small" plain type="primary" @click="openEdit')
|
||||
expect(internalUsersSource).toContain('size="small" plain :type="(row as PlatformManagedUser).status')
|
||||
expect(internalUsersSource).toContain('<Pencil :size="15" />编辑')
|
||||
expect(internalUsersSource).toContain('<Power :size="15" />')
|
||||
expect(internalUsersSource).not.toContain('v-if="canChangeStatus" link')
|
||||
})
|
||||
|
||||
it('uses the prototype-sized centered editor with a scrollable body and mobile single column', () => {
|
||||
expect(internalUsersSource).toContain('width="min(650px, calc(100vw - 28px))"')
|
||||
expect(internalUsersSource).toContain(':global(.internal-user-editor-dialog .el-dialog__body) { min-height: 0; overflow-y: auto; }')
|
||||
|
||||
Reference in New Issue
Block a user