Skip to content

Commit

Permalink
UITEN-273: Use Save & close button label stripes-component translatio…
Browse files Browse the repository at this point in the history
…n key
  • Loading branch information
UladzislauKutarkin committed Feb 12, 2024
1 parent 13cf568 commit 7e801f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* [UITEN-266](https://issues.folio.org/browse/UITEN-266) No longer displays non-working inventory-related pages when the inventory interfaces are not present.
* [UITEN-269](https://issues.folio.org/browse/UITEN-269) User without "Settings (tenant): Can maintain preferred plugins" permission can edit preferred plugins.
* [UITEN-273](https://issues.folio.org/browse/UITEN-273) Use Save & close button label stripes-component translation key

## [8.0.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.0.0)(2023-10-13)
[Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v7.4.0...v8.0.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class LocationForm extends React.Component {
marginBottom0
disabled={((pristine || submitting) && !cloning)}
>
<FormattedMessage id="ui-tenant-settings.settings.general.saveAndClose" />
<FormattedMessage id="stripes-components.saveAndClose" />
</Button>
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ describe('LocationFormContainer', () => {

inputs.forEach((el) => expect(screen.getByRole('textbox', { name: el })).toHaveValue('Test value'));

userEvent.click(screen.getByRole('button', { name: /settings.general.saveAndClose/ }));
userEvent.click(screen.getByRole('button', { name: /stripes-components.saveAndClose/ }));
});

it('should render expand buttons', () => {
Expand All @@ -253,7 +253,7 @@ describe('LocationFormContainer', () => {

userEvent.click(screen.getByRole('button', { name: /stripes-components.expandAll/ }));

userEvent.click(screen.getByRole('button', { name: /settings.general.saveAndClose/ }));
userEvent.click(screen.getByRole('button', { name: /stripes-components.saveAndClose/ }));
});

it('should render Service point combobox', () => {
Expand Down Expand Up @@ -325,6 +325,6 @@ describe('LocationFormContainer', () => {
selectLibrary,
libraryOption
);
userEvent.click(screen.getByRole('button', { name: /settings.general.saveAndClose/ }));
userEvent.click(screen.getByRole('button', { name: /stripes-components.saveAndClose/ }));
});
});
2 changes: 1 addition & 1 deletion src/settings/LocationLocations/LocationManager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ describe('LocationManager', () => {
/stripes-components.collapseAll/,
/Icon ui-tenant-settings.settings.location.locations.generalInformation/,
/Icon ui-tenant-settings.settings.location.locations.locationDetails/,
/ui-tenant-settings.settings.general.saveAndClose/
/stripes-components.saveAndClose/
];

buttons.forEach((el) => userEvent.click(screen.getByRole('button', { name: el })));
Expand Down

0 comments on commit 7e801f7

Please sign in to comment.