fix(Set Node): Increase search priority (#7358)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Michael Kret 2023-10-05 16:19:19 +03:00 committed by GitHub
parent afbf0c3d5e
commit e5ad1e7e4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 8 deletions

View file

@ -15,7 +15,10 @@ describe('Node Creator', () => {
it('should open node creator on trigger tab if no trigger is on canvas', () => { it('should open node creator on trigger tab if no trigger is on canvas', () => {
nodeCreatorFeature.getters.canvasAddButton().click(); nodeCreatorFeature.getters.canvasAddButton().click();
nodeCreatorFeature.getters.nodeCreator().contains('What triggers this workflow?').should('be.visible'); nodeCreatorFeature.getters
.nodeCreator()
.contains('What triggers this workflow?')
.should('be.visible');
}); });
it('should navigate subcategory', () => { it('should navigate subcategory', () => {
@ -73,7 +76,10 @@ describe('Node Creator', () => {
nodeCreatorFeature.getters.nodeCreator().contains('What happens next?').should('be.visible'); nodeCreatorFeature.getters.nodeCreator().contains('What happens next?').should('be.visible');
nodeCreatorFeature.getters.getCreatorItem('Add another trigger').click(); nodeCreatorFeature.getters.getCreatorItem('Add another trigger').click();
nodeCreatorFeature.getters.nodeCreator().contains('What triggers this workflow?').should('be.visible'); nodeCreatorFeature.getters
.nodeCreator()
.contains('What triggers this workflow?')
.should('be.visible');
nodeCreatorFeature.getters.activeSubcategory().find('button').should('exist'); nodeCreatorFeature.getters.activeSubcategory().find('button').should('exist');
nodeCreatorFeature.getters.activeSubcategory().find('button').click(); nodeCreatorFeature.getters.activeSubcategory().find('button').click();
nodeCreatorFeature.getters.nodeCreator().contains('What happens next?').should('be.visible'); nodeCreatorFeature.getters.nodeCreator().contains('What happens next?').should('be.visible');
@ -321,7 +327,7 @@ describe('Node Creator', () => {
nodeCreatorFeature.getters.searchBar().find('input').clear().type('email'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('email');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Email Trigger (IMAP)'); nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Email Trigger (IMAP)');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('Edit Fields (Set)'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('Set');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Edit Fields (Set)'); nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Edit Fields (Set)');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('i'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('i');
@ -329,7 +335,7 @@ describe('Node Creator', () => {
nodeCreatorFeature.getters.nodeItemName().eq(1).should('have.text', 'Switch'); nodeCreatorFeature.getters.nodeItemName().eq(1).should('have.text', 'Switch');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('sw'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('sw');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('Edit Fields (Set)'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('Edit F');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Edit Fields (Set)'); nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'Edit Fields (Set)');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('i'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('i');
@ -422,10 +428,16 @@ describe('Node Creator', () => {
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'S3'); nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'S3');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('no op'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('no op');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'No Operation, do nothing'); nodeCreatorFeature.getters
.nodeItemName()
.first()
.should('have.text', 'No Operation, do nothing');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('do no'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('do no');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'No Operation, do nothing'); nodeCreatorFeature.getters
.nodeItemName()
.first()
.should('have.text', 'No Operation, do nothing');
nodeCreatorFeature.getters.searchBar().find('input').clear().type('htt'); nodeCreatorFeature.getters.searchBar().find('input').clear().type('htt');
nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'HTTP Request'); nodeCreatorFeature.getters.nodeItemName().first().should('have.text', 'HTTP Request');

View file

@ -13,5 +13,5 @@
} }
] ]
}, },
"alias": ["Filter", "Set", "Data"] "alias": ["Filter", "_Set", "Data"]
} }

View file

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