From 9add74291916843ac8a916b7fbb4e1e3e2f1906a Mon Sep 17 00:00:00 2001 From: songjianet <1778651752@qq.com> Date: Tue, 15 Feb 2022 20:58:12 +0800 Subject: [PATCH] [Feature][UI Next] Add e2e to security token manage page. (#8392) --- dolphinscheduler-ui-next/docs/e2e/security.md | 27 +++++++++---------- .../token-manage/components/token-modal.tsx | 5 ++++ .../src/views/security/token-manage/index.tsx | 13 +++++++-- .../views/security/token-manage/use-table.ts | 4 ++- 4 files changed, 32 insertions(+), 17 deletions(-) diff --git a/dolphinscheduler-ui-next/docs/e2e/security.md b/dolphinscheduler-ui-next/docs/e2e/security.md index c69ea97274..72ee807b78 100644 --- a/dolphinscheduler-ui-next/docs/e2e/security.md +++ b/dolphinscheduler-ui-next/docs/e2e/security.md @@ -102,17 +102,16 @@ id: #### token manage -class: -- [ ] items -- [ ] el-popconfirm -- [ ] el-button--primary -- [ ] userName -- [ ] token -- [ ] edit -- [ ] delete - -id: -- [ ] btnCreateToken -- [ ] btnGenerateToken -- [ ] btnSubmit -- [ ] btnCancel +| check | class | +|--------------------|---------------------| +| :white_check_mark: | items | +| | el-popconfirm | +| | el-button--primary | +| :white_check_mark: | username | +| :white_check_mark: | token | +| :white_check_mark: | edit | +| :white_check_mark: | delete | +| :white_check_mark: | btn-create-token | +| :white_check_mark: | btn-generate-token | +| :white_check_mark: | btn-submit | +| :white_check_mark: | btn-cancel | diff --git a/dolphinscheduler-ui-next/src/views/security/token-manage/components/token-modal.tsx b/dolphinscheduler-ui-next/src/views/security/token-manage/components/token-modal.tsx index e0abcf9447..2dd8b8c2b6 100644 --- a/dolphinscheduler-ui-next/src/views/security/token-manage/components/token-modal.tsx +++ b/dolphinscheduler-ui-next/src/views/security/token-manage/components/token-modal.tsx @@ -139,6 +139,8 @@ const TokenModal = defineComponent({ confirmDisabled={ !this.model.userId || !this.model.expireTime || !this.model.token } + confirmClassName='btn-submit' + cancelClassName='btn-cancel' > {{ default: () => ( @@ -163,6 +165,7 @@ const TokenModal = defineComponent({ 'GENERAL_USER' && (
- + {t('security.token.create_token')}
@@ -129,7 +134,11 @@ const tokenManage = defineComponent({
- +
{ handleEdit(row) } @@ -111,7 +112,8 @@ export function useTable() { { circle: true, type: 'error', - size: 'small' + size: 'small', + class: 'delete' }, { icon: () => h(DeleteOutlined)