[BUG][UI Next]fix the problem about Batch delete not working (#9080)

* fix the problem about Batch delete not working while click the border of the button

* try to fix e2e

Co-authored-by: Jiajie Zhong <zhongjiajie955@hotmail.com>
subscribe-dev-mailing-list
labbomb 2022-03-24 14:43:02 +08:00 committed by GitHub
parent 926fad861e
commit da2e85e9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -47,7 +47,6 @@ public final class WorkflowDefinitionTab extends NavBarPage implements ProjectDe
@FindBys({
@FindBy(className = "btn-delete-all"),
@FindBy(className = "n-button__content"),
@FindBy(tagName = "span")
})
private WebElement buttonDeleteAll;

View File

@ -176,19 +176,19 @@ export default defineComponent({
{{
default: () => t('project.workflow.delete'),
trigger: () => (
<NButton
tag='div'
type='primary'
disabled={this.checkedRowKeys.length <= 0}
class='btn-delete-all'
>
<NPopconfirm onPositiveClick={this.batchDeleteWorkflow}>
{{
default: () => t('project.workflow.delete_confirm'),
trigger: () => t('project.workflow.delete')
trigger: () => (
<NButton
tag='div'
type='primary'
disabled={this.checkedRowKeys.length <= 0}
class='btn-delete-all'
>{t('project.workflow.delete')}</NButton>
)
}}
</NPopconfirm>
</NButton>
)
}}
</NTooltip>