Skip to content

Commit

Permalink
test: Fixes
Browse files Browse the repository at this point in the history
Fixes to tests
  • Loading branch information
EthanFreestone committed Sep 8, 2023
1 parent 3afb721 commit a8ab57a
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions src/views/UserEdit/UserEdit.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import userEvent from '@folio/jest-config-stripes/testing-library/user-event';

import { screen } from '@folio/jest-config-stripes/testing-library/react';

import renderWithRouter from 'helpers/renderWithRouter';

import UserForm from './UserForm';
Expand Down Expand Up @@ -73,6 +75,9 @@ describe('UserEdit', () => {
servicePoints: {
records: [],
},
settings: {
records: [],
},
departments: {
records: [],
},
Expand Down Expand Up @@ -152,6 +157,17 @@ describe('UserEdit', () => {
permissions: {
records: [{ id: '4', group: 'tst', desc: 'description' }],
},
settings: {
records: [
{
id: 'f2b84177-d85a-4b0c-93dd-279e8f9d1d42',
module: 'USERS',
configName: 'number_generator',
enabled: true,
value: '{"barcodeGeneratorSetting":"useBoth"}',
}
],
}
},
};
const { container } = renderWithRouter(<UserEdit {...props} />);
Expand Down Expand Up @@ -184,6 +200,17 @@ describe('UserEdit', () => {
permissions: {
records: [{ id: '4', group: 'tst', desc: 'description' }],
},
settings: {
records: [
{
id: 'f2b84177-d85a-4b0c-93dd-279e8f9d1d42',
module: 'USERS',
configName: 'number_generator',
enabled: true,
value: '{"barcodeGeneratorSetting":"useBoth"}',
}
],
}
},
};
const { container } = renderWithRouter(<UserEdit {...props} />);
Expand Down Expand Up @@ -214,6 +241,17 @@ describe('UserEdit', () => {
permissions: {
records: [{ id: '4', group: 'tst', desc: 'description' }],
},
settings: {
records: [
{
id: 'f2b84177-d85a-4b0c-93dd-279e8f9d1d42',
module: 'USERS',
configName: 'number_generator',
enabled: true,
value: '{"barcodeGeneratorSetting":"useBoth"}',
}
],
}
},
};
const { container } = renderWithRouter(<UserEdit {...props} />);
Expand Down Expand Up @@ -258,6 +296,17 @@ describe('UserEdit', () => {
permissions: {
records: [{ id: '4', group: 'tst', desc: 'description' }],
},
settings: {
records: [
{
id: 'f2b84177-d85a-4b0c-93dd-279e8f9d1d42',
module: 'USERS',
configName: 'number_generator',
enabled: true,
value: '{"barcodeGeneratorSetting":"useBoth"}',
}
],
}
},
};
const { container } = renderWithRouter(<UserEdit {...props} />);
Expand Down Expand Up @@ -288,6 +337,17 @@ describe('UserEdit', () => {
permissions: {
records: [{ id: '4', group: 'tst', desc: 'description' }],
},
settings: {
records: [
{
id: 'f2b84177-d85a-4b0c-93dd-279e8f9d1d42',
module: 'USERS',
configName: 'number_generator',
enabled: true,
value: '{"barcodeGeneratorSetting":"useBoth"}',
}
],
}
},
};
const { container } = renderWithRouter(<UserEdit {...props} />);
Expand Down Expand Up @@ -318,6 +378,17 @@ describe('UserEdit', () => {
permissions: {
records: [{ id: '4', group: 'tst', desc: 'description' }],
},
settings: {
records: [
{
id: 'f2b84177-d85a-4b0c-93dd-279e8f9d1d42',
module: 'USERS',
configName: 'number_generator',
enabled: true,
value: '{"barcodeGeneratorSetting":"useBoth"}',
}
],
}
},
};
const { container } = renderWithRouter(<UserEdit {...props} />);
Expand Down Expand Up @@ -424,6 +495,9 @@ describe('UserEdit', () => {
departments: {
records: [],
},
settings: {
records: [],
},
},
history: {
push: jest.fn(),
Expand Down

0 comments on commit a8ab57a

Please sign in to comment.