formbuilder-lhcforms 6.4.6 → 6.5.2
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/CHANGELOG.md +14 -0
- package/bower.json +4 -3
- package/client/app/config.js +1 -1
- package/client/app/form-builder/answer-lists.js +4 -0
- package/client/app/form-builder/form-builder.controller.js +32 -15
- package/client/app/form-builder/form-builder.html +8 -2
- package/client/app/form-builder/formbuilder.css +4 -0
- package/client/index.html.tpl +1 -0
- package/package.json +1 -1
- package/test/e2e/formbuilder/fixtures/54127-6-x.json +1973 -0
- package/test/e2e/formbuilder/formbuilder.spec.js +13 -0
|
@@ -844,6 +844,19 @@ describe('GET /', function () {
|
|
|
844
844
|
expect(fb.questionCodeSystem.getAttribute('value')).toBe('http://loinc.org/modified');
|
|
845
845
|
expect(fb.questionCode.getAttribute('value')).toBe('Modified_12345-6');
|
|
846
846
|
});
|
|
847
|
+
|
|
848
|
+
it('should load a form after loading a form with valuesets', function(done) {
|
|
849
|
+
const valueSetForm = path.join(__dirname, './fixtures/54127-6-x.json');
|
|
850
|
+
const normalForm = path.join(__dirname, './fixtures/phq9.json');
|
|
851
|
+
fb.cleanupSideBar(); // Clear any existing form items
|
|
852
|
+
Promise.all([util.loadLFormFromDisk(valueSetForm, 'R4'), util.loadLFormFromDisk(normalForm, 'R4')])
|
|
853
|
+
.then((previewSrc) => {
|
|
854
|
+
const q = JSON.parse(previewSrc);
|
|
855
|
+
expect(q.item.length > 0).toBeTruthy();
|
|
856
|
+
done();
|
|
857
|
+
})
|
|
858
|
+
.catch((err) => {done(err);});
|
|
859
|
+
});
|
|
847
860
|
});
|
|
848
861
|
|
|
849
862
|
describe('Loading form with css styles', function () {
|