From 8d4f191ed42a0f71da56b147f9f1c3db3d361bf1 Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Sat, 19 Feb 2022 13:51:19 +0800 Subject: [PATCH] [Feature][UI Next] Add e2e to security tenant manage page. (#8440) --- dolphinscheduler-ui-next/docs/e2e/security.md | 31 +++++++++---------- .../tenant-manage/components/tenant-modal.tsx | 5 +++ .../security/tenant-manage/index.module.scss | 4 --- .../views/security/tenant-manage/index.tsx | 28 +++++++++++------ .../views/security/tenant-manage/use-table.ts | 7 +++-- 5 files changed, 42 insertions(+), 33 deletions(-) diff --git a/dolphinscheduler-ui-next/docs/e2e/security.md b/dolphinscheduler-ui-next/docs/e2e/security.md index 16e37cd813..1fe3913a27 100644 --- a/dolphinscheduler-ui-next/docs/e2e/security.md +++ b/dolphinscheduler-ui-next/docs/e2e/security.md @@ -11,23 +11,20 @@ class: #### tenant manage -class: - -- [ ] items -- [ ] el-popconfirm -- [ ] el-button--primary -- [ ] tenantCode -- [ ] edit -- [ ] delete - -id: - -- [ ] btnCreateTenant -- [ ] inputTenantCode -- [ ] selectQueue -- [ ] inputDescription -- [ ] btnSubmit -- [ ] btnCancel +| check | class | +| ------------------ |--------------------| +| :white_check_mark: | items | +| | el-popconfirm | +| | el-button--primary | +| :white_check_mark: | tenant-code | +| :white_check_mark: | edit | +| :white_check_mark: | delete | +| :white_check_mark: | btn-create-tenant | +| :white_check_mark: | input-tenant-code | +| :white_check_mark: | select-queue | +| :white_check_mark: | input-description | +| :white_check_mark: | btn-submit | +| :white_check_mark: | btn-cancel | #### user manage diff --git a/dolphinscheduler-ui-next/src/views/security/tenant-manage/components/tenant-modal.tsx b/dolphinscheduler-ui-next/src/views/security/tenant-manage/components/tenant-modal.tsx index 5a7aac56b5..68b040e1be 100644 --- a/dolphinscheduler-ui-next/src/views/security/tenant-manage/components/tenant-modal.tsx +++ b/dolphinscheduler-ui-next/src/views/security/tenant-manage/components/tenant-modal.tsx @@ -101,6 +101,8 @@ const TenantModal = defineComponent({ show={this.showModalRef} onCancel={this.cancelModal} onConfirm={this.confirmModal} + confirmClassName='btn-submit' + cancelClassName='btn-cancel' > {{ default: () => ( @@ -119,6 +121,7 @@ const TenantModal = defineComponent({ path='tenantCode' >
-
- - {t('security.tenant.create_tenant')} - -
-
+ + {t('security.tenant.create_tenant')} + + - + -
+
- +
{ handleEdit(row) } @@ -120,7 +122,8 @@ export function useTable() { { circle: true, type: 'error', - size: 'small' + size: 'small', + class: 'delete' }, { icon: () => h(DeleteOutlined)