From c6b979ae345bcb7443b02e04349edf4aa255bdac Mon Sep 17 00:00:00 2001 From: Elena Shostak Date: Fri, 27 Dec 2024 10:31:45 +0100 Subject: [PATCH] Test fixes --- .../privilege_summary_table.test.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx index 5bc7ffac1b7ad..fa689b181e05e 100644 --- a/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx +++ b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx @@ -274,16 +274,16 @@ describe('PrivilegeSummaryTable', () => { hasCustomizedSubFeaturePrivileges: false, primaryFeaturePrivilege: 'All', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, }, with_require_all_spaces_for_feature_and_sub_features: { '*': { hasCustomizedSubFeaturePrivileges: false, - primaryFeaturePrivilege: 'None', + primaryFeaturePrivilege: 'All', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, }, @@ -354,16 +354,16 @@ describe('PrivilegeSummaryTable', () => { hasCustomizedSubFeaturePrivileges: false, primaryFeaturePrivilege: 'All', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, }, with_require_all_spaces_for_feature_and_sub_features: { '*': { hasCustomizedSubFeaturePrivileges: false, - primaryFeaturePrivilege: 'None', + primaryFeaturePrivilege: 'All', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, }, @@ -620,7 +620,7 @@ describe('PrivilegeSummaryTable', () => { hasCustomizedSubFeaturePrivileges: false, primaryFeaturePrivilege: 'Read', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, 'default, space-1': { @@ -744,7 +744,7 @@ describe('PrivilegeSummaryTable', () => { hasCustomizedSubFeaturePrivileges: false, primaryFeaturePrivilege: 'Read', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, 'default, space-1': { @@ -1133,7 +1133,7 @@ describe('PrivilegeSummaryTable', () => { hasCustomizedSubFeaturePrivileges: false, primaryFeaturePrivilege: 'All', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': ['Cool toggle 1'], + 'Require all spaces Sub Feature': [], }), }, }, @@ -1147,9 +1147,9 @@ describe('PrivilegeSummaryTable', () => { }, 'default, space-1': { hasCustomizedSubFeaturePrivileges: false, - primaryFeaturePrivilege: 'All', + primaryFeaturePrivilege: 'None', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': ['Cool toggle 1'], + 'Require all spaces Sub Feature': [], }), }, }, @@ -1283,7 +1283,7 @@ describe('PrivilegeSummaryTable', () => { hasCustomizedSubFeaturePrivileges: false, primaryFeaturePrivilege: 'Read', ...maybeExpectSubFeaturePrivileges(allowSubFeaturePrivileges, { - 'Require all spaces Sub Feature': [], + 'Require all spaces Sub Feature': ['Cool toggle 1'], }), }, default: {