mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
refactor(editor): Address issues with new icons (#17643)
This commit is contained in:
@@ -41,33 +41,33 @@ describe('Execution', () => {
|
||||
// Check canvas nodes after 1st step (workflow passed the manual trigger node
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Manual')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=refresh-cw]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Set')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
|
||||
cy.wait(2000);
|
||||
|
||||
// Check canvas nodes after 2nd step (waiting node finished its execution and the http request node is about to start)
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Manual')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Set')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
|
||||
successToast().should('be.visible');
|
||||
@@ -101,18 +101,18 @@ describe('Execution', () => {
|
||||
// Check canvas nodes after 1st step (workflow passed the manual trigger node
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Manual')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=refresh-cw]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Set')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
|
||||
successToast().should('be.visible');
|
||||
clearNotifications();
|
||||
@@ -123,7 +123,7 @@ describe('Execution', () => {
|
||||
// Check canvas nodes after workflow stopped
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Manual')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
|
||||
workflowPage.getters
|
||||
@@ -132,7 +132,7 @@ describe('Execution', () => {
|
||||
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Set')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
|
||||
successToast().should('be.visible');
|
||||
|
||||
@@ -181,29 +181,29 @@ describe('Execution', () => {
|
||||
// Check canvas nodes after 1st step (workflow passed the manual trigger node
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Webhook')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Wait')
|
||||
.within(() => cy.get('svg[data-icon=refresh-cw]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Set')
|
||||
.within(() => cy.get('svg[data-icon=check]').should('not.exist'));
|
||||
.within(() => cy.get('svg[data-icon=node-success]').should('not.exist'));
|
||||
|
||||
cy.wait(2000);
|
||||
|
||||
// Check canvas nodes after 2nd step (waiting node finished its execution and the http request node is about to start)
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Webhook')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Set')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
|
||||
successToast().should('be.visible');
|
||||
@@ -578,11 +578,11 @@ describe('Execution', () => {
|
||||
// Check that the previous nodes executed successfully
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('DebugHelper')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Filter')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
|
||||
errorToast().should('contain', 'Problem in node ‘Telegram‘');
|
||||
@@ -596,7 +596,7 @@ describe('Execution', () => {
|
||||
|
||||
workflowPage.getters
|
||||
.canvasNodeByName('Edit Fields')
|
||||
.within(() => cy.get('svg[data-icon=check]'))
|
||||
.within(() => cy.get('svg[data-icon=node-success]'))
|
||||
.should('exist');
|
||||
|
||||
workflowPage.getters.canvasNodeByName('Edit Fields').dblclick();
|
||||
|
||||
Reference in New Issue
Block a user