test: Add e2e tests for node creator (#4714)
* test: Add basic e2e tests for node creator * add spec to check if all nodes are rendered * revert SearchBar.vue changes * fixed manual key typo Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * Add custom component tests * Fix wrongly resolved merge conflcit Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
This commit is contained in:
55
cypress/fixtures/Custom_node.json
Normal file
55
cypress/fixtures/Custom_node.json
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"properties": [{
|
||||
"displayName": "Test property",
|
||||
"name": "testProp",
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"noDataExpression": false,
|
||||
"default": "Some default"
|
||||
},
|
||||
{
|
||||
"displayName": "Resource",
|
||||
"name": "resource",
|
||||
"type": "options",
|
||||
"noDataExpression": true,
|
||||
"options": [{
|
||||
"name": "option1",
|
||||
"value": "option1"
|
||||
},
|
||||
{
|
||||
"name": "option2",
|
||||
"value": "option2"
|
||||
},
|
||||
{
|
||||
"name": "option3",
|
||||
"value": "option3"
|
||||
},
|
||||
{
|
||||
"name": "option4",
|
||||
"value": "option4"
|
||||
}
|
||||
],
|
||||
"default": "option2"
|
||||
}
|
||||
],
|
||||
"displayName": "E2E Node",
|
||||
"name": "@e2e/n8n-nodes-e2e",
|
||||
"group": [
|
||||
"transform"
|
||||
],
|
||||
"codex": {
|
||||
"categories": ["CustomCategory"]
|
||||
},
|
||||
"version": 1,
|
||||
"description": "Demonstrate rendering of node",
|
||||
"defaults": {
|
||||
"name": "E2E Node "
|
||||
},
|
||||
"inputs": [
|
||||
"main"
|
||||
],
|
||||
"outputs": [
|
||||
"main"
|
||||
],
|
||||
"icon": "fa:network-wired"
|
||||
}
|
||||
Reference in New Issue
Block a user