From 995d9863ab96fb989ec02f7118f5efd59decb2b1 Mon Sep 17 00:00:00 2001 From: Qxisylolo Date: Mon, 11 Nov 2024 10:56:54 +0800 Subject: [PATCH] [workspace] Add test id for workspace multi-deletion button (#8833) * add test id for workspace deleteion button Signed-off-by: Qxisylolo * Changeset file for PR #8833 created/updated --------- Signed-off-by: Qxisylolo Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/8833.yml | 2 ++ .../workspace/public/components/workspace_list/index.tsx | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/8833.yml diff --git a/changelogs/fragments/8833.yml b/changelogs/fragments/8833.yml new file mode 100644 index 000000000000..922656d7d8b8 --- /dev/null +++ b/changelogs/fragments/8833.yml @@ -0,0 +1,2 @@ +fix: +- Adds test id for workspace multi-deletion button ([#8833](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8833)) \ No newline at end of file diff --git a/src/plugins/workspace/public/components/workspace_list/index.tsx b/src/plugins/workspace/public/components/workspace_list/index.tsx index 158713186c0d..baee010b73d6 100644 --- a/src/plugins/workspace/public/components/workspace_list/index.tsx +++ b/src/plugins/workspace/public/components/workspace_list/index.tsx @@ -347,7 +347,13 @@ export const WorkspaceListInner = ({ return ( isDashboardAdmin && ( <> - + Delete {selection.length} Workspace {deletedWorkspaces && deletedWorkspaces.length > 0 && (