Skip to content

Commit

Permalink
UIDATIMP-1679: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrHladchenko1 committed Nov 25, 2024
1 parent 210144e commit aa577c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/settings/ActionProfiles/ActionProfilesForm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ describe('ActionProfilesForm component', () => {
});

describe('when user is in central tenant', () => {
it('should render "Instance", "MARC Bibliographic" and "MARC Authority" record types', () => {
it('should render "Instance", "Order", "Invoice", "MARC Bibliographic" and "MARC Authority" record types', () => {
spyOnCheckIfUserInCentralTenant.mockReturnValue(true);

const { container } = renderActionProfilesForm(actionProfilesFormProps());

expect(container.querySelector('[value="INSTANCE"]')).toBeDefined();
expect(container.querySelector('[value="ORDER"]')).toBeDefined();
expect(container.querySelector('[value="INVOICE"]')).toBeDefined();
expect(container.querySelector('[value="MARC_BIBLIOGRAPHIC"]')).toBeDefined();
expect(container.querySelector('[value="MARC_HOLDINGS"]')).toBeDefined();

expect(container.querySelector('[value="HOLDINGS"]')).not.toBeInTheDocument();
expect(container.querySelector('[value="ITEM"]')).not.toBeInTheDocument();
expect(container.querySelector('[value="ORDER"]')).not.toBeInTheDocument();
expect(container.querySelector('[value="INVOICE"]')).not.toBeInTheDocument();
});
});

Expand Down

0 comments on commit aa577c7

Please sign in to comment.