✔️ Updating e2e tests, re-ordering node aliases

This commit is contained in:
Milorad FIlipović 2024-12-23 17:33:16 +01:00
parent 0e469524dc
commit d398ee0e26
5 changed files with 8 additions and 6 deletions

View file

@ -357,7 +357,8 @@ describe('Node Creator', () => {
WorkflowPage.getters.getConnectionBetweenNodes('Replace Me', 'Loop Over Items').should('exist');
});
it.only('should have most relevant nodes on top when searching', () => {
// TODO: Move these to unit tests (packages/editor-ui/src/utils/sortUtils.test.ts)
it('should have most relevant nodes on top when searching', () => {
nodeCreatorFeature.getters.canvasAddButton().click();
nodeCreatorFeature.getters.searchBar().find('input').clear().type('email');
@ -447,7 +448,8 @@ describe('Node Creator', () => {
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Schedule Trigger');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('time');
nodeCreatorFeature.getters.nodeItemName().eq(1).should('have.text', 'Schedule Trigger');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Schedule Trigger');
nodeCreatorFeature.getters.nodeItemName().eq(1).should('have.text', 'Date & Time');
nodeCreatorFeature.getters.nodeItemName().eq(2).should('have.text', 'Wait');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('mail');

View file

@ -11,7 +11,7 @@
}
]
},
"alias": ["code", "Javascript", "JS", "Script", "Custom Code", "Function", "AI", "LLM"],
"alias": ["code", "AI", "LLM", "Javascript", "JS", "Script", "Custom Code", "Function"],
"subcategories": {
"Core Nodes": ["Data Transformation"]
}

View file

@ -11,7 +11,7 @@
}
]
},
"alias": ["cpde", "Function", "Javascript", "JS", "Python", "Script", "Custom Code"],
"alias": ["cpde", "Javascript", "JS", "Function", "Python", "Script", "Custom Code"],
"subcategories": {
"Core Nodes": ["Helpers", "Data Transformation"]
}

View file

@ -121,7 +121,7 @@
}
]
},
"alias": ["Set", "JS", "JSON", "Filter", "Transform", "Map"],
"alias": ["Set", "Filter", "Transform", "JS", "JSON", "Map"],
"subcategories": {
"Core Nodes": ["Data Transformation"]
}

View file

@ -21,7 +21,7 @@
}
]
},
"alias": ["pause", "sleep", "delay", "timeout"],
"alias": ["pause", "sleep", "delay", "time", "timeout"],
"subcategories": {
"Core Nodes": ["Helpers", "Flow"]
}