From 4ef9fca653a1b9f2ce13dd5ed16c957768babeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Fri, 24 Nov 2023 17:20:24 +0100 Subject: [PATCH] change to warning toast --- cypress/e2e/19-execution.cy.ts | 8 ++++---- cypress/pages/workflow.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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'),