-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add initial list of test specs (#464) [skip release]
- Loading branch information
Showing
36 changed files
with
422 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Category' }) | ||
|
||
xdescribe('Category edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Category' }) | ||
|
||
xdescribe('Category additional tests', () => { | ||
it('should filter by data dimension type', () => {}) | ||
it('should filter by data category combo', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Category' }) | ||
|
||
xdescribe('Category 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 a duplicate', () => {}) | ||
it('should show an error if short name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
it('not show an add all button for category options', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Category combo' }) | ||
|
||
xdescribe('Category combo edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Category combo' }) | ||
|
||
xdescribe('Category combos additional tests', () => { | ||
it('should filter by data dimension type', () => {}) | ||
it('should filter by data category combo', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Category combo' }) | ||
|
||
xdescribe('Category combo 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 code field is too long', () => {}) | ||
it('should show an error if name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
it('not show an add all button for categories', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Category option combo' }) | ||
|
||
xdescribe('Category option combo edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not be able to edit name', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Category option combo' }) | ||
|
||
xdescribe('Category option combo additional tests', () => { | ||
it('should filter by category option', () => {}) | ||
it('should filter by category combo', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Category option group set' }) | ||
|
||
xdescribe('Category option group set edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Category option group set' }) | ||
|
||
xdescribe('Category option group set additional tests', () => { | ||
it('should filter by data dimension type', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Category option group set' }) | ||
|
||
xdescribe('Category option group 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 a duplicate', () => {}) | ||
it('should show an error if short name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
it('not show an add all button for category option groups', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Category option group' }) | ||
|
||
xdescribe('Category option group edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Category option group' }) | ||
|
||
xdescribe('Category option group additional tests', () => { | ||
it('should filter by data dimension type', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Category option group' }) | ||
|
||
xdescribe('Category option group 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 a duplicate', () => {}) | ||
it('should show an error if short name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
it('not show an add all button for category options', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Category option' }) | ||
|
||
xdescribe('Category option edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('display dates in the required format', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Category option' }) | ||
|
||
xdescribe('Category option additional tests', () => { | ||
it('should filter by category', () => {}) | ||
it('should filter by category option group', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Category option' }) | ||
|
||
xdescribe('Category option 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 name field is a duplicate', () => {}) | ||
it('should show an error if short name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
it('not show an add all button for category option groups', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Data element group set' }) | ||
|
||
xdescribe('Data element group set edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Data element group set' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Data element group set' }) | ||
|
||
xdescribe('Data element group 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 a duplicate', () => {}) | ||
it('should show an error if short name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Data element group' }) | ||
|
||
xdescribe('Data element group edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Data element group' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { generateDefaultAddFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultAddFormTests({ componentName: 'Data element group' }) | ||
|
||
xdescribe('Data element group 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 a duplicate', () => {}) | ||
it('should show an error if short name field is a duplicate', () => {}) | ||
it('should show an error if code field is a duplicate', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { generateDefaultEditFormTests } from '../defaultFormTests' | ||
|
||
generateDefaultEditFormTests({ componentName: 'Data element' }) | ||
|
||
xdescribe('Data element edit form additional tests', () => { | ||
it('contain all needed field prefilled', () => {}) | ||
it('should not submit when a required values is removed ', () => {}) | ||
it('should submit the data and return to the list view on success when a field is changed', () => {}) | ||
it('should do nothing and return to the list view on success when no field is changed', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { generateDefaultListTests } from '../defaultListTests' | ||
|
||
generateDefaultListTests({ componentName: 'Data sets' }) | ||
|
||
xdescribe('Data sets additional tests', () => { | ||
it('should filter by form type', () => {}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export const generateDefaultAddFormTests = ({ | ||
componentName, | ||
}: { | ||
componentName: string | ||
}) => { | ||
xdescribe(`${componentName} default add form tests`, () => { | ||
it('should should return to the list view when cancelling', () => {}) | ||
it('should show a loader while the form is being submitted ', () => {}) | ||
}) | ||
} | ||
|
||
export const generateDefaultEditFormTests = ({ | ||
componentName, | ||
}: { | ||
componentName: string | ||
}) => { | ||
xdescribe(`${componentName} default add form tests`, () => { | ||
it('should should return to the list view when cancelling', () => {}) | ||
it('should show a loader while the form is being submitted ', () => {}) | ||
}) | ||
} |
Oops, something went wrong.