diff --git a/cypress/e2e/19-execution.cy.ts b/cypress/e2e/19-execution.cy.ts index b66b974b3b4d9..93e172cc555f8 100644 --- a/cypress/e2e/19-execution.cy.ts +++ b/cypress/e2e/19-execution.cy.ts @@ -120,8 +120,8 @@ describe('Execution', () => { workflowPage.getters.clearExecutionDataButton().click(); workflowPage.getters.clearExecutionDataButton().should('not.exist'); - // Check success toast (works because Cypress waits enough for the element to show after the http request node has finished) - workflowPage.getters.successToast().should('be.visible'); + // Check warning toast (works because Cypress waits enough for the element to show after the http request node has finished) + workflowPage.getters.warningToast().should('be.visible'); }); it('should test webhook workflow', () => { @@ -267,7 +267,7 @@ describe('Execution', () => { workflowPage.getters.clearExecutionDataButton().click(); workflowPage.getters.clearExecutionDataButton().should('not.exist'); - // Check success toast (works because Cypress waits enough for the element to show after the http request node has finished) - workflowPage.getters.successToast().should('be.visible'); + // Check warning toast (works because Cypress waits enough for the element to show after the http request node has finished) + workflowPage.getters.warningToast().should('be.visible'); }); }); diff --git a/cypress/pages/workflow.ts b/cypress/pages/workflow.ts index 85ed98d5828e1..a33ad0faa4792 100644 --- a/cypress/pages/workflow.ts +++ b/cypress/pages/workflow.ts @@ -48,6 +48,7 @@ export class WorkflowPage extends BasePage { return cy.get(this.getters.getEndpointSelector('plus', nodeName, index)); }, successToast: () => cy.get('.el-notification:has(.el-notification--success)'), + warningToast: () => cy.get('.el-notification:has(.el-notification--warning)'), errorToast: () => cy.get('.el-notification:has(.el-notification--error)'), activatorSwitch: () => cy.getByTestId('workflow-activate-switch'), workflowMenu: () => cy.getByTestId('workflow-menu'),