From 7e00cc52f8345cdecbed9861a3f6421dcd8db3cc Mon Sep 17 00:00:00 2001 From: Flaminia Cavallo Date: Mon, 16 Dec 2024 14:03:04 +0100 Subject: [PATCH] feat: add test specs --- src/pages/dataSetsWip/form/New.spec.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/pages/dataSetsWip/form/New.spec.tsx diff --git a/src/pages/dataSetsWip/form/New.spec.tsx b/src/pages/dataSetsWip/form/New.spec.tsx new file mode 100644 index 00000000..8b34f3d7 --- /dev/null +++ b/src/pages/dataSetsWip/form/New.spec.tsx @@ -0,0 +1,16 @@ +import { generateDefaultAddFormTests } from '../../defaultFormTests' + +generateDefaultAddFormTests({ componentName: 'Data set' }) + +xdescribe('Data set add form additional tests', () => { + it('contain all needed field', () => {}) + it('should not submit when required values are missing', () => {}) + it('should submit the data and return to the list view on success', () => {}) + it('should show an error if name field is too long', () => {}) + it('should show an error if short name field is too long', () => {}) + it('should show an error if code field is too long', () => {}) + it('should show an error if description field is too long', () => {}) + it('should show an error if name field is already in use', () => {}) + it('should show an error if short name field is already in use', () => {}) + it('should show an error if code field is already in use', () => {}) +})