diff --git a/cypress/e2e/19-execution.cy.ts b/cypress/e2e/19-execution.cy.ts index b66b974b3b4d90..58f8ada045a631 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', () => { @@ -193,8 +193,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 stop', () => { diff --git a/cypress/pages/workflow.ts b/cypress/pages/workflow.ts index 85ed98d5828e1f..a33ad0faa47921 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'),