diff --git a/i18n/en.pot b/i18n/en.pot index 0e0cf1940..79ca7fa53 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-02-29T16:49:15.985Z\n" -"PO-Revision-Date: 2024-02-29T16:49:15.985Z\n" +"POT-Creation-Date: 2024-03-05T14:54:55.437Z\n" +"PO-Revision-Date: 2024-03-05T14:54:55.437Z\n" msgid "Something went wrong" msgstr "Something went wrong" @@ -72,15 +72,15 @@ msgstr "Select checks to run." msgid "Report type" msgstr "Report type" +msgid "No options available" +msgstr "No options available" + msgid "Loading options" msgstr "Loading options" msgid "Something went wrong whilst loading options" msgstr "Something went wrong whilst loading options" -msgid "No options available" -msgstr "No options available" - msgid "Delay" msgstr "Delay" diff --git a/src/components/FormFields/Custom/SkipTableTypesField.test.js b/src/components/FormFields/Custom/SkipTableTypesField.test.js index cfefe3fb3..b08efcfe2 100644 --- a/src/components/FormFields/Custom/SkipTableTypesField.test.js +++ b/src/components/FormFields/Custom/SkipTableTypesField.test.js @@ -6,7 +6,7 @@ import SkipTableTypesField from './SkipTableTypesField' const { Form } = ReactFinalForm -jest.mock('../../hooks/parameter-options', () => ({ +jest.mock('../../../hooks/parameter-options', () => ({ useParameterOption: jest.fn(), })) diff --git a/src/components/FormFields/LabeledOptionsField.test.js b/src/components/FormFields/LabeledOptionsField.test.js index 1b92ed4e0..91919d211 100644 --- a/src/components/FormFields/LabeledOptionsField.test.js +++ b/src/components/FormFields/LabeledOptionsField.test.js @@ -38,7 +38,7 @@ describe('', () => { const actual = wrapper .find({ - 'data-test': 'dhis2-uiwidgets-multiselectfield-help', + 'data-test': 'dhis2-uiwidgets-singleselectfield-help', }) .text() diff --git a/src/components/FormFields/QueueOrderField.test.js b/src/components/FormFields/QueueOrderField.test.js index 8fd0f3150..6da3265ac 100644 --- a/src/components/FormFields/QueueOrderField.test.js +++ b/src/components/FormFields/QueueOrderField.test.js @@ -6,7 +6,7 @@ import QueueOrderField from './QueueOrderField' const { Form } = ReactFinalForm -jest.mock('../../../hooks/queueables', () => ({ +jest.mock('../../hooks/queueables', () => ({ useQueueables: jest.fn(), })) diff --git a/src/components/Forms/QueueAddForm.test.js b/src/components/Forms/QueueAddForm.test.js index 46197d0bc..e3b62c91c 100644 --- a/src/components/Forms/QueueAddForm.test.js +++ b/src/components/Forms/QueueAddForm.test.js @@ -6,7 +6,7 @@ import QueueAddForm from './QueueAddForm' const { Form } = ReactFinalForm // Mock components that make network requests -jest.mock('../FormFields/QueueOrderField/QueueOrderField', () => () => ( +jest.mock('../FormFields/QueueOrderField', () => () => (
QueueOrderField
)) diff --git a/src/components/Forms/QueueEditForm.test.js b/src/components/Forms/QueueEditForm.test.js index 501c2155f..a8eb55af0 100644 --- a/src/components/Forms/QueueEditForm.test.js +++ b/src/components/Forms/QueueEditForm.test.js @@ -6,7 +6,7 @@ import QueueEditForm from './QueueEditForm' const { Form } = ReactFinalForm // Mock components that make network requests -jest.mock('../FormFields/QueueOrderField/QueueOrderField', () => () => ( +jest.mock('../FormFields/QueueOrderField', () => () => (
QueueOrderField
)) diff --git a/src/hooks/parameter-options/use-parameter-option.test.js b/src/hooks/parameter-options/use-parameter-option.test.js index 39b4c3989..913594d7f 100644 --- a/src/hooks/parameter-options/use-parameter-option.test.js +++ b/src/hooks/parameter-options/use-parameter-option.test.js @@ -16,6 +16,8 @@ describe('useParameterOption', () => { predictors: { predictors: 'predictors' }, predictorGroups: { predictorGroups: 'predictorGroups' }, dataIntegrity: 'dataIntegrityChecks', + dashboards: { dashboards: 'dashboard' }, + userGroups: { userGroups: 'receivers' }, } const wrapper = ({ children }) => ( {children} diff --git a/src/hooks/parameter-options/use-parameter-options.test.js b/src/hooks/parameter-options/use-parameter-options.test.js index 32e263592..d9d5ee5c5 100644 --- a/src/hooks/parameter-options/use-parameter-options.test.js +++ b/src/hooks/parameter-options/use-parameter-options.test.js @@ -14,6 +14,8 @@ describe('useParameterOptions', () => { predictors: { predictors: 'predictors' }, predictorGroups: { predictorGroups: 'predictorGroups' }, dataIntegrity: 'dataIntegrityChecks', + dashboards: { dashboards: 'dashboard' }, + userGroups: { userGroups: 'receivers' }, } const wrapper = ({ children }) => ( {children} @@ -34,6 +36,8 @@ describe('useParameterOptions', () => { predictors: 'predictors', predictorGroups: 'predictorGroups', dataIntegrityChecks: 'dataIntegrityChecks', + dashboard: 'dashboard', + receivers: 'receivers', }, }) }) @@ -47,6 +51,8 @@ describe('useParameterOptions', () => { predictors: { predictors: 'predictors' }, predictorGroups: { predictorGroups: 'predictorGroups' }, dataIntegrity: 'dataIntegrityChecks', + dashboards: { dashboards: 'dashboard' }, + userGroups: { userGroups: 'receivers' }, } const wrapper = ({ children }) => ( {children}