Skip to content

Commit 3f10d7c

Browse files
authored
refactor(editor): Address issues with new icons (#17643)
1 parent f730df3 commit 3f10d7c

File tree

16 files changed

+58
-32
lines changed

16 files changed

+58
-32
lines changed

cypress/e2e/19-execution.cy.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,33 +41,33 @@ describe('Execution', () => {
4141
// Check canvas nodes after 1st step (workflow passed the manual trigger node
4242
workflowPage.getters
4343
.canvasNodeByName('Manual')
44-
.within(() => cy.get('svg[data-icon=check]'))
44+
.within(() => cy.get('svg[data-icon=node-success]'))
4545
.should('exist');
4646
workflowPage.getters
4747
.canvasNodeByName('Wait')
48-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
48+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
4949
workflowPage.getters
5050
.canvasNodeByName('Wait')
5151
.within(() => cy.get('svg[data-icon=refresh-cw]'))
5252
.should('exist');
5353
workflowPage.getters
5454
.canvasNodeByName('Set')
55-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
55+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
5656

5757
cy.wait(2000);
5858

5959
// Check canvas nodes after 2nd step (waiting node finished its execution and the http request node is about to start)
6060
workflowPage.getters
6161
.canvasNodeByName('Manual')
62-
.within(() => cy.get('svg[data-icon=check]'))
62+
.within(() => cy.get('svg[data-icon=node-success]'))
6363
.should('exist');
6464
workflowPage.getters
6565
.canvasNodeByName('Wait')
66-
.within(() => cy.get('svg[data-icon=check]'))
66+
.within(() => cy.get('svg[data-icon=node-success]'))
6767
.should('exist');
6868
workflowPage.getters
6969
.canvasNodeByName('Set')
70-
.within(() => cy.get('svg[data-icon=check]'))
70+
.within(() => cy.get('svg[data-icon=node-success]'))
7171
.should('exist');
7272

7373
successToast().should('be.visible');
@@ -101,18 +101,18 @@ describe('Execution', () => {
101101
// Check canvas nodes after 1st step (workflow passed the manual trigger node
102102
workflowPage.getters
103103
.canvasNodeByName('Manual')
104-
.within(() => cy.get('svg[data-icon=check]'))
104+
.within(() => cy.get('svg[data-icon=node-success]'))
105105
.should('exist');
106106
workflowPage.getters
107107
.canvasNodeByName('Wait')
108-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
108+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
109109
workflowPage.getters
110110
.canvasNodeByName('Wait')
111111
.within(() => cy.get('svg[data-icon=refresh-cw]'))
112112
.should('exist');
113113
workflowPage.getters
114114
.canvasNodeByName('Set')
115-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
115+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
116116

117117
successToast().should('be.visible');
118118
clearNotifications();
@@ -123,7 +123,7 @@ describe('Execution', () => {
123123
// Check canvas nodes after workflow stopped
124124
workflowPage.getters
125125
.canvasNodeByName('Manual')
126-
.within(() => cy.get('svg[data-icon=check]'))
126+
.within(() => cy.get('svg[data-icon=node-success]'))
127127
.should('exist');
128128

129129
workflowPage.getters
@@ -132,7 +132,7 @@ describe('Execution', () => {
132132

133133
workflowPage.getters
134134
.canvasNodeByName('Set')
135-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
135+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
136136

137137
successToast().should('be.visible');
138138

@@ -181,29 +181,29 @@ describe('Execution', () => {
181181
// Check canvas nodes after 1st step (workflow passed the manual trigger node
182182
workflowPage.getters
183183
.canvasNodeByName('Webhook')
184-
.within(() => cy.get('svg[data-icon=check]'))
184+
.within(() => cy.get('svg[data-icon=node-success]'))
185185
.should('exist');
186186
workflowPage.getters
187187
.canvasNodeByName('Wait')
188-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
188+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
189189
workflowPage.getters
190190
.canvasNodeByName('Wait')
191191
.within(() => cy.get('svg[data-icon=refresh-cw]'))
192192
.should('exist');
193193
workflowPage.getters
194194
.canvasNodeByName('Set')
195-
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
195+
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
196196

197197
cy.wait(2000);
198198

199199
// Check canvas nodes after 2nd step (waiting node finished its execution and the http request node is about to start)
200200
workflowPage.getters
201201
.canvasNodeByName('Webhook')
202-
.within(() => cy.get('svg[data-icon=check]'))
202+
.within(() => cy.get('svg[data-icon=node-success]'))
203203
.should('exist');
204204
workflowPage.getters
205205
.canvasNodeByName('Set')
206-
.within(() => cy.get('svg[data-icon=check]'))
206+
.within(() => cy.get('svg[data-icon=node-success]'))
207207
.should('exist');
208208

209209
successToast().should('be.visible');
@@ -578,11 +578,11 @@ describe('Execution', () => {
578578
// Check that the previous nodes executed successfully
579579
workflowPage.getters
580580
.canvasNodeByName('DebugHelper')
581-
.within(() => cy.get('svg[data-icon=check]'))
581+
.within(() => cy.get('svg[data-icon=node-success]'))
582582
.should('exist');
583583
workflowPage.getters
584584
.canvasNodeByName('Filter')
585-
.within(() => cy.get('svg[data-icon=check]'))
585+
.within(() => cy.get('svg[data-icon=node-success]'))
586586
.should('exist');
587587

588588
errorToast().should('contain', 'Problem in node ‘Telegram‘');
@@ -596,7 +596,7 @@ describe('Execution', () => {
596596

597597
workflowPage.getters
598598
.canvasNodeByName('Edit Fields')
599-
.within(() => cy.get('svg[data-icon=check]'))
599+
.within(() => cy.get('svg[data-icon=node-success]'))
600600
.should('exist');
601601

602602
workflowPage.getters.canvasNodeByName('Edit Fields').dblclick();
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

packages/frontend/@n8n/design-system/src/components/N8nIcon/icons.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ import BoltFilled from './custom/bolt-filled.svg';
33
import Continue from './custom/continue.svg';
44
import EmptyOutput from './custom/empty-output.svg';
55
import GripLinesVertical from './custom/grip-lines-vertical.svg';
6+
import NodeDirty from './custom/node-dirty.svg';
7+
import NodeEllipsis from './custom/node-ellipsis.svg';
8+
import NodeError from './custom/node-error.svg';
9+
import NodePin from './custom/node-pin.svg';
10+
import NodePlay from './custom/node-play.svg';
11+
import NodePower from './custom/node-power.svg';
12+
import NodeSuccess from './custom/node-success.svg';
13+
import NodeTrash from './custom/node-trash.svg';
614
import PopOut from './custom/pop-out.svg';
715
import Retry from './custom/retry.svg';
816
import RunOnce from './custom/run-once.svg';
@@ -420,6 +428,14 @@ export const updatedIconSet = {
420428
text: Text,
421429
toolbox: Toolbox,
422430
spinner: Spinner,
431+
'node-dirty': NodeDirty,
432+
'node-ellipsis': NodeEllipsis,
433+
'node-error': NodeError,
434+
'node-pin': NodePin,
435+
'node-play': NodePlay,
436+
'node-power': NodePower,
437+
'node-success': NodeSuccess,
438+
'node-trash': NodeTrash,
423439

424440
// lucide
425441
'align-right': IconLucideAlignRight,

0 commit comments

Comments
 (0)