From 04783c44c22de7ef4abe183c5f19b4136305e5f8 Mon Sep 17 00:00:00 2001
From: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Date: Tue, 17 Apr 2018 11:32:22 +0300
Subject: sdc-ui buttons fix

Issue-ID: SDC-1237
Change-Id: I4912c7f9e81849ff68a4a5d432bf844f97cf031e
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
---
 .../onboarding/onboard/filter/FilterComponents.jsx       | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

(limited to 'openecomp-ui/src/sdc-app/onboarding/onboard/filter/FilterComponents.jsx')

diff --git a/openecomp-ui/src/sdc-app/onboarding/onboard/filter/FilterComponents.jsx b/openecomp-ui/src/sdc-app/onboarding/onboard/filter/FilterComponents.jsx
index 65ec733fd5..b114941a3c 100644
--- a/openecomp-ui/src/sdc-app/onboarding/onboard/filter/FilterComponents.jsx
+++ b/openecomp-ui/src/sdc-app/onboarding/onboard/filter/FilterComponents.jsx
@@ -38,14 +38,21 @@ export const ItemStatus = ({ data, onDataChanged, byVendorView }) => (
     </Input>
 );
 
-const FilterList = ({ title, items, groupKey, onDataChanged, data }) => {
+const FilterList = ({
+    title,
+    items,
+    groupKey,
+    onDataChanged,
+    data,
+    dataTestId
+}) => {
     let onChange = value => {
         let obj = {};
         obj[groupKey] = { ...data[groupKey], ...value };
         onDataChanged(obj);
     };
     return (
-        <Accordion title={title}>
+        <Accordion defaultExpanded dataTestId={dataTestId} title={title}>
             <Checklist items={items} onChange={onChange} />
         </Accordion>
     );
@@ -73,13 +80,14 @@ export const EntityType = ({ data, onDataChanged }) => {
         },
         {
             label: i18n('VLM'),
-            dataTestId: 'catalog-ilter-type-vlm',
+            dataTestId: 'catalog-filter-type-vlm',
             value: 'vlm',
             checked: data.itemType && data.itemType.vlm
         }
     ];
     return (
         <FilterList
+            dataTestId="catalog-filter-entity-type"
             title={i18n('ENTITY TYPE')}
             items={items}
             onDataChanged={onDataChanged}
@@ -107,6 +115,7 @@ export const Permissions = ({ data, onDataChanged }) => {
 
     return (
         <FilterList
+            dataTestId="catalog-filter-permissions"
             title={i18n('PERMISSIONS')}
             items={items}
             onDataChanged={onDataChanged}
@@ -135,6 +144,7 @@ export const OnboardingProcedure = ({ data, onDataChanged }) => {
 
     return (
         <FilterList
+            dataTestId="catalog-filter-onboarding-procedure"
             title={i18n('ONBOARDING PROCEDURE')}
             items={items}
             onDataChanged={onDataChanged}
-- 
cgit 1.2.3-korg

