Skip to content

Commit

Permalink
UIIN-2630 Updated translations for adding new Instance records.
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Nov 10, 2023
1 parent 4efc8e2 commit 0ced285
Show file tree
Hide file tree
Showing 3 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 @@ -8,6 +8,7 @@
* Inventory search/browse: Do not retain checkbox selections when toggling search segment. Refs UIIN-2477.
* Show Instance record after creating with Fast add option. Refs UIIN-2497.
* Search box/Browse box- Reset all should shift focus back to search box. Refs UIIN-2514.
* Updated translations for adding new Instance records. Refs UIIN-2630.

## [10.0.4] IN PROGRESS

Expand Down
6 changes: 3 additions & 3 deletions src/components/InstancesList/InstancesList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,20 +382,20 @@ describe('InstancesList', () => {
});
});

describe('"New MARC Bib Record" button', () => {
describe('"New MARC bibliographic record" button', () => {
it('should render', () => {
renderInstancesList({ segment: 'instances' });
openActionMenu();

expect(screen.getByRole('button', { name: 'New MARC Bib Record' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'New MARC bibliographic record' })).toBeInTheDocument();
});

it('should redirect to the correct layer', async () => {
jest.spyOn(history, 'push');
renderInstancesList({ segment: 'instances' });
openActionMenu();

const button = screen.getByRole('button', { name: 'New MARC Bib Record' });
const button = screen.getByRole('button', { name: 'New MARC bibliographic record' });

fireEvent.click(button);

Expand Down
4 changes: 2 additions & 2 deletions translations/ui-inventory/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@
"copyItem": "Duplicate",
"newRequest": "New request",
"fastAdd": "Fast add",
"newMARCRecord": "New MARC Bib Record",
"newFastAddRecord": "New Fast Add Record",
"newMARCRecord": "New MARC bibliographic record",
"newFastAddRecord": "New fast add record",
"newLocalRecord": "New local record",
"newSharedRecord": "New shared record",
"location.confirm.confirmBtn": "Yes",
Expand Down

0 comments on commit 0ced285

Please sign in to comment.