-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for checkbox–radio components
- Test for Components.getComponentPath() with a checkbox–radio component as input - Test for required validation of checkbox–radio component in a form
- Loading branch information
1 parent
d157fb9
commit c5dc6f0
Showing
5 changed files
with
72 additions
and
1 deletion.
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,35 @@ | ||
export default { | ||
title: 'test checkbox', | ||
name: 'testCheckbox', | ||
path: 'testcheckbox', | ||
type: 'form', | ||
display: 'form', | ||
components: [ | ||
{ | ||
label: 'Checkbox 1', | ||
inputType: 'radio', | ||
tableView: false, | ||
defaultValue: false, | ||
key: 'checkbox1', | ||
type: 'checkbox', | ||
name: 'radio', | ||
value: 'value1', | ||
input: true, | ||
radio: false, | ||
validate: { | ||
required: true | ||
}, | ||
}, | ||
{ | ||
input: true, | ||
label: 'Submit', | ||
tableView: false, | ||
key: 'submit', | ||
type: 'button', | ||
disableOnInvalid: true, | ||
} | ||
], | ||
created: '2022-09-01T09:12:45.581Z', | ||
modified: '2022-09-05T08:51:16.048Z', | ||
machineName: 'uubnbosxacwjzbk:testCheckbox', | ||
}; |
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,8 @@ | ||
import comp from '../checkbox/comp2'; | ||
|
||
export default { | ||
components: [ | ||
{ ...comp }, | ||
{ ...comp, value: 'false' } | ||
] | ||
}; |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as comp1 } from './comp1'; | ||
export { default as comp2 } from './comp2'; | ||
export { default as comp3 } from './comp3'; | ||
export { default as comp4 } from './comp4'; |