diff --git a/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap b/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap index 37a7a14df..0ee1048a2 100644 --- a/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap +++ b/public/apps/account/test/__snapshots__/tenant-switch-panel.test.tsx.snap @@ -21,7 +21,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh Tenants are useful for safely sharing your work with other OpenSearch Dashboards users. You can switch your tenant anytime by clicking the user avatar on top right. - - - Cancel - - + Confirm - + @@ -133,7 +133,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh Tenants are useful for safely sharing your work with other OpenSearch Dashboards users. You can switch your tenant anytime by clicking the user avatar on top right. - - - Cancel - - + Confirm - + @@ -248,7 +248,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh Tenants are useful for safely sharing your work with other OpenSearch Dashboards users. You can switch your tenant anytime by clicking the user avatar on top right. - - - Cancel - - + Confirm - + @@ -363,7 +363,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh Tenants are useful for safely sharing your work with other OpenSearch Dashboards users. You can switch your tenant anytime by clicking the user avatar on top right. - - - Cancel - - + Confirm - + @@ -478,7 +478,7 @@ exports[`Account menu -tenant switch panel confirm button and renders renders wh Tenants are useful for safely sharing your work with other OpenSearch Dashboards users. You can switch your tenant anytime by clicking the user avatar on top right. - - - Cancel - - + Confirm - + diff --git a/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap b/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap index c93f11948..c5b689b96 100644 --- a/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap +++ b/public/apps/configuration/panels/audit-logging/test/__snapshots__/audit-logging.test.tsx.snap @@ -276,10 +276,10 @@ exports[`Audit logs render when AuditLoggingSettings.enabled is true 1`] = ` } > - - + } > - - - + @@ -352,12 +352,12 @@ exports[`Audit logs render when AuditLoggingSettings.enabled is true 1`] = ` - Configure - + - Configure - + { ); - const switchFound = component.find(EuiSwitch); + const switchFound = component.find(EuiCompressedSwitch); expect(switchFound.prop('checked')).toBeFalsy(); expect(switchFound.prop('label')).toBe('Disabled'); diff --git a/public/apps/configuration/panels/audit-logging/test/edit-setting-group.test.tsx b/public/apps/configuration/panels/audit-logging/test/edit-setting-group.test.tsx index 291a0722c..60aa4b2cd 100644 --- a/public/apps/configuration/panels/audit-logging/test/edit-setting-group.test.tsx +++ b/public/apps/configuration/panels/audit-logging/test/edit-setting-group.test.tsx @@ -18,7 +18,7 @@ import React from 'react'; import { EditSettingGroup } from '../edit-setting-group'; import { CONFIG, SettingContent, SettingGroup } from '../constants'; import { AuditLoggingSettings, ComplianceSettings, GeneralSettings } from '../types'; -import { EuiComboBox, EuiSwitch } from '@elastic/eui'; +import { EuiCompressedComboBox, EuiCompressedSwitch } from '@elastic/eui'; import { stringToComboBoxOption } from '../../../utils/combo-box-utils'; import { JsonCodeEditor } from '../code-editor'; import { displayObject } from '../../../utils/display-utils'; @@ -82,15 +82,15 @@ describe('Edit setting', () => { /> ); - expect(component.find(EuiSwitch).prop('checked')).toBeTruthy(); + expect(component.find(EuiCompressedSwitch).prop('checked')).toBeTruthy(); - expect(component.find(EuiComboBox).length).toEqual(2); + expect(component.find(EuiCompressedComboBox).length).toEqual(2); - expect(component.find(EuiComboBox).at(0).prop('selectedOptions')).toEqual( + expect(component.find(EuiCompressedComboBox).at(0).prop('selectedOptions')).toEqual( audit.disabled_rest_categories?.map(stringToComboBoxOption) ); - expect(component.find(EuiComboBox).at(1).prop('selectedOptions')).toEqual( + expect(component.find(EuiCompressedComboBox).at(1).prop('selectedOptions')).toEqual( compliance.read_ignore_users?.map(stringToComboBoxOption) ); diff --git a/public/apps/configuration/panels/internal-user-edit/test/__snapshots__/backend-role-panel.test.tsx.snap b/public/apps/configuration/panels/internal-user-edit/test/__snapshots__/backend-role-panel.test.tsx.snap index 39a209a27..a9b6bdfb2 100644 --- a/public/apps/configuration/panels/internal-user-edit/test/__snapshots__/backend-role-panel.test.tsx.snap +++ b/public/apps/configuration/panels/internal-user-edit/test/__snapshots__/backend-role-panel.test.tsx.snap @@ -11,9 +11,9 @@ exports[`User editing - backend role panel BackendRolePanel add backend role whe - - - + - - Remove - - + + - - - + - - Remove - - + + - Add another backend role - + `; @@ -115,11 +115,11 @@ exports[`User editing - backend role panel BackendRolePanel add backend role whe optional={true} > - Add another backend role - + `; diff --git a/public/apps/configuration/panels/internal-user-edit/test/attribute-panel.test.tsx b/public/apps/configuration/panels/internal-user-edit/test/attribute-panel.test.tsx index b9cdfed14..a9f4290e5 100644 --- a/public/apps/configuration/panels/internal-user-edit/test/attribute-panel.test.tsx +++ b/public/apps/configuration/panels/internal-user-edit/test/attribute-panel.test.tsx @@ -13,7 +13,7 @@ * permissions and limitations under the License. */ -import { EuiFieldText, EuiFlexGroup } from '@elastic/eui'; +import { EuiCompressedFieldText, EuiFlexGroup } from '@elastic/eui'; import { shallow } from 'enzyme'; import React from 'react'; import { @@ -66,10 +66,10 @@ describe('User editing - attribute panel', () => { const component = shallow(); expect(component.find(EuiFlexGroup).length).toBe(2); - expect(component.find(EuiFieldText).at(0).prop('value')).toBe(attr1); - expect(component.find(EuiFieldText).at(1).prop('value')).toBe(value1); - expect(component.find(EuiFieldText).at(2).prop('value')).toBe(attr2); - expect(component.find(EuiFieldText).at(3).prop('value')).toBe(value2); + expect(component.find(EuiCompressedFieldText).at(0).prop('value')).toBe(attr1); + expect(component.find(EuiCompressedFieldText).at(1).prop('value')).toBe(value1); + expect(component.find(EuiCompressedFieldText).at(2).prop('value')).toBe(attr2); + expect(component.find(EuiCompressedFieldText).at(3).prop('value')).toBe(value2); }); it('add row', () => { diff --git a/public/apps/configuration/panels/internal-user-edit/test/backend-role-panel.test.tsx b/public/apps/configuration/panels/internal-user-edit/test/backend-role-panel.test.tsx index d24f81d6e..0a44acac4 100644 --- a/public/apps/configuration/panels/internal-user-edit/test/backend-role-panel.test.tsx +++ b/public/apps/configuration/panels/internal-user-edit/test/backend-role-panel.test.tsx @@ -13,7 +13,7 @@ * permissions and limitations under the License. */ -import { EuiFieldText, EuiFlexGroup } from '@elastic/eui'; +import { EuiCompressedFieldText, EuiFlexGroup } from '@elastic/eui'; import { shallow } from 'enzyme'; import React from 'react'; import { @@ -48,8 +48,8 @@ describe('User editing - backend role panel', () => { const component = shallow(); expect(component.find(EuiFlexGroup).length).toBe(2); - expect(component.find(EuiFieldText).at(0).prop('value')).toBe(backendRole1); - expect(component.find(EuiFieldText).at(1).prop('value')).toBe(backendRole2); + expect(component.find(EuiCompressedFieldText).at(0).prop('value')).toBe(backendRole1); + expect(component.find(EuiCompressedFieldText).at(1).prop('value')).toBe(backendRole2); }); it('add row', () => { diff --git a/public/apps/configuration/panels/permission-list/test/permission-list.test.tsx b/public/apps/configuration/panels/permission-list/test/permission-list.test.tsx index b875b90f6..daa6a86fe 100644 --- a/public/apps/configuration/panels/permission-list/test/permission-list.test.tsx +++ b/public/apps/configuration/panels/permission-list/test/permission-list.test.tsx @@ -21,7 +21,7 @@ import { toggleRowDetails, renderRowExpansionArrow, } from '../permission-list'; -import { EuiInMemoryTable, EuiButtonIcon } from '@elastic/eui'; +import { EuiInMemoryTable, EuiSmallButtonIcon } from '@elastic/eui'; import { requestDeleteActionGroups, fetchActionGroups, @@ -82,7 +82,7 @@ describe('Permission list page ', () => { const Wrapper = () => <>{renderFunc(sampleActionGroup)}; const component = shallow(); - expect(component.find(EuiButtonIcon).prop('iconType')).toBe('arrowDown'); + expect(component.find(EuiSmallButtonIcon).prop('iconType')).toBe('arrowDown'); }); it('should render up arrow when expanded', () => { @@ -94,7 +94,7 @@ describe('Permission list page ', () => { const Wrapper = () => <>{renderFunc(sampleActionGroup)}; const component = shallow(); - expect(component.find(EuiButtonIcon).prop('iconType')).toBe('arrowUp'); + expect(component.find(EuiSmallButtonIcon).prop('iconType')).toBe('arrowUp'); }); }); diff --git a/public/apps/configuration/panels/role-edit/test/cluster-permission-panel.test.tsx b/public/apps/configuration/panels/role-edit/test/cluster-permission-panel.test.tsx index 29a81ab24..3a9bdd3bc 100644 --- a/public/apps/configuration/panels/role-edit/test/cluster-permission-panel.test.tsx +++ b/public/apps/configuration/panels/role-edit/test/cluster-permission-panel.test.tsx @@ -13,7 +13,7 @@ * permissions and limitations under the License. */ -import { EuiComboBox } from '@elastic/eui'; +import { EuiCompressedComboBox } from '@elastic/eui'; import { shallow } from 'enzyme'; import React from 'react'; import { ComboBoxOptions } from '../../../types'; @@ -34,7 +34,7 @@ describe('Role edit - cluster permission panel', () => { ); - const comboBox = component.find(EuiComboBox).first(); + const comboBox = component.find(EuiCompressedComboBox).first(); expect(comboBox.prop('selectedOptions')).toBe(state); expect(comboBox.prop('options')).toBe(optionUniverse); expect(comboBox.prop('onChange')).toBe(setState); diff --git a/public/apps/configuration/panels/role-edit/test/index-permission-panel.test.tsx b/public/apps/configuration/panels/role-edit/test/index-permission-panel.test.tsx index d24d8526c..f09e23775 100644 --- a/public/apps/configuration/panels/role-edit/test/index-permission-panel.test.tsx +++ b/public/apps/configuration/panels/role-edit/test/index-permission-panel.test.tsx @@ -29,7 +29,12 @@ import { AnonymizationRow, } from '../index-permission-panel'; import { RoleIndexPermissionStateClass } from '../types'; -import { EuiComboBox, EuiSuperSelect, EuiButton, EuiTextArea } from '@elastic/eui'; +import { + EuiCompressedComboBox, + EuiCompressedSuperSelect, + EuiSmallButton, + EuiCompressedTextArea, +} from '@elastic/eui'; jest.mock('../../../utils/array-state-utils'); // eslint-disable-next-line @@ -123,7 +128,7 @@ describe('Role edit - index permission panel', () => { const component = shallow(); - expect(component.find(EuiComboBox).first().prop('selectedOptions')).toBe(value); + expect(component.find(EuiCompressedComboBox).first().prop('selectedOptions')).toBe(value); }); it('IndexPermissionRow', () => { @@ -135,7 +140,7 @@ describe('Role edit - index permission panel', () => { ); - expect(component.find(EuiComboBox).first().prop('selectedOptions')).toBe(value); + expect(component.find(EuiCompressedComboBox).first().prop('selectedOptions')).toBe(value); }); it('DocLevelSecurityRow', () => { @@ -144,7 +149,7 @@ describe('Role edit - index permission panel', () => { const component = shallow(); - expect(component.find(EuiTextArea).first().prop('value')).toBe(value); + expect(component.find(EuiCompressedTextArea).first().prop('value')).toBe(value); }); it('FieldLevelSecurityRow', () => { @@ -160,8 +165,8 @@ describe('Role edit - index permission panel', () => { /> ); - expect(component.find(EuiSuperSelect).first().prop('valueOfSelected')).toBe(method); - expect(component.find(EuiComboBox).first().prop('selectedOptions')).toBe(fields); + expect(component.find(EuiCompressedSuperSelect).first().prop('valueOfSelected')).toBe(method); + expect(component.find(EuiCompressedComboBox).first().prop('selectedOptions')).toBe(fields); }); it('AnonymizationRow', () => { @@ -173,7 +178,7 @@ describe('Role edit - index permission panel', () => { ); - expect(component.find(EuiComboBox).first().prop('selectedOptions')).toBe(value); + expect(component.find(EuiCompressedComboBox).first().prop('selectedOptions')).toBe(value); }); describe('IndexPermissionPanel', () => { @@ -230,7 +235,7 @@ describe('Role edit - index permission panel', () => { const optionUniverse = [allowedAction1, allowedAction2].map(stringToComboBoxOption); const component = shallow(); - component.find(EuiButton).last().simulate('click'); + component.find(EuiSmallButton).last().simulate('click'); expect(arrayStateUtils.appendElementToArray).toHaveBeenCalledTimes(1); }); diff --git a/public/apps/configuration/panels/role-edit/test/role-edit.test.tsx b/public/apps/configuration/panels/role-edit/test/role-edit.test.tsx index 6e0b61237..d5051809e 100644 --- a/public/apps/configuration/panels/role-edit/test/role-edit.test.tsx +++ b/public/apps/configuration/panels/role-edit/test/role-edit.test.tsx @@ -13,7 +13,7 @@ * permissions and limitations under the License. */ -import { EuiButton } from '@elastic/eui'; +import { EuiSmallButton } from '@elastic/eui'; import { shallow } from 'enzyme'; import React from 'react'; import { updateRole } from '../../../utils/role-detail-utils'; @@ -118,7 +118,7 @@ describe('Role edit', () => { /> ); // click update - component.find(EuiButton).last().simulate('click'); + component.find(EuiSmallButton).last().simulate('click'); expect(updateRole).toBeCalledWith( mockCoreStart.http, diff --git a/public/apps/configuration/panels/role-edit/test/tenant-panel.test.tsx b/public/apps/configuration/panels/role-edit/test/tenant-panel.test.tsx index d7ad8f36c..3edb87e89 100644 --- a/public/apps/configuration/panels/role-edit/test/tenant-panel.test.tsx +++ b/public/apps/configuration/panels/role-edit/test/tenant-panel.test.tsx @@ -23,7 +23,7 @@ import { } from '../tenant-panel'; import { shallow } from 'enzyme'; import React from 'react'; -import { EuiComboBox, EuiButton, EuiSuperSelect } from '@elastic/eui'; +import { EuiCompressedComboBox, EuiSmallButton, EuiCompressedSuperSelect } from '@elastic/eui'; import { render } from '@testing-library/react'; jest.mock('../../../utils/array-state-utils'); @@ -103,12 +103,12 @@ describe('Role edit - tenant panel', () => { ); - const comboBoxArray = component.find(EuiComboBox); + const comboBoxArray = component.find(EuiCompressedComboBox); expect(comboBoxArray.length).toEqual(2); expect(comboBoxArray.at(0).prop('selectedOptions')).toBe(state[0].tenantPatterns); expect(comboBoxArray.at(1).prop('selectedOptions')).toBe(state[1].tenantPatterns); - const superSelectArray = component.find(EuiSuperSelect); + const superSelectArray = component.find(EuiCompressedSuperSelect); expect(superSelectArray.at(0).prop('valueOfSelected')).toBe(state[0].permissionType); expect(superSelectArray.at(1).prop('valueOfSelected')).toBe(state[1].permissionType); }); @@ -118,7 +118,7 @@ describe('Role edit - tenant panel', () => { ); - const addRowButton = component.find(EuiButton).last(); + const addRowButton = component.find(EuiSmallButton).last(); addRowButton.simulate('click'); expect(arrayStateUtils.appendElementToArray).toHaveBeenCalledTimes(1); }); @@ -135,7 +135,7 @@ describe('Role edit - tenant panel', () => { ); - const removeRowButton = component.find(EuiButton).first(); + const removeRowButton = component.find(EuiSmallButton).first(); removeRowButton.simulate('click'); expect(arrayStateUtils.removeElementFromArray).toHaveBeenCalledTimes(1); }); diff --git a/public/apps/configuration/panels/role-mapping/test/external-identities-panel.test.tsx b/public/apps/configuration/panels/role-mapping/test/external-identities-panel.test.tsx index d06fd2f98..7c9e813ea 100644 --- a/public/apps/configuration/panels/role-mapping/test/external-identities-panel.test.tsx +++ b/public/apps/configuration/panels/role-mapping/test/external-identities-panel.test.tsx @@ -21,7 +21,7 @@ import { import { shallow } from 'enzyme'; import { ExternalIdentityStateClass } from '../types'; import React from 'react'; -import { EuiFieldText, EuiFlexGroup } from '@elastic/eui'; +import { EuiCompressedFieldText, EuiFlexGroup } from '@elastic/eui'; import { appendElementToArray, removeElementFromArray, @@ -91,8 +91,8 @@ describe('Role mapping - external identities panel', () => { ); expect(component.find(EuiFlexGroup).length).toBe(2); - expect(component.find(EuiFieldText).at(0).prop('value')).toBe(externalIdentity1); - expect(component.find(EuiFieldText).at(1).prop('value')).toBe(externalIdentity2); + expect(component.find(EuiCompressedFieldText).at(0).prop('value')).toBe(externalIdentity1); + expect(component.find(EuiCompressedFieldText).at(1).prop('value')).toBe(externalIdentity2); }); it('add row', () => { diff --git a/public/apps/configuration/panels/role-mapping/test/users-panel.test.tsx b/public/apps/configuration/panels/role-mapping/test/users-panel.test.tsx index bae48fcf2..abb491d34 100644 --- a/public/apps/configuration/panels/role-mapping/test/users-panel.test.tsx +++ b/public/apps/configuration/panels/role-mapping/test/users-panel.test.tsx @@ -13,7 +13,7 @@ * permissions and limitations under the License. */ -import { EuiComboBox } from '@elastic/eui'; +import { EuiCompressedComboBox } from '@elastic/eui'; import { shallow } from 'enzyme'; import React from 'react'; import { ComboBoxOptions } from '../../../types'; @@ -31,7 +31,7 @@ describe('Role mapping - Internal users panel', () => { ); - const comboBox = component.find(EuiComboBox).first(); + const comboBox = component.find(EuiCompressedComboBox).first(); expect(comboBox.prop('selectedOptions')).toBe(state); expect(comboBox.prop('options')).toBe(optionUniverse); expect(comboBox.prop('onChange')).toBe(setState); diff --git a/public/apps/configuration/panels/role-view/test/__snapshots__/index-permission-panel.test.tsx.snap b/public/apps/configuration/panels/role-view/test/__snapshots__/index-permission-panel.test.tsx.snap index a4fbd530e..a349ac33c 100644 --- a/public/apps/configuration/panels/role-view/test/__snapshots__/index-permission-panel.test.tsx.snap +++ b/public/apps/configuration/panels/role-view/test/__snapshots__/index-permission-panel.test.tsx.snap @@ -29,7 +29,7 @@ exports[`Role view - index permission panel Render document level security rende exports[`Role view - index permission panel Render row expanstion arrow renders when arrow expanded 1`] = ` - - duplicate - - + delete - + - Edit role - + @@ -211,20 +211,20 @@ exports[`Role view basic rendering when permission tab is selected 1`] = ` - Delete mapping - + - Manage mapping - + @@ -268,13 +268,13 @@ exports[`Role view basic rendering when permission tab is selected 1`] = ` /> - Map users - + } @@ -378,27 +378,27 @@ exports[`Role view renders when mapped user tab is selected 1`] = ` gutterSize="s" > - duplicate - - + delete - + - Edit role - + @@ -441,20 +441,20 @@ exports[`Role view renders when mapped user tab is selected 1`] = ` - Delete mapping - + - Manage mapping - + @@ -498,13 +498,13 @@ exports[`Role view renders when mapped user tab is selected 1`] = ` /> - Map users - + } @@ -629,20 +629,20 @@ exports[`Role view renders when mapped user tab is selected 1`] = ` - Delete mapping - + - Manage mapping - + @@ -686,13 +686,13 @@ exports[`Role view renders when mapped user tab is selected 1`] = ` /> - Map users - + } diff --git a/public/apps/configuration/panels/role-view/test/cluster-permission-panel.test.tsx b/public/apps/configuration/panels/role-view/test/cluster-permission-panel.test.tsx index 8e7d5be0c..7f7bb2680 100644 --- a/public/apps/configuration/panels/role-view/test/cluster-permission-panel.test.tsx +++ b/public/apps/configuration/panels/role-view/test/cluster-permission-panel.test.tsx @@ -16,7 +16,7 @@ import React from 'react'; import { shallow } from 'enzyme'; import { ClusterPermissionPanel } from '../cluster-permission-panel'; -import { EuiButton, EuiEmptyPrompt, EuiLoadingSpinner } from '@elastic/eui'; +import { EuiSmallButton, EuiEmptyPrompt, EuiLoadingSpinner } from '@elastic/eui'; import { PermissionTree } from '../../permission-tree'; import { Action } from '../../../types'; import { ResourceType } from '../../../../../../common'; @@ -63,7 +63,7 @@ describe('Role view - cluster permission panel', () => { /> ); const prompt = wrapper.find(EuiEmptyPrompt).dive(); - expect(prompt.find(EuiButton)).toHaveLength(1); + expect(prompt.find(EuiSmallButton)).toHaveLength(1); const button = prompt.find('[data-test-subj="addClusterPermission"]'); expect(button.prop('disabled')).toBe(true); }); diff --git a/public/apps/configuration/panels/role-view/test/index-permission-panel.test.tsx b/public/apps/configuration/panels/role-view/test/index-permission-panel.test.tsx index dc9632eb2..d9295d6b4 100644 --- a/public/apps/configuration/panels/role-view/test/index-permission-panel.test.tsx +++ b/public/apps/configuration/panels/role-view/test/index-permission-panel.test.tsx @@ -24,7 +24,7 @@ import { IndexPermissionPanel, renderDocumentLevelSecurity, } from '../index-permission-panel'; -import { EuiButtonIcon, EuiEmptyPrompt, EuiInMemoryTable } from '@elastic/eui'; +import { EuiSmallButtonIcon, EuiEmptyPrompt, EuiInMemoryTable } from '@elastic/eui'; import { buildHashUrl } from '../../../utils/url-builder'; describe('Role view - index permission panel', () => { @@ -51,7 +51,7 @@ describe('Role view - index permission panel', () => { const Wrapper = () => <>{renderFunc(sampleRoleIndexPermission)}; const component = shallow(); - expect(component.find(EuiButtonIcon).prop('iconType')).toBe('arrowDown'); + expect(component.find(EuiSmallButtonIcon).prop('iconType')).toBe('arrowDown'); }); it('should render up arrow when expanded', () => { @@ -63,7 +63,7 @@ describe('Role view - index permission panel', () => { const Wrapper = () => <>{renderFunc(sampleRoleIndexPermission)}; const component = shallow(); - expect(component.find(EuiButtonIcon).prop('iconType')).toBe('arrowUp'); + expect(component.find(EuiSmallButtonIcon).prop('iconType')).toBe('arrowUp'); }); it('renders when arrow expanded', () => { @@ -74,7 +74,7 @@ describe('Role view - index permission panel', () => { ); const Wrapper = () => <>{renderFunc(sampleRoleIndexPermission)}; const component = shallow(); - component.find(EuiButtonIcon).simulate('click'); + component.find(EuiSmallButtonIcon).simulate('click'); expect(component).toMatchSnapshot(); }); }); diff --git a/public/apps/configuration/panels/tenant-list/test/__snapshots__/edit-modal.test.tsx.snap b/public/apps/configuration/panels/tenant-list/test/__snapshots__/edit-modal.test.tsx.snap index dfda4d2b9..a99d79623 100644 --- a/public/apps/configuration/panels/tenant-list/test/__snapshots__/edit-modal.test.tsx.snap +++ b/public/apps/configuration/panels/tenant-list/test/__snapshots__/edit-modal.test.tsx.snap @@ -1,31 +1,25 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Permission edit modal Submit button text should be Create when user is creating tenant 1`] = ` - Create - + `; exports[`Permission edit modal Submit button text should be Save when user is updating tenant 1`] = ` - Save - + `; diff --git a/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap b/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap index 3f40c1b34..a098f42d4 100644 --- a/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap +++ b/public/apps/configuration/panels/tenant-list/test/__snapshots__/tenant-list.test.tsx.snap @@ -45,55 +45,55 @@ exports[`Tenant list Action menu click Duplicate click 1`] = ` - Switch to selected tenant - - + Edit - - + Duplicate - - + Create dashboard - - + Create visualizations - - + Set as Default Tenant - - + Delete - + - Create tenant - + @@ -233,55 +233,55 @@ exports[`Tenant list Action menu click Edit click 1`] = ` - Switch to selected tenant - - + Edit - - + Duplicate - - + Create dashboard - - + Create visualizations - - + Set as Default Tenant - - + Delete - + - Create tenant - + diff --git a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap index b7bb4bc7b..d380f6153 100644 --- a/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap +++ b/public/apps/configuration/panels/test/__snapshots__/get-started.test.tsx.snap @@ -85,23 +85,23 @@ exports[`Get started (landing page) renders when backend configuration is disabl - Explore existing roles - + - Create new role - + - Map users to a role - + - Create internal user - + , @@ -185,13 +185,13 @@ exports[`Get started (landing page) renders when backend configuration is disabl href="https://opensearch.org/docs/latest/security-plugin/audit-logs/" />

- Review Audit Log Configuration - + By default, the security plugin caches authenticated users, along with their roles and permissions. This option will purge cached users, roles and permissions.

- Purge cache - + - Manage Multi-tenancy - + - Configure Multi-tenancy - + @@ -396,12 +396,12 @@ exports[`Get started (landing page) renders when backend configuration is enable - Review authentication and authorization - + - Explore existing roles - + - Create new role - + - Map users to a role - + - Create internal user - + , @@ -531,13 +531,13 @@ exports[`Get started (landing page) renders when backend configuration is enable href="https://opensearch.org/docs/latest/security-plugin/audit-logs/" />

- Review Audit Log Configuration - + By default, the security plugin caches authenticated users, along with their roles and permissions. This option will purge cached users, roles and permissions.

- Purge cache - + - Manage Multi-tenancy - + - Configure Multi-tenancy - + diff --git a/public/apps/configuration/panels/test/__snapshots__/role-list.test.tsx.snap b/public/apps/configuration/panels/test/__snapshots__/role-list.test.tsx.snap index 4e4035617..52233ddc7 100644 --- a/public/apps/configuration/panels/test/__snapshots__/role-list.test.tsx.snap +++ b/public/apps/configuration/panels/test/__snapshots__/role-list.test.tsx.snap @@ -61,39 +61,39 @@ exports[`Role list AccessError component should load access error component 1`] - Edit - - + Duplicate - - + Delete - + - Create role - + diff --git a/public/apps/configuration/utils/test/__snapshots__/display-utils.test.tsx.snap b/public/apps/configuration/utils/test/__snapshots__/display-utils.test.tsx.snap index 11f384b0f..4ba456b4a 100644 --- a/public/apps/configuration/utils/test/__snapshots__/display-utils.test.tsx.snap +++ b/public/apps/configuration/utils/test/__snapshots__/display-utils.test.tsx.snap @@ -60,7 +60,7 @@ exports[`Display utils Render External Link 1`] = ` `; exports[`Display utils Render External Link Button 1`] = ` - Test - + `; exports[`Display utils Render expression when expression is non-empty 1`] = ` diff --git a/public/apps/configuration/utils/test/__snapshots__/form-row.test.tsx.snap b/public/apps/configuration/utils/test/__snapshots__/form-row.test.tsx.snap index 50a384b62..ac1726b84 100644 --- a/public/apps/configuration/utils/test/__snapshots__/form-row.test.tsx.snap +++ b/public/apps/configuration/utils/test/__snapshots__/form-row.test.tsx.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Form row renders 1`] = ` - Test - + `; diff --git a/public/apps/configuration/utils/test/__snapshots__/password-edit-panel.test.tsx.snap b/public/apps/configuration/utils/test/__snapshots__/password-edit-panel.test.tsx.snap index d6e879b84..ff90a9021 100644 --- a/public/apps/configuration/utils/test/__snapshots__/password-edit-panel.test.tsx.snap +++ b/public/apps/configuration/utils/test/__snapshots__/password-edit-panel.test.tsx.snap @@ -12,18 +12,15 @@ exports[`Password edit panel repeat password field update 1`] = ` headerText="Password" helpText="Password should be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character." > - - - + - diff --git a/public/apps/customerror/test/__snapshots__/custom-error.test.tsx.snap b/public/apps/customerror/test/__snapshots__/custom-error.test.tsx.snap index ceb888fc1..3149a3578 100644 --- a/public/apps/customerror/test/__snapshots__/custom-error.test.tsx.snap +++ b/public/apps/customerror/test/__snapshots__/custom-error.test.tsx.snap @@ -27,13 +27,13 @@ exports[`Custom error page test renders and clicks the button on the error page - Logout - + `; diff --git a/public/apps/customerror/test/custom-error.test.tsx b/public/apps/customerror/test/custom-error.test.tsx index 18291c351..a6228cba8 100644 --- a/public/apps/customerror/test/custom-error.test.tsx +++ b/public/apps/customerror/test/custom-error.test.tsx @@ -17,7 +17,7 @@ import React from 'react'; import { CustomErrorPage } from '../custom-error'; import { cleanup } from '@testing-library/react'; import '@testing-library/jest-dom'; -import { EuiButton } from '../custom-error'; +import { EuiSmallButton } from '../custom-error'; import { logout } from '../../account/utils'; afterEach(() => { @@ -29,9 +29,9 @@ describe('Custom error page test', () => { beforeEach(() => { component = shallow( - + Logout - + ); }); diff --git a/public/apps/login/test/__snapshots__/login-page.test.tsx.snap b/public/apps/login/test/__snapshots__/login-page.test.tsx.snap index e75489902..d36178728 100644 --- a/public/apps/login/test/__snapshots__/login-page.test.tsx.snap +++ b/public/apps/login/test/__snapshots__/login-page.test.tsx.snap @@ -33,15 +33,15 @@ exports[`Login page renders renders with config value for multiauth 1`] = ` - - - - + - - - + Log in - + @@ -103,9 +100,9 @@ exports[`Login page renders renders with config value for multiauth 1`] = ` - Button1 - - + Button2 - + `; @@ -180,15 +177,15 @@ exports[`Login page renders renders with config value for multiauth with anonymo - - - - + - - - + Log in - - + - + @@ -268,9 +262,9 @@ exports[`Login page renders renders with config value for multiauth with anonymo - Button1 - - + Button2 - + `; @@ -345,15 +339,15 @@ exports[`Login page renders renders with config value with anonymous auth enable - - - - + - - - + Log in - - + - + `; @@ -460,15 +451,15 @@ exports[`Login page renders renders with config value with anonymous auth enable - - - - + - - - + Log in - - + - + `; @@ -575,15 +563,15 @@ exports[`Login page renders renders with config value: string 1`] = ` - - - - + - - - + Log in - + `; @@ -672,15 +657,15 @@ exports[`Login page renders renders with config value: string array 1`] = ` - - - - + - - - + Log in - + `; @@ -769,15 +751,15 @@ exports[`Login page renders renders with default value: string 1`] = ` - - - - + - - - + Log in - + `; @@ -866,15 +845,15 @@ exports[`Login page renders renders with default value: string array 1`] = ` - - - - + - - - + Log in - + `;