@openmrs/esm-form-builder-app 3.5.2-pre.3664 → 3.5.2-pre.3668
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"form-builder","online":true,"offline":true,"order":1}],"extensions":[{"name":"system-administration-form-builder-card-link","slot":"system-admin-page-card-link-slot","component":"systemAdministrationFormBuilderCardLink","online":true,"offline":true}],"modals":[{"name":"new-form-modal","component":"newFormModal"},{"name":"new-page-modal","component":"newPageModal"},{"name":"delete-page-modal","component":"deletePageModal"},{"name":"new-section-modal","component":"newSectionModal"},{"name":"delete-section-modal","component":"deleteSectionModal"},{"name":"add-form-reference-modal","component":"addFormReferenceModal"},{"name":"question-modal","component":"questionModal"},{"name":"delete-question-modal","component":"deleteQuestionModal"},{"name":"edit-question-modal","component":"editQuestionModal"},{"name":"restore-draft-schema-modal","component":"restoreDraftSchemaModal"},{"name":"unpublish-form-modal","component":"unpublishFormModal"},{"name":"delete-form-modal","component":"deleteFormModal"},{"name":"edit-translation-modal","component":"editTranslationModal"}],"version":"3.5.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"form-builder","online":true,"offline":true,"order":1}],"extensions":[{"name":"system-administration-form-builder-card-link","slot":"system-admin-page-card-link-slot","component":"systemAdministrationFormBuilderCardLink","online":true,"offline":true}],"modals":[{"name":"new-form-modal","component":"newFormModal"},{"name":"new-page-modal","component":"newPageModal"},{"name":"delete-page-modal","component":"deletePageModal"},{"name":"new-section-modal","component":"newSectionModal"},{"name":"delete-section-modal","component":"deleteSectionModal"},{"name":"add-form-reference-modal","component":"addFormReferenceModal"},{"name":"question-modal","component":"questionModal"},{"name":"delete-question-modal","component":"deleteQuestionModal"},{"name":"edit-question-modal","component":"editQuestionModal"},{"name":"restore-draft-schema-modal","component":"restoreDraftSchemaModal"},{"name":"unpublish-form-modal","component":"unpublishFormModal"},{"name":"delete-form-modal","component":"deleteFormModal"},{"name":"edit-translation-modal","component":"editTranslationModal"}],"version":"3.5.2-pre.3668"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-form-builder-app",
|
|
3
|
-
"version": "3.5.2-pre.
|
|
3
|
+
"version": "3.5.2-pre.3668",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Form Builder for O3",
|
|
6
6
|
"browser": "dist/openmrs-esm-form-builder-app.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"serve": "rspack serve --mode=development",
|
|
12
12
|
"build": "rspack --mode production",
|
|
13
13
|
"analyze": "rspack --mode=production --env.analyze=true",
|
|
14
|
-
"lint": "eslint src --
|
|
14
|
+
"lint": "eslint src --max-warnings=0",
|
|
15
15
|
"typescript": "tsc",
|
|
16
16
|
"test": "cross-env TZ=UTC vitest run --passWithNoTests",
|
|
17
17
|
"test:watch": "cross-env TZ=UTC vitest watch",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
71
71
|
"@dnd-kit/sortable": "^10.0.0",
|
|
72
72
|
"@dnd-kit/utilities": "^3.2.2",
|
|
73
|
+
"@openmrs/eslint-config": "^2.0.0",
|
|
73
74
|
"@openmrs/esm-framework": "next",
|
|
74
75
|
"@openmrs/esm-styleguide": "next",
|
|
75
76
|
"@playwright/test": "^1.50.1",
|
|
@@ -81,16 +82,9 @@
|
|
|
81
82
|
"@testing-library/user-event": "^14.5.2",
|
|
82
83
|
"@types/react": "^18.3.2",
|
|
83
84
|
"@types/react-dom": "^18.3.0",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
85
|
-
"@typescript-eslint/parser": "^8.0.0",
|
|
86
85
|
"@vitest/coverage-v8": "^4.1.2",
|
|
87
86
|
"cross-env": "^10.1.0",
|
|
88
|
-
"eslint": "^
|
|
89
|
-
"eslint-plugin-import": "^2.31.0",
|
|
90
|
-
"eslint-plugin-jest-dom": "^5.4.0",
|
|
91
|
-
"eslint-plugin-playwright": "^0.16.0",
|
|
92
|
-
"eslint-plugin-react-hooks": "^4.6.2",
|
|
93
|
-
"eslint-plugin-testing-library": "^6.2.2",
|
|
87
|
+
"eslint": "^9.39.0",
|
|
94
88
|
"husky": "^8.0.3",
|
|
95
89
|
"i18next": "^25.0.0",
|
|
96
90
|
"i18next-parser": "^9.3.0",
|
package/src/components/interactive-builder/modals/add-form-reference/add-form-reference.test.tsx
CHANGED
|
@@ -171,7 +171,7 @@ describe('AddFormReferenceModal', () => {
|
|
|
171
171
|
const dropdown = screen.getByRole('combobox', { name: /select form/i });
|
|
172
172
|
expect(dropdown).toBeInTheDocument();
|
|
173
173
|
|
|
174
|
-
user.click(dropdown);
|
|
174
|
+
await user.click(dropdown);
|
|
175
175
|
expect(await screen.findByText(/Adult HIV Return Visit Form/i)).toBeInTheDocument();
|
|
176
176
|
expect(await screen.findByText(/Covid 19/i)).toBeInTheDocument();
|
|
177
177
|
});
|
|
@@ -191,7 +191,7 @@ describe('AddFormReferenceModal', () => {
|
|
|
191
191
|
const pageDropdown = screen.getByRole('combobox', { name: /Adult HIV Return Visit Form Pages:/i });
|
|
192
192
|
expect(pageDropdown).toBeInTheDocument();
|
|
193
193
|
|
|
194
|
-
user.click(pageDropdown);
|
|
194
|
+
await user.click(pageDropdown);
|
|
195
195
|
expect(await screen.findByText(/Encounter Details/i)).toBeInTheDocument();
|
|
196
196
|
expect(await screen.findByText(/Pre-Clinic Review/i)).toBeInTheDocument();
|
|
197
197
|
});
|