-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update model validator to throw on names and component types wi…
…th whitespace
- Loading branch information
1 parent
049e003
commit 760a826
Showing
7 changed files
with
147 additions
and
13 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
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
7 changes: 6 additions & 1 deletion
7
packages/test-generator/integration-test-templates/cypress/integration/generate-spec.js
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
70 changes: 70 additions & 0 deletions
70
packages/test-generator/lib/components/custom/cardWithInvalidChildComponentType.json
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,70 @@ | ||
{ | ||
"name": "CardWithInvalidChildComponentType", | ||
"children": [ | ||
{ | ||
"children": [ | ||
{ | ||
"children": [], | ||
"name": "Frame 2", | ||
"componentType": "Frame 2", | ||
"properties": { | ||
"width": { | ||
"value": "323px" | ||
}, | ||
"height": { | ||
"value": "100px" | ||
}, | ||
"alignItems": { | ||
"value": "center" | ||
} | ||
}, | ||
"overrides": {}, | ||
"variants": [] | ||
} | ||
], | ||
"name": "Card", | ||
"componentType": "Card", | ||
"properties": { | ||
"style": { | ||
"value": "plain" | ||
} | ||
}, | ||
"overrides": {}, | ||
"variants": [] | ||
} | ||
], | ||
"id": "1736:4332", | ||
"bindingProperties": {}, | ||
"componentType": "Flex", | ||
"properties": { | ||
"width": { | ||
"value": "375px" | ||
}, | ||
"height": { | ||
"value": "152px" | ||
}, | ||
"gap": { | ||
"value": "10px" | ||
}, | ||
"direction": { | ||
"value": "row" | ||
}, | ||
"alignItems": { | ||
"value": "flex-start" | ||
}, | ||
"overflow": { | ||
"value": "hidden" | ||
}, | ||
"position": { | ||
"value": "relative" | ||
}, | ||
"padding": { | ||
"value": "10px 10px 10px 10px" | ||
}, | ||
"backgroundColor": { | ||
"value": "rgba(255,255,255,1)" | ||
} | ||
}, | ||
"overrides": {}, | ||
"variants": [] | ||
} |
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