From b5c6e83db135b64eea22abe21f2ba598bb9373a1 Mon Sep 17 00:00:00 2001 From: Vault Automation Date: Fri, 13 Mar 2026 23:14:55 -0400 Subject: [PATCH] VAULT-42410 - Refactored empty state component for kmip directory (#12806) (#13020) * VAULT-42410 - refactored empty state component for kmip directory * added data-test attributes * fixed failing tests Co-authored-by: mohit-hashicorp --- .../addon/components/page/configuration.hbs | 8 +++---- .../addon/components/page/credentials.hbs | 24 +++++++++++++------ .../addon/components/page/scope/roles.hbs | 24 +++++++++++++------ ui/lib/kmip/addon/components/page/scopes.hbs | 24 +++++++++++++------ ui/tests/pages/components/list-view.js | 3 ++- 5 files changed, 57 insertions(+), 26 deletions(-) diff --git a/ui/lib/kmip/addon/components/page/configuration.hbs b/ui/lib/kmip/addon/components/page/configuration.hbs index 87ce6b75d8..0b6a12e318 100644 --- a/ui/lib/kmip/addon/components/page/configuration.hbs +++ b/ui/lib/kmip/addon/components/page/configuration.hbs @@ -50,8 +50,8 @@ {{else}} - + + + + {{/if}} \ No newline at end of file diff --git a/ui/lib/kmip/addon/components/page/credentials.hbs b/ui/lib/kmip/addon/components/page/credentials.hbs index 892196341b..f9a19536c8 100644 --- a/ui/lib/kmip/addon/components/page/credentials.hbs +++ b/ui/lib/kmip/addon/components/page/credentials.hbs @@ -95,13 +95,23 @@ {{else}} {{#if @filterValue}} - + + + {{else}} - - - + + + + + + + {{/if}} {{/if}} \ No newline at end of file diff --git a/ui/lib/kmip/addon/components/page/scope/roles.hbs b/ui/lib/kmip/addon/components/page/scope/roles.hbs index f1a80b6253..7a09fc1614 100644 --- a/ui/lib/kmip/addon/components/page/scope/roles.hbs +++ b/ui/lib/kmip/addon/components/page/scope/roles.hbs @@ -106,13 +106,23 @@ {{else}} {{#if @filterValue}} - + + + {{else}} - - - + + + + + + + {{/if}} {{/if}} \ No newline at end of file diff --git a/ui/lib/kmip/addon/components/page/scopes.hbs b/ui/lib/kmip/addon/components/page/scopes.hbs index ea9ec1de51..c6a6b95d14 100644 --- a/ui/lib/kmip/addon/components/page/scopes.hbs +++ b/ui/lib/kmip/addon/components/page/scopes.hbs @@ -94,13 +94,23 @@ {{else}} {{#if @filterValue}} - + + + {{else}} - - - + + + + + + + {{/if}} {{/if}} \ No newline at end of file diff --git a/ui/tests/pages/components/list-view.js b/ui/tests/pages/components/list-view.js index bec4c1844b..39ed59f5c0 100644 --- a/ui/tests/pages/components/list-view.js +++ b/ui/tests/pages/components/list-view.js @@ -4,9 +4,10 @@ */ import { text, isPresent, collection, clickable } from 'ember-cli-page-object'; +import { GENERAL } from 'vault/tests/helpers/general-selectors'; export default { - isEmpty: isPresent('[data-test-component="empty-state"]'), + isEmpty: isPresent(GENERAL.emptyStateTitle), listItemLinks: collection('[data-test-list-item-link]', { text: text(), click: clickable(),